Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: content/browser/frame_host/navigator_delegate.h

Issue 1080143003: Move DidStartLoading, DidStopLoading, DidChangeLoadProgress to RFHI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/frame_host/navigator.cc ('k') | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "ui/base/page_transition_types.h" 11 #include "ui/base/page_transition_types.h"
12 #include "ui/base/window_open_disposition.h" 12 #include "ui/base/window_open_disposition.h"
13 13
14 class GURL; 14 class GURL;
15 struct FrameHostMsg_DidCommitProvisionalLoad_Params; 15 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; 16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
17 17
18 namespace content { 18 namespace content {
19 19
20 class FrameTreeNode;
20 class RenderFrameHostImpl; 21 class RenderFrameHostImpl;
21 struct LoadCommittedDetails; 22 struct LoadCommittedDetails;
22 struct OpenURLParams; 23 struct OpenURLParams;
23 24
24 // A delegate API used by Navigator to notify its embedder of navigation 25 // A delegate API used by Navigator to notify its embedder of navigation
25 // related events. 26 // related events.
26 class CONTENT_EXPORT NavigatorDelegate { 27 class CONTENT_EXPORT NavigatorDelegate {
27 public: 28 public:
28 // The RenderFrameHost started a provisional load for the frame 29 // The RenderFrameHost started a provisional load for the frame
29 // represented by |render_frame_host|. 30 // represented by |render_frame_host|.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 NavigationController::ReloadType reload_type) {} 93 NavigationController::ReloadType reload_type) {}
93 94
94 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which 95 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which
95 // this forwards to. 96 // this forwards to.
96 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 97 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
97 const OpenURLParams& params) {} 98 const OpenURLParams& params) {}
98 99
99 // Returns whether URLs for aborted browser-initiated navigations should be 100 // Returns whether URLs for aborted browser-initiated navigations should be
100 // preserved in the omnibox. Defaults to false. 101 // preserved in the omnibox. Defaults to false.
101 virtual bool ShouldPreserveAbortedURLs(); 102 virtual bool ShouldPreserveAbortedURLs();
103
104 // A RenderFrameHost in the specified |frame_tree_node| started loading a new
105 // document. This correponds to Blink's notion of the throbber starting.
106 // |to_different_document| will be true unless the load is a fragment
107 // navigation, or triggered by history.pushState/replaceState.
108 virtual void DidStartLoading(FrameTreeNode* frame_tree_node,
109 bool to_different_document) {}
110
111 // A document stopped loading. This corresponds to Blink's notion of the
112 // throbber stopping.
113 virtual void DidStopLoading() {}
114
115 // The load progress was changed.
116 virtual void DidChangeLoadProgress() {}
102 }; 117 };
103 118
104 } // namspace content 119 } // namspace content
105 120
106 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ 121 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator.cc ('k') | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698