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_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "content/public/browser/invalidate_type.h" | 9 #include "content/public/browser/invalidate_type.h" |
10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 virtual void AboutToNavigateRenderFrame( | 88 virtual void AboutToNavigateRenderFrame( |
89 RenderFrameHostImpl* render_frame_host) {} | 89 RenderFrameHostImpl* render_frame_host) {} |
90 | 90 |
91 // Notifies the Navigator embedder that a navigation to pending | 91 // Notifies the Navigator embedder that a navigation to pending |
92 // NavigationEntry has started in the browser process. | 92 // NavigationEntry has started in the browser process. |
93 virtual void DidStartNavigationToPendingEntry( | 93 virtual void DidStartNavigationToPendingEntry( |
94 RenderFrameHostImpl* render_frame_host, | 94 RenderFrameHostImpl* render_frame_host, |
95 const GURL& url, | 95 const GURL& url, |
96 NavigationController::ReloadType reload_type) {} | 96 NavigationController::ReloadType reload_type) {} |
97 | 97 |
98 // The RenderFrame began loading a new page. This corresponds to Blink's | |
99 // notion of the throbber starting. | |
100 // |to_different_document| will be true unless the load is a fragment | |
101 // navigation, or triggered by history.pushState/replaceState. | |
102 virtual void DidStartLoading(RenderFrameHostImpl* render_frame_host, | |
103 bool to_different_document) {} | |
104 | |
105 // The RenderFrame stopped loading a page. This corresponds to Blink's notion | |
106 // of the throbber stopping. | |
107 virtual void DidStopLoading(RenderFrameHostImpl* render_frame_host) {} | |
108 | |
109 // The page made progress loading. | |
nasko
2014/05/02 22:48:23
nit: Why break up the line in the middle, it has l
Avi (use Gerrit)
2014/05/05 15:15:02
Done.
| |
110 // |progress| is a value between 0 (nothing loaded) to 1.0 (page entirely | |
111 // loaded). | |
112 virtual void DidChangeLoadProgress(double progress) {} | |
113 | |
98 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which | 114 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which |
99 // this forwards to. | 115 // this forwards to. |
100 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 116 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
101 const OpenURLParams& params) {} | 117 const OpenURLParams& params) {} |
102 | 118 |
103 // Returns whether URLs for aborted browser-initiated navigations should be | 119 // Returns whether URLs for aborted browser-initiated navigations should be |
104 // preserved in the omnibox. Defaults to false. | 120 // preserved in the omnibox. Defaults to false. |
105 virtual bool ShouldPreserveAbortedURLs(); | 121 virtual bool ShouldPreserveAbortedURLs(); |
106 }; | 122 }; |
107 | 123 |
108 } // namspace content | 124 } // namspace content |
109 | 125 |
110 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 126 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |