summaryrefslogtreecommitdiff
path: root/chromium/content/browser/loader_delegate_impl.h
blob: 152176cf803127a9aae8899a335e1cfe3758cf9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_
#define CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_

#include "content/browser/loader/loader_delegate.h"
#include "content/common/content_export.h"

namespace content {

class CONTENT_EXPORT LoaderDelegateImpl : public LoaderDelegate {
 public:
  ~LoaderDelegateImpl() override;

  // LoaderDelegate implementation:
  void LoadStateChanged(
      WebContents* web_contents,
      const GURL& url,
      const net::LoadStateWithParam& load_state,
      uint64_t upload_position,
      uint64_t upload_size) override;
  void DidGetResourceResponseStart(
      const ResourceRequestInfo::WebContentsGetter& web_contents_getter,
      std::unique_ptr<ResourceRequestDetails> details) override;
  void DidGetRedirectForResourceRequest(
      const ResourceRequestInfo::WebContentsGetter& web_contents_getter,
      std::unique_ptr<ResourceRedirectDetails> details) override;
};

}  // namespace content

#endif  // CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_