diff options
author | alecflett@chromium.org <alecflett@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-07 00:39:43 +0000 |
---|---|---|
committer | alecflett@chromium.org <alecflett@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-07 00:39:43 +0000 |
commit | 2c12d3988689ece4e64ae54e6ade3407cce35282 (patch) | |
tree | 55360fa31fbadd9868a3defe435c3a2dd6c58ec3 /content/browser/service_worker/service_worker_context.h | |
parent | 1913f753805b8871c83bb7f4a8f19d33cb2a77ad (diff) | |
download | chromium_src-2c12d3988689ece4e64ae54e6ade3407cce35282.zip chromium_src-2c12d3988689ece4e64ae54e6ade3407cce35282.tar.gz chromium_src-2c12d3988689ece4e64ae54e6ade3407cce35282.tar.bz2 |
Service worker registration error support
This patch introduces use of WebServiceWorkerError as a means to propagate an
error from the browser to the renderer, and further reflect this error via
WebCallbacks into Blink
BUG=285976
R=jam@chromium.org, michaeln@chromium.org, tsepez@chromium.org
TBR=abarth
Review URL: https://codereview.chromium.org/26442004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/service_worker/service_worker_context.h')
-rw-r--r-- | content/browser/service_worker/service_worker_context.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/browser/service_worker/service_worker_context.h b/content/browser/service_worker/service_worker_context.h index 5b290b7..f69599c 100644 --- a/content/browser/service_worker/service_worker_context.h +++ b/content/browser/service_worker/service_worker_context.h @@ -7,6 +7,7 @@ #include "base/files/file_path.h" #include "base/memory/ref_counted.h" +#include "content/common/content_export.h" namespace base { class FilePath; @@ -23,7 +24,7 @@ namespace content { // - persistent storage of pattern -> service worker scripts // - initialization and initial installation of service workers // - dispatching of non-fetch events to service workers -class ServiceWorkerContext +class CONTENT_EXPORT ServiceWorkerContext : public base::RefCountedThreadSafe<ServiceWorkerContext> { public: // This is owned by the StoragePartition, which will supply it with @@ -31,12 +32,16 @@ class ServiceWorkerContext ServiceWorkerContext(const base::FilePath& path, quota::QuotaManagerProxy* quota_manager_proxy); + bool IsEnabled(); + private: friend class base::RefCountedThreadSafe<ServiceWorkerContext>; ~ServiceWorkerContext(); scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; base::FilePath path_; + + DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContext); }; } // namespace content |