OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |