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

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

Issue 2488743003: (Re-)introduce AncestorThrottle to handle 'X-Frame-Options'. (Closed)
Patch Set: Display a blank page instead of an error page. ( and add checks in NavigationRequest) Created 4 years 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 private: 287 private:
288 friend class NavigationHandleImplTest; 288 friend class NavigationHandleImplTest;
289 289
290 // Used to track the state the navigation is currently in. 290 // Used to track the state the navigation is currently in.
291 enum State { 291 enum State {
292 INITIAL = 0, 292 INITIAL = 0,
293 WILL_SEND_REQUEST, 293 WILL_SEND_REQUEST,
294 DEFERRING_START, 294 DEFERRING_START,
295 WILL_REDIRECT_REQUEST, 295 WILL_REDIRECT_REQUEST,
296 DEFERRING_REDIRECT, 296 DEFERRING_REDIRECT,
297 CANCELING, 297 CANCELING_REQUEST,
298 WILL_PROCESS_RESPONSE, 298 WILL_PROCESS_RESPONSE,
299 DEFERRING_RESPONSE, 299 DEFERRING_RESPONSE,
300 CANCELING_RESPONSE,
300 READY_TO_COMMIT, 301 READY_TO_COMMIT,
301 DID_COMMIT, 302 DID_COMMIT,
302 DID_COMMIT_ERROR_PAGE, 303 DID_COMMIT_ERROR_PAGE,
303 }; 304 };
304 305
305 NavigationHandleImpl(const GURL& url, 306 NavigationHandleImpl(const GURL& url,
306 FrameTreeNode* frame_tree_node, 307 FrameTreeNode* frame_tree_node,
307 bool is_renderer_initiated, 308 bool is_renderer_initiated,
308 bool is_same_page, 309 bool is_same_page,
309 bool is_srcdoc, 310 bool is_srcdoc,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 std::string searchable_form_encoding_; 432 std::string searchable_form_encoding_;
432 433
433 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; 434 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
434 435
435 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 436 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
436 }; 437 };
437 438
438 } // namespace content 439 } // namespace content
439 440
440 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 441 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698