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

Unified 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: Rebase Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigator_delegate.h
diff --git a/content/browser/frame_host/navigator_delegate.h b/content/browser/frame_host/navigator_delegate.h
index 1494cc339f2ed24e5dcbc75f86475349a36489c1..070e8c76fe7b57e813f84ce286855939f1ffa249 100644
--- a/content/browser/frame_host/navigator_delegate.h
+++ b/content/browser/frame_host/navigator_delegate.h
@@ -17,6 +17,7 @@ struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
namespace content {
+class BrowserContext;
class FrameTreeNode;
class NavigationHandle;
class RenderFrameHostImpl;
@@ -130,6 +131,9 @@ class CONTENT_EXPORT NavigatorDelegate {
// The load progress was changed.
virtual void DidChangeLoadProgress() {}
+
+ // Helper method to access the BrowserContext.
+ virtual BrowserContext* GetBrowserContext() const;
michaeln 2015/10/01 01:42:15 This method seems out of place on this interface.
clamy 2015/10/01 12:41:27 Agreed. At the end of the day, NavigatorDelegate i
Fabrice (no longer in Chrome) 2015/10/01 18:29:55 This was the only way I found to access the Browse
clamy 2015/10/02 10:34:44 It'd be reasonable to add a pointer to the FTN in
Fabrice (no longer in Chrome) 2015/10/02 16:37:34 Done.
};
} // namspace content

Powered by Google App Engine
This is Rietveld 408576698