OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_NAVIGATION_URL_LOADER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ | 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "content/browser/loader/navigation_url_loader.h" | 13 #include "content/browser/loader/navigation_url_loader.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 struct RedirectInfo; | 16 struct RedirectInfo; |
17 } | 17 } |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 class NavigationURLLoaderImplCore; | 21 class NavigationURLLoaderImplCore; |
22 class StreamHandle; | 22 class StreamHandle; |
23 struct ResourceResponse; | 23 struct ResourceResponse; |
24 | 24 |
25 class NavigationURLLoaderImpl : public NavigationURLLoader { | 25 class NavigationURLLoaderImpl : public NavigationURLLoader { |
26 public: | 26 public: |
27 // The caller is responsible for ensuring that |delegate| outlives the loader. | 27 // The caller is responsible for ensuring that |delegate| outlives the loader. |
28 NavigationURLLoaderImpl(BrowserContext* browser_context, | 28 NavigationURLLoaderImpl(BrowserContext* browser_context, |
29 int64 frame_tree_node_id, | 29 int frame_tree_node_id, |
30 scoped_ptr<NavigationRequestInfo> request_info, | 30 scoped_ptr<NavigationRequestInfo> request_info, |
31 NavigationURLLoaderDelegate* delegate); | 31 NavigationURLLoaderDelegate* delegate); |
32 ~NavigationURLLoaderImpl() override; | 32 ~NavigationURLLoaderImpl() override; |
33 | 33 |
34 // Called in response to OnRequestRedirected to continue processing the | 34 // Called in response to OnRequestRedirected to continue processing the |
35 // request. | 35 // request. |
36 void FollowRedirect() override; | 36 void FollowRedirect() override; |
37 | 37 |
38 private: | 38 private: |
39 friend class NavigationURLLoaderImplCore; | 39 friend class NavigationURLLoaderImplCore; |
(...skipping 20 matching lines...) Expand all Loading... |
60 NavigationURLLoaderImplCore* core_; | 60 NavigationURLLoaderImplCore* core_; |
61 | 61 |
62 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; | 62 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); | 64 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace content | 67 } // namespace content |
68 | 68 |
69 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ | 69 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
OLD | NEW |