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

Unified Diff: chrome/browser/renderer_host/chrome_render_message_filter.h

Issue 2052613003: Speculatively launch Service Workers on mouse/touch events. [3/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unnecessary includes Created 4 years, 5 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: chrome/browser/renderer_host/chrome_render_message_filter.h
diff --git a/chrome/browser/renderer_host/chrome_render_message_filter.h b/chrome/browser/renderer_host/chrome_render_message_filter.h
index 7b2f29479d1c711b15b8550429bc985725787975..2ed27b0ca720b5e24753a1e191d6b7da7d4a3fa3 100644
--- a/chrome/browser/renderer_host/chrome_render_message_filter.h
+++ b/chrome/browser/renderer_host/chrome_render_message_filter.h
@@ -24,6 +24,10 @@ namespace chrome_browser_net {
class Predictor;
}
+namespace content {
+class ServiceWorkerContext;
+}
+
namespace content_settings {
class CookieSettings;
}
@@ -40,7 +44,10 @@ class InfoMap;
// process on the IPC thread.
class ChromeRenderMessageFilter : public content::BrowserMessageFilter {
public:
- ChromeRenderMessageFilter(int render_process_id, Profile* profile);
+ ChromeRenderMessageFilter(
+ int render_process_id,
+ Profile* profile,
+ content::ServiceWorkerContext* service_worker_context);
// content::BrowserMessageFilter methods:
bool OnMessageReceived(const IPC::Message& message) override;
@@ -137,6 +144,9 @@ class ChromeRenderMessageFilter : public content::BrowserMessageFilter {
// Used to look up permissions at database creation time.
scoped_refptr<content_settings::CookieSettings> cookie_settings_;
+ // Used to start Service Workers for navigation hints.
+ content::ServiceWorkerContext* service_worker_context_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter);
};
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698