| 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_FRAME_HOST_NAVIGATION_REQUEST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Note: |body| is sent to the IO thread when calling BeginNavigation, and | 91 // Note: |body| is sent to the IO thread when calling BeginNavigation, and |
| 92 // should no longer be manipulated afterwards on the UI thread. | 92 // should no longer be manipulated afterwards on the UI thread. |
| 93 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid | 93 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid |
| 94 // threading subtleties. | 94 // threading subtleties. |
| 95 static std::unique_ptr<NavigationRequest> CreateRendererInitiated( | 95 static std::unique_ptr<NavigationRequest> CreateRendererInitiated( |
| 96 FrameTreeNode* frame_tree_node, | 96 FrameTreeNode* frame_tree_node, |
| 97 NavigationEntryImpl* entry, | 97 NavigationEntryImpl* entry, |
| 98 const CommonNavigationParams& common_params, | 98 const CommonNavigationParams& common_params, |
| 99 const BeginNavigationParams& begin_params, | 99 const BeginNavigationParams& begin_params, |
| 100 int current_history_list_offset, | 100 int current_history_list_offset, |
| 101 int current_history_list_length); | 101 int current_history_list_length, |
| 102 bool override_user_agent); |
| 102 | 103 |
| 103 ~NavigationRequest() override; | 104 ~NavigationRequest() override; |
| 104 | 105 |
| 105 // Called on the UI thread by the Navigator to start the navigation. | 106 // Called on the UI thread by the Navigator to start the navigation. |
| 106 void BeginNavigation(); | 107 void BeginNavigation(); |
| 107 | 108 |
| 108 const CommonNavigationParams& common_params() const { return common_params_; } | 109 const CommonNavigationParams& common_params() const { return common_params_; } |
| 109 | 110 |
| 110 const BeginNavigationParams& begin_params() const { return begin_params_; } | 111 const BeginNavigationParams& begin_params() const { return begin_params_; } |
| 111 | 112 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 base::Closure on_start_checks_complete_closure_; | 269 base::Closure on_start_checks_complete_closure_; |
| 269 | 270 |
| 270 base::WeakPtrFactory<NavigationRequest> weak_factory_; | 271 base::WeakPtrFactory<NavigationRequest> weak_factory_; |
| 271 | 272 |
| 272 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 273 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
| 273 }; | 274 }; |
| 274 | 275 |
| 275 } // namespace content | 276 } // namespace content |
| 276 | 277 |
| 277 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 278 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| OLD | NEW |