Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: content/browser/frame_host/navigation_request.h

Issue 1294243004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 FrameTreeNode* frame_tree_node_; 160 FrameTreeNode* frame_tree_node_;
161 161
162 // Initialized on creation of the NavigationRequest. Sent to the renderer when 162 // Initialized on creation of the NavigationRequest. Sent to the renderer when
163 // the navigation is ready to commit. 163 // the navigation is ready to commit.
164 // Note: When the navigation is ready to commit, the url in |common_params| 164 // Note: When the navigation is ready to commit, the url in |common_params|
165 // will be set to the final navigation url, obtained after following all 165 // will be set to the final navigation url, obtained after following all
166 // redirects. 166 // redirects.
167 // Note: |common_params_| and |begin_params_| are not const as they can be 167 // Note: |common_params_| and |begin_params_| are not const as they can be
168 // modified during redirects. 168 // modified during redirects.
169 // Note: |request_params_| is not const because the service_worker_provider_id
170 // will be set in BeginNavigation.
169 CommonNavigationParams common_params_; 171 CommonNavigationParams common_params_;
170 BeginNavigationParams begin_params_; 172 BeginNavigationParams begin_params_;
171 const RequestNavigationParams request_params_; 173 RequestNavigationParams request_params_;
172 const bool browser_initiated_; 174 const bool browser_initiated_;
173 175
174 NavigationState state_; 176 NavigationState state_;
175 177
176 178
177 // The parameters to send to the IO thread. |loader_| takes ownership of 179 // The parameters to send to the IO thread. |loader_| takes ownership of
178 // |info_| after calling BeginNavigation. 180 // |info_| after calling BeginNavigation.
179 scoped_ptr<NavigationRequestInfo> info_; 181 scoped_ptr<NavigationRequestInfo> info_;
180 182
181 scoped_ptr<NavigationURLLoader> loader_; 183 scoped_ptr<NavigationURLLoader> loader_;
182 184
183 // These next items are used in browser-initiated navigations to store 185 // These next items are used in browser-initiated navigations to store
184 // information from the NavigationEntryImpl that is required after request 186 // information from the NavigationEntryImpl that is required after request
185 // creation time. 187 // creation time.
186 scoped_refptr<SiteInstanceImpl> source_site_instance_; 188 scoped_refptr<SiteInstanceImpl> source_site_instance_;
187 scoped_refptr<SiteInstanceImpl> dest_site_instance_; 189 scoped_refptr<SiteInstanceImpl> dest_site_instance_;
188 NavigationEntryImpl::RestoreType restore_type_; 190 NavigationEntryImpl::RestoreType restore_type_;
189 bool is_view_source_; 191 bool is_view_source_;
190 int bindings_; 192 int bindings_;
191 193
192 scoped_ptr<NavigationHandleImpl> navigation_handle_; 194 scoped_ptr<NavigationHandleImpl> navigation_handle_;
193 195
194 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 196 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
195 }; 197 };
196 198
197 } // namespace content 199 } // namespace content
198 200
199 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 201 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698