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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; | 65 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}; |
66 | 66 |
67 // The RenderFrameHostImpl has failed to load the document. | 67 // The RenderFrameHostImpl has failed to load the document. |
68 virtual void DidFailLoadWithError( | 68 virtual void DidFailLoadWithError( |
69 RenderFrameHostImpl* render_frame_host, | 69 RenderFrameHostImpl* render_frame_host, |
70 const GURL& url, | 70 const GURL& url, |
71 int error_code, | 71 int error_code, |
72 const base::string16& error_description, | 72 const base::string16& error_description, |
73 bool was_ignored_by_handler) {} | 73 bool was_ignored_by_handler) {} |
74 | 74 |
75 // The RenderFrameHostImpl has committed a navigation. | 75 // The RenderFrameHostImpl has committed a navigation. |
Charlie Reis
2016/11/03 22:02:22
nit: Mention something about how we shouldn't assu
clamy
2016/11/04 14:18:21
Done.
| |
76 virtual void DidNavigate( | 76 virtual void DidNavigate( |
77 RenderFrameHostImpl* render_frame_host, | 77 RenderFrameHostImpl* render_frame_host, |
78 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {} | 78 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
79 std::unique_ptr<NavigationHandleImpl> navigation_handle) {} | |
79 | 80 |
80 // Called by the NavigationController to cause the Navigator to navigate | 81 // Called by the NavigationController to cause the Navigator to navigate |
81 // to the current pending entry. The NavigationController should be called | 82 // to the current pending entry. The NavigationController should be called |
82 // back with RendererDidNavigate on success or DiscardPendingEntry on failure. | 83 // back with RendererDidNavigate on success or DiscardPendingEntry on failure. |
83 // The callbacks can be inside of this function, or at some future time. | 84 // The callbacks can be inside of this function, or at some future time. |
84 // | 85 // |
85 // If this method returns false, then the navigation is discarded (equivalent | 86 // If this method returns false, then the navigation is discarded (equivalent |
86 // to calling DiscardPendingEntry on the NavigationController). | 87 // to calling DiscardPendingEntry on the NavigationController). |
87 // | 88 // |
88 // TODO(nasko): Remove this method from the interface, since Navigator and | 89 // TODO(nasko): Remove this method from the interface, since Navigator and |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} | 196 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} |
196 | 197 |
197 protected: | 198 protected: |
198 friend class base::RefCounted<Navigator>; | 199 friend class base::RefCounted<Navigator>; |
199 virtual ~Navigator() {} | 200 virtual ~Navigator() {} |
200 }; | 201 }; |
201 | 202 |
202 } // namespace content | 203 } // namespace content |
203 | 204 |
204 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 205 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |