| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( |
| 53 RenderFrameHostImpl* render_frame_host, | 53 RenderFrameHostImpl* render_frame_host, |
| 54 const GURL& url, | 54 const GURL& url, |
| 55 const std::vector<GURL>& redirect_chain, |
| 55 const base::TimeTicks& navigation_start) {}; | 56 const base::TimeTicks& navigation_start) {}; |
| 56 | 57 |
| 57 // The RenderFrameHostImpl has failed a provisional load. | 58 // The RenderFrameHostImpl has failed a provisional load. |
| 58 virtual void DidFailProvisionalLoadWithError( | 59 virtual void DidFailProvisionalLoadWithError( |
| 59 RenderFrameHostImpl* render_frame_host, | 60 RenderFrameHostImpl* render_frame_host, |
| 60 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; | 61 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; |
| 61 | 62 |
| 62 // The RenderFrameHostImpl has failed to load the document. | 63 // The RenderFrameHostImpl has failed to load the document. |
| 63 virtual void DidFailLoadWithError( | 64 virtual void DidFailLoadWithError( |
| 64 RenderFrameHostImpl* render_frame_host, | 65 RenderFrameHostImpl* render_frame_host, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} | 190 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} |
| 190 | 191 |
| 191 protected: | 192 protected: |
| 192 friend class base::RefCounted<Navigator>; | 193 friend class base::RefCounted<Navigator>; |
| 193 virtual ~Navigator() {} | 194 virtual ~Navigator() {} |
| 194 }; | 195 }; |
| 195 | 196 |
| 196 } // namespace content | 197 } // namespace content |
| 197 | 198 |
| 198 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 199 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| OLD | NEW |