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