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 24 matching lines...) Expand all Loading... |
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. | 37 // Returns the NavigationController associated with this Navigator. |
38 virtual NavigationController* GetController(); | 38 virtual NavigationController* GetController(); |
39 | 39 |
40 | 40 |
41 // Notifications coming from the RenderFrameHosts ---------------------------- | 41 // Notifications coming from the RenderFrameHosts ---------------------------- |
42 | 42 |
43 // The RenderFrameHostImpl started a provisional load. | 43 // The RenderFrameHostImpl started a provisional load. |
44 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, | 44 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
45 const GURL& url) {}; | 45 const GURL& url, |
| 46 bool is_transition_navigation) {}; |
46 | 47 |
47 // The RenderFrameHostImpl has failed a provisional load. | 48 // The RenderFrameHostImpl has failed a provisional load. |
48 virtual void DidFailProvisionalLoadWithError( | 49 virtual void DidFailProvisionalLoadWithError( |
49 RenderFrameHostImpl* render_frame_host, | 50 RenderFrameHostImpl* render_frame_host, |
50 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; | 51 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; |
51 | 52 |
52 // The RenderFrameHostImpl has failed to load the document. | 53 // The RenderFrameHostImpl has failed to load the document. |
53 virtual void DidFailLoadWithError( | 54 virtual void DidFailLoadWithError( |
54 RenderFrameHostImpl* render_frame_host, | 55 RenderFrameHostImpl* render_frame_host, |
55 const GURL& url, | 56 const GURL& url, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 bool user_gesture) {} | 120 bool user_gesture) {} |
120 | 121 |
121 protected: | 122 protected: |
122 friend class base::RefCounted<Navigator>; | 123 friend class base::RefCounted<Navigator>; |
123 virtual ~Navigator() {} | 124 virtual ~Navigator() {} |
124 }; | 125 }; |
125 | 126 |
126 } // namespace content | 127 } // namespace content |
127 | 128 |
128 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 129 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |