OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_ |
6 #define CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_ | 6 #define CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include "content/browser/loader/loader_delegate.h" | 8 #include "content/browser/loader/loader_delegate.h" |
9 #include "content/common/content_export.h" | |
9 | 10 |
10 namespace content { | 11 namespace content { |
11 | 12 |
12 class LoaderDelegateImpl : public LoaderDelegate { | 13 class CONTENT_EXPORT LoaderDelegateImpl : public LoaderDelegate { |
13 public: | 14 public: |
14 ~LoaderDelegateImpl() override; | 15 ~LoaderDelegateImpl() override; |
15 | 16 |
16 void LoadStateChanged(int child_id, | 17 void LoadStateChanged(int child_id, |
17 int route_id, | 18 int route_id, |
18 const GURL& url, | 19 const GURL& url, |
19 const net::LoadStateWithParam& load_state, | 20 const net::LoadStateWithParam& load_state, |
20 uint64_t upload_position, | 21 uint64_t upload_position, |
21 uint64_t upload_size) override; | 22 uint64_t upload_size) override; |
22 | 23 |
jam
2016/06/29 17:19:46
nit: here and below, no blank lines between overri
scottmg
2016/06/29 17:55:40
Done.
| |
24 void DidGetResourceResponseStart( | |
25 int render_process_id, | |
26 int render_frame_host, | |
27 std::unique_ptr<ResourceRequestDetails> details) override; | |
28 | |
29 void DidGetRedirectForResourceRequest( | |
30 int render_process_id, | |
31 int render_frame_host, | |
32 std::unique_ptr<ResourceRedirectDetails> details) override; | |
33 | |
23 private: | 34 private: |
24 void NotifyLoadStateChangedOnUI(int child_id, | 35 void NotifyLoadStateChangedOnUI(int child_id, |
25 int route_id, | 36 int route_id, |
26 const GURL& url, | 37 const GURL& url, |
27 const net::LoadStateWithParam& load_state, | 38 const net::LoadStateWithParam& load_state, |
28 uint64_t upload_position, | 39 uint64_t upload_position, |
29 uint64_t upload_size); | 40 uint64_t upload_size); |
41 | |
42 void DidGetResourceResponseStartOnUI( | |
43 int render_process_id, | |
44 int render_frame_host, | |
45 std::unique_ptr<ResourceRequestDetails> details); | |
46 | |
47 void DidGetRedirectForResourceRequestOnUI( | |
48 int render_process_id, | |
49 int render_frame_host, | |
50 std::unique_ptr<ResourceRedirectDetails> details); | |
30 }; | 51 }; |
31 | 52 |
32 } // namespace content | 53 } // namespace content |
33 | 54 |
34 #endif // CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_ | 55 #endif // CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_ |
OLD | NEW |