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 "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/browser/frame_host/navigation_handle_impl.h" | 10 #include "content/browser/frame_host/navigation_handle_impl.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 public: | 42 public: |
43 // Returns the delegate of this Navigator. | 43 // Returns the delegate of this Navigator. |
44 virtual NavigatorDelegate* GetDelegate(); | 44 virtual NavigatorDelegate* GetDelegate(); |
45 | 45 |
46 // Returns the NavigationController associated with this Navigator. | 46 // Returns the NavigationController associated with this Navigator. |
47 virtual NavigationController* GetController(); | 47 virtual NavigationController* GetController(); |
48 | 48 |
49 // Notifications coming from the RenderFrameHosts ---------------------------- | 49 // Notifications coming from the RenderFrameHosts ---------------------------- |
50 | 50 |
51 // The RenderFrameHostImpl started a provisional load. | 51 // The RenderFrameHostImpl started a provisional load. |
52 virtual void DidStartProvisionalLoad( | 52 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
53 RenderFrameHostImpl* render_frame_host, | 53 const GURL& url, |
54 const GURL& url, | 54 const base::TimeTicks& navigation_start, |
55 const base::TimeTicks& navigation_start) {}; | 55 NavigationGesture gesture){}; |
56 | 56 |
57 // The RenderFrameHostImpl has failed a provisional load. | 57 // The RenderFrameHostImpl has failed a provisional load. |
58 virtual void DidFailProvisionalLoadWithError( | 58 virtual void DidFailProvisionalLoadWithError( |
59 RenderFrameHostImpl* render_frame_host, | 59 RenderFrameHostImpl* render_frame_host, |
60 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; | 60 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; |
61 | 61 |
62 // The RenderFrameHostImpl has failed to load the document. | 62 // The RenderFrameHostImpl has failed to load the document. |
63 virtual void DidFailLoadWithError( | 63 virtual void DidFailLoadWithError( |
64 RenderFrameHostImpl* render_frame_host, | 64 RenderFrameHostImpl* render_frame_host, |
65 const GURL& url, | 65 const GURL& url, |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} | 189 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} |
190 | 190 |
191 protected: | 191 protected: |
192 friend class base::RefCounted<Navigator>; | 192 friend class base::RefCounted<Navigator>; |
193 virtual ~Navigator() {} | 193 virtual ~Navigator() {} |
194 }; | 194 }; |
195 | 195 |
196 } // namespace content | 196 } // namespace content |
197 | 197 |
198 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 198 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |