| 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/navigator_delegate.h" | 10 #include "content/browser/frame_host/navigator_delegate.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // The RenderFrameHostImpl has failed a provisional load. | 59 // The RenderFrameHostImpl has failed a provisional load. |
| 60 virtual void DidFailProvisionalLoadWithError( | 60 virtual void DidFailProvisionalLoadWithError( |
| 61 RenderFrameHostImpl* render_frame_host, | 61 RenderFrameHostImpl* render_frame_host, |
| 62 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; | 62 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; |
| 63 | 63 |
| 64 // The RenderFrameHostImpl has failed to load the document. | 64 // The RenderFrameHostImpl has failed to load the document. |
| 65 virtual void DidFailLoadWithError( | 65 virtual void DidFailLoadWithError( |
| 66 RenderFrameHostImpl* render_frame_host, | 66 RenderFrameHostImpl* render_frame_host, |
| 67 const GURL& url, | 67 const GURL& url, |
| 68 int error_code, | 68 int error_code, |
| 69 const base::string16& error_description) {} | 69 const base::string16& error_description, |
| 70 bool was_ignored_by_handler) {} |
| 70 | 71 |
| 71 // The RenderFrameHostImpl has committed a navigation. | 72 // The RenderFrameHostImpl has committed a navigation. |
| 72 virtual void DidNavigate( | 73 virtual void DidNavigate( |
| 73 RenderFrameHostImpl* render_frame_host, | 74 RenderFrameHostImpl* render_frame_host, |
| 74 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {} | 75 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {} |
| 75 | 76 |
| 76 // Called by the NavigationController to cause the Navigator to navigate | 77 // Called by the NavigationController to cause the Navigator to navigate |
| 77 // to the current pending entry. The NavigationController should be called | 78 // to the current pending entry. The NavigationController should be called |
| 78 // back with RendererDidNavigate on success or DiscardPendingEntry on failure. | 79 // back with RendererDidNavigate on success or DiscardPendingEntry on failure. |
| 79 // The callbacks can be inside of this function, or at some future time. | 80 // The callbacks can be inside of this function, or at some future time. |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); | 182 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); |
| 182 | 183 |
| 183 protected: | 184 protected: |
| 184 friend class base::RefCounted<Navigator>; | 185 friend class base::RefCounted<Navigator>; |
| 185 virtual ~Navigator() {} | 186 virtual ~Navigator() {} |
| 186 }; | 187 }; |
| 187 | 188 |
| 188 } // namespace content | 189 } // namespace content |
| 189 | 190 |
| 190 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 191 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| OLD | NEW |