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 |
| 17 // LoaderDelegate implementation: |
16 void LoadStateChanged(int child_id, | 18 void LoadStateChanged(int child_id, |
17 int route_id, | 19 int route_id, |
18 const GURL& url, | 20 const GURL& url, |
19 const net::LoadStateWithParam& load_state, | 21 const net::LoadStateWithParam& load_state, |
20 uint64_t upload_position, | 22 uint64_t upload_position, |
21 uint64_t upload_size) override; | 23 uint64_t upload_size) override; |
22 | 24 void DidGetResourceResponseStart( |
23 private: | 25 int render_process_id, |
24 void NotifyLoadStateChangedOnUI(int child_id, | 26 int render_frame_host, |
25 int route_id, | 27 std::unique_ptr<ResourceRequestDetails> details) override; |
26 const GURL& url, | 28 void DidGetRedirectForResourceRequest( |
27 const net::LoadStateWithParam& load_state, | 29 int render_process_id, |
28 uint64_t upload_position, | 30 int render_frame_host, |
29 uint64_t upload_size); | 31 std::unique_ptr<ResourceRedirectDetails> details) override; |
30 }; | 32 }; |
31 | 33 |
32 } // namespace content | 34 } // namespace content |
33 | 35 |
34 #endif // CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_ | 36 #endif // CONTENT_BROWSER_LOADER_DELEGATE_IMPL_H_ |
OLD | NEW |