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

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

Issue 1294243004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a spot. Created 5 years, 2 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
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 BrowserContext;
20 class FrameTreeNode; 21 class FrameTreeNode;
21 class NavigationHandle; 22 class NavigationHandle;
22 class RenderFrameHostImpl; 23 class RenderFrameHostImpl;
23 struct LoadCommittedDetails; 24 struct LoadCommittedDetails;
24 struct OpenURLParams; 25 struct OpenURLParams;
25 26
26 // A delegate API used by Navigator to notify its embedder of navigation 27 // A delegate API used by Navigator to notify its embedder of navigation
27 // related events. 28 // related events.
28 class CONTENT_EXPORT NavigatorDelegate { 29 class CONTENT_EXPORT NavigatorDelegate {
29 public: 30 public:
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // navigation, or triggered by history.pushState/replaceState. 124 // navigation, or triggered by history.pushState/replaceState.
124 virtual void DidStartLoading(FrameTreeNode* frame_tree_node, 125 virtual void DidStartLoading(FrameTreeNode* frame_tree_node,
125 bool to_different_document) {} 126 bool to_different_document) {}
126 127
127 // A document stopped loading. This corresponds to Blink's notion of the 128 // A document stopped loading. This corresponds to Blink's notion of the
128 // throbber stopping. 129 // throbber stopping.
129 virtual void DidStopLoading() {} 130 virtual void DidStopLoading() {}
130 131
131 // The load progress was changed. 132 // The load progress was changed.
132 virtual void DidChangeLoadProgress() {} 133 virtual void DidChangeLoadProgress() {}
134
135 // Helper method to access the BrowserContext.
136 virtual BrowserContext* GetBrowserContext() const;
michaeln 2015/10/01 23:11:12 The NavigationController interface has a GetBrowse
clamy 2015/10/02 10:34:44 There is one NavigatorImpl per WebContents, and it
Fabrice (no longer in Chrome) 2015/10/02 16:37:34 Changed the argument to use a FrameTreeNode so thi
michaeln 2015/10/07 01:16:44 Thnx for the explanation, the NavigationMetricsDat
133 }; 137 };
134 138
135 } // namspace content 139 } // namspace content
136 140
137 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ 141 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698