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

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

Issue 248963007: Perform navigation policy check on UI thread for --site-per-process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes based on Charlie's review. Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_NAVIGATOR_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/navigation_controller.h" 10 #include "content/public/browser/navigation_controller.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // Implementations of this interface are responsible for performing navigations 28 // Implementations of this interface are responsible for performing navigations
29 // in a node of the FrameTree. Its lifetime is bound to all FrameTreeNode 29 // in a node of the FrameTree. Its lifetime is bound to all FrameTreeNode
30 // objects that are using it and will be released once all nodes that use it are 30 // objects that are using it and will be released once all nodes that use it are
31 // freed. The Navigator is bound to a single frame tree and cannot be used by 31 // freed. The Navigator is bound to a single frame tree and cannot be used by
32 // multiple instances of FrameTree. 32 // multiple instances of FrameTree.
33 // TODO(nasko): Move all navigation methods, such as didStartProvisionalLoad 33 // TODO(nasko): Move all navigation methods, such as didStartProvisionalLoad
34 // from WebContentsImpl to this interface. 34 // from WebContentsImpl to this interface.
35 class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> { 35 class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> {
36 public: 36 public:
37 // Returns the NavigationController associated with this Navigator.
38 virtual NavigationController* GetController();
Charlie Reis 2014/04/24 23:17:50 We should probably implement this in InterstitialP
nasko 2014/04/24 23:29:34 Done.
39
37 // The RenderFrameHostImpl started a provisional load. 40 // The RenderFrameHostImpl started a provisional load.
38 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, 41 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host,
39 int parent_routing_id, 42 int parent_routing_id,
40 const GURL& url) {}; 43 const GURL& url) {};
41 44
42 // The RenderFrameHostImpl has failed a provisional load. 45 // The RenderFrameHostImpl has failed a provisional load.
43 virtual void DidFailProvisionalLoadWithError( 46 virtual void DidFailProvisionalLoadWithError(
44 RenderFrameHostImpl* render_frame_host, 47 RenderFrameHostImpl* render_frame_host,
45 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; 48 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {};
46 49
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool user_gesture) {} 114 bool user_gesture) {}
112 115
113 protected: 116 protected:
114 friend class base::RefCounted<Navigator>; 117 friend class base::RefCounted<Navigator>;
115 virtual ~Navigator() {} 118 virtual ~Navigator() {}
116 }; 119 };
117 120
118 } // namespace content 121 } // namespace content
119 122
120 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 123 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigator.cc » ('j') | content/browser/loader/cross_site_resource_handler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698