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

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

Issue 2321503002: (Re-)introduce AncestorThrottle to handle 'X-Frame-Options'. (Closed)
Patch Set: Ugh. Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_HANDLE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
7 7
8 #include "content/public/browser/navigation_handle.h" 8 #include "content/public/browser/navigation_handle.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 private: 232 private:
233 friend class NavigationHandleImplTest; 233 friend class NavigationHandleImplTest;
234 234
235 // Used to track the state the navigation is currently in. 235 // Used to track the state the navigation is currently in.
236 enum State { 236 enum State {
237 INITIAL = 0, 237 INITIAL = 0,
238 WILL_SEND_REQUEST, 238 WILL_SEND_REQUEST,
239 DEFERRING_START, 239 DEFERRING_START,
240 WILL_REDIRECT_REQUEST, 240 WILL_REDIRECT_REQUEST,
241 DEFERRING_REDIRECT, 241 DEFERRING_REDIRECT,
242 CANCELING, 242 CANCELING_REQUEST,
243 WILL_PROCESS_RESPONSE, 243 WILL_PROCESS_RESPONSE,
244 DEFERRING_RESPONSE, 244 DEFERRING_RESPONSE,
245 CANCELING_RESPONSE,
Mike West 2016/09/14 09:21:24 We have a host at this point, whereas we don't hav
245 READY_TO_COMMIT, 246 READY_TO_COMMIT,
246 DID_COMMIT, 247 DID_COMMIT,
247 DID_COMMIT_ERROR_PAGE, 248 DID_COMMIT_ERROR_PAGE,
248 }; 249 };
249 250
250 NavigationHandleImpl(const GURL& url, 251 NavigationHandleImpl(const GURL& url,
251 FrameTreeNode* frame_tree_node, 252 FrameTreeNode* frame_tree_node,
252 bool is_renderer_initiated, 253 bool is_renderer_initiated,
253 bool is_synchronous, 254 bool is_synchronous,
254 bool is_srcdoc, 255 bool is_srcdoc,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 std::unique_ptr<NavigationData> navigation_data_; 325 std::unique_ptr<NavigationData> navigation_data_;
325 326
326 SSLStatus ssl_status_; 327 SSLStatus ssl_status_;
327 328
328 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 329 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
329 }; 330 };
330 331
331 } // namespace content 332 } // namespace content
332 333
333 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 334 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698