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

Unified Diff: content/public/browser/service_worker_context.h

Issue 2778173002: Revert of "Speculatively launch Service Workers on mouse/touch events." (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « content/child/runtime_features.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/service_worker_context.h
diff --git a/content/public/browser/service_worker_context.h b/content/public/browser/service_worker_context.h
index 90c3d93ad587025b5c88774716313c632e1a94e7..22d13f9bd57ac84e19382a9430fc1a88f20b0199 100644
--- a/content/public/browser/service_worker_context.h
+++ b/content/public/browser/service_worker_context.h
@@ -12,10 +12,6 @@
#include "content/public/browser/service_worker_usage_info.h"
#include "url/gurl.h"
-namespace blink {
-enum class WebNavigationHintType;
-}
-
namespace content {
enum class ServiceWorkerCapability {
@@ -143,18 +139,6 @@ class ServiceWorkerContext {
// be called on the UI thread.
virtual void ClearAllServiceWorkersForTest(const base::Closure& callback) = 0;
- // Starts a Service Worker for |document_url| for a navigation hint in the
- // specified render process |render_process_id|. Must be called from the UI
- // thread. The |callback| will always be called on the UI thread.
- // This method can fail if:
- // * No Service Worker was registered for |document_url|.
- // * The specified render process is not suitable for loading |document_url|.
- virtual void StartServiceWorkerForNavigationHint(
- const GURL& document_url,
- blink::WebNavigationHintType type,
- int render_process_id,
- const ResultCallback& callback) = 0;
-
protected:
ServiceWorkerContext() {}
virtual ~ServiceWorkerContext() {}
« no previous file with comments | « content/child/runtime_features.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698