| 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 "base/basictypes.h" | 8 #include "base/basictypes.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" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Note: |body| is sent to the IO thread when calling BeginNavigation, and | 63 // Note: |body| is sent to the IO thread when calling BeginNavigation, and |
| 64 // should no longer be manipulated afterwards on the UI thread. | 64 // should no longer be manipulated afterwards on the UI thread. |
| 65 static scoped_ptr<NavigationRequest> CreateRendererInitiated( | 65 static scoped_ptr<NavigationRequest> CreateRendererInitiated( |
| 66 FrameTreeNode* frame_tree_node, | 66 FrameTreeNode* frame_tree_node, |
| 67 const CommonNavigationParams& common_params, | 67 const CommonNavigationParams& common_params, |
| 68 const BeginNavigationParams& begin_params, | 68 const BeginNavigationParams& begin_params, |
| 69 scoped_refptr<ResourceRequestBody> body); | 69 scoped_refptr<ResourceRequestBody> body); |
| 70 | 70 |
| 71 ~NavigationRequest() override; | 71 ~NavigationRequest() override; |
| 72 | 72 |
| 73 // Called on the UI thread by the Navigator to start the navigation on the IO | 73 // Called on the UI thread by the Navigator to start the navigation. Returns |
| 74 // thread. | 74 // whether a request was made on the IO thread. |
| 75 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid | 75 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid |
| 76 // threading subtleties. | 76 // threading subtleties. |
| 77 void BeginNavigation(); | 77 bool BeginNavigation(); |
| 78 | 78 |
| 79 const CommonNavigationParams& common_params() const { return common_params_; } | 79 const CommonNavigationParams& common_params() const { return common_params_; } |
| 80 | 80 |
| 81 const CommitNavigationParams& commit_params() const { return commit_params_; } | 81 const CommitNavigationParams& commit_params() const { return commit_params_; } |
| 82 | 82 |
| 83 NavigationURLLoader* loader_for_testing() const { return loader_.get(); } | 83 NavigationURLLoader* loader_for_testing() const { return loader_.get(); } |
| 84 | 84 |
| 85 NavigationState state() const { return state_; } | 85 NavigationState state() const { return state_; } |
| 86 | 86 |
| 87 SiteInstanceImpl* source_site_instance() const { | 87 SiteInstanceImpl* source_site_instance() const { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 NavigationEntryImpl::RestoreType restore_type_; | 154 NavigationEntryImpl::RestoreType restore_type_; |
| 155 bool is_view_source_; | 155 bool is_view_source_; |
| 156 int bindings_; | 156 int bindings_; |
| 157 | 157 |
| 158 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 158 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace content | 161 } // namespace content |
| 162 | 162 |
| 163 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 163 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| OLD | NEW |