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

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

Issue 1429753002: ServiceWorker: Remove dead code from ServiceWorkerContextWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix "include" dependency 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 side-by-side diff with in-line comments
Download patch
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 9479ab44de365ef347ef28f68540af5e54e615f6..843704d579abbcd045e54d0b42aab18476adc871 100644
--- a/content/public/browser/service_worker_context.h
+++ b/content/public/browser/service_worker_context.h
@@ -11,13 +11,8 @@
#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "content/public/browser/service_worker_usage_info.h"
-#include "net/base/completion_callback.h"
#include "url/gurl.h"
-namespace net {
-class URLRequest;
-}
-
namespace content {
// Represents the per-StoragePartition ServiceWorker data.
@@ -44,10 +39,6 @@ class ServiceWorkerContext {
// Must be called from the IO thread.
static bool IsExcludedHeaderNameForFetchEvent(const std::string& header_name);
- // Retrieves the ServiceWorkerContext, if any, associated with |request|.
- CONTENT_EXPORT static ServiceWorkerContext* GetServiceWorkerContext(
- net::URLRequest* request);
-
// Equivalent to calling navigator.serviceWorker.register(script_url, {scope:
// pattern}) from a renderer, except that |pattern| is an absolute URL instead
// of relative to some current origin. |callback| is passed true when the JS
@@ -74,15 +65,6 @@ class ServiceWorkerContext {
virtual void UnregisterServiceWorker(const Scope& pattern,
const ResultCallback& callback) = 0;
- // TODO(jyasskin): Provide a way to SendMessage to a Scope.
-
- // Determines if a request for |url| can be satisfied while offline.
- // This method always completes asynchronously.
- virtual void CanHandleMainResourceOffline(const GURL& url,
- const GURL& first_party,
- const net::CompletionCallback&
- callback) = 0;
-
// Methods used in response to browsing data and quota manager requests.
virtual void GetAllOriginsInfo(const GetUsageInfoCallback& callback) = 0;
virtual void DeleteForOrigin(const GURL& origin_url,
« no previous file with comments | « content/browser/service_worker/service_worker_request_handler.h ('k') | extensions/browser/service_worker_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698