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_CORE_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ |
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ | 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 class NavigationURLLoaderImplCore { | 33 class NavigationURLLoaderImplCore { |
34 public: | 34 public: |
35 // Creates a new NavigationURLLoaderImplCore that forwards signals back to | 35 // Creates a new NavigationURLLoaderImplCore that forwards signals back to |
36 // |loader| on the UI thread. | 36 // |loader| on the UI thread. |
37 explicit NavigationURLLoaderImplCore( | 37 explicit NavigationURLLoaderImplCore( |
38 const base::WeakPtr<NavigationURLLoaderImpl>& loader); | 38 const base::WeakPtr<NavigationURLLoaderImpl>& loader); |
39 ~NavigationURLLoaderImplCore(); | 39 ~NavigationURLLoaderImplCore(); |
40 | 40 |
41 // Starts the request. | 41 // Starts the request. |
42 void Start(ResourceContext* resource_context, | 42 void Start(ResourceContext* resource_context, |
43 int64 frame_tree_node_id, | 43 int frame_tree_node_id, |
44 scoped_ptr<NavigationRequestInfo> request_info); | 44 scoped_ptr<NavigationRequestInfo> request_info); |
45 | 45 |
46 // Follows the current pending redirect. | 46 // Follows the current pending redirect. |
47 void FollowRedirect(); | 47 void FollowRedirect(); |
48 | 48 |
49 void set_resource_handler(NavigationResourceHandler* resource_handler) { | 49 void set_resource_handler(NavigationResourceHandler* resource_handler) { |
50 resource_handler_ = resource_handler; | 50 resource_handler_ = resource_handler; |
51 } | 51 } |
52 | 52 |
53 // Notifies |loader_| on the UI thread that the request was redirected. | 53 // Notifies |loader_| on the UI thread that the request was redirected. |
(...skipping 10 matching lines...) Expand all Loading... |
64 private: | 64 private: |
65 base::WeakPtr<NavigationURLLoaderImpl> loader_; | 65 base::WeakPtr<NavigationURLLoaderImpl> loader_; |
66 NavigationResourceHandler* resource_handler_; | 66 NavigationResourceHandler* resource_handler_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); | 68 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace content | 71 } // namespace content |
72 | 72 |
73 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ | 73 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ |
OLD | NEW |