| 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,
|
|
|