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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 on the IO |
74 // thread. | 74 // 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 void 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 BeginNavigationParams& begin_params() const { return begin_params_; } |
| 82 |
81 const CommitNavigationParams& commit_params() const { return commit_params_; } | 83 const CommitNavigationParams& commit_params() const { return commit_params_; } |
82 | 84 |
83 NavigationURLLoader* loader_for_testing() const { return loader_.get(); } | 85 NavigationURLLoader* loader_for_testing() const { return loader_.get(); } |
84 | 86 |
85 NavigationState state() const { return state_; } | 87 NavigationState state() const { return state_; } |
86 | 88 |
87 SiteInstanceImpl* source_site_instance() const { | 89 SiteInstanceImpl* source_site_instance() const { |
88 return source_site_instance_.get(); | 90 return source_site_instance_.get(); |
89 } | 91 } |
90 | 92 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 NavigationEntryImpl::RestoreType restore_type_; | 156 NavigationEntryImpl::RestoreType restore_type_; |
155 bool is_view_source_; | 157 bool is_view_source_; |
156 int bindings_; | 158 int bindings_; |
157 | 159 |
158 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 160 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
159 }; | 161 }; |
160 | 162 |
161 } // namespace content | 163 } // namespace content |
162 | 164 |
163 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 165 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |