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

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: Rebase after a month... Created 4 years, 1 month 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 private: 282 private:
283 friend class NavigationHandleImplTest; 283 friend class NavigationHandleImplTest;
284 284
285 // Used to track the state the navigation is currently in. 285 // Used to track the state the navigation is currently in.
286 enum State { 286 enum State {
287 INITIAL = 0, 287 INITIAL = 0,
288 WILL_SEND_REQUEST, 288 WILL_SEND_REQUEST,
289 DEFERRING_START, 289 DEFERRING_START,
290 WILL_REDIRECT_REQUEST, 290 WILL_REDIRECT_REQUEST,
291 DEFERRING_REDIRECT, 291 DEFERRING_REDIRECT,
292 CANCELING, 292 CANCELING_REQUEST,
293 WILL_PROCESS_RESPONSE, 293 WILL_PROCESS_RESPONSE,
294 DEFERRING_RESPONSE, 294 DEFERRING_RESPONSE,
295 CANCELING_RESPONSE,
295 READY_TO_COMMIT, 296 READY_TO_COMMIT,
296 DID_COMMIT, 297 DID_COMMIT,
297 DID_COMMIT_ERROR_PAGE, 298 DID_COMMIT_ERROR_PAGE,
298 }; 299 };
299 300
300 NavigationHandleImpl(const GURL& url, 301 NavigationHandleImpl(const GURL& url,
301 FrameTreeNode* frame_tree_node, 302 FrameTreeNode* frame_tree_node,
302 bool is_renderer_initiated, 303 bool is_renderer_initiated,
303 bool is_synchronous, 304 bool is_synchronous,
304 bool is_srcdoc, 305 bool is_srcdoc,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 bool started_from_context_menu_; 424 bool started_from_context_menu_;
424 425
425 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; 426 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
426 427
427 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 428 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
428 }; 429 };
429 430
430 } // namespace content 431 } // namespace content
431 432
432 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 433 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/ancestor_throttle_unittest.cc ('k') | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698