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

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

Issue 26442004: Service worker registration error support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-fix tests Created 7 years, 1 month 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/browser/DEPS ('k') | content/browser/service_worker/service_worker_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_context.h
diff --git a/content/browser/service_worker/service_worker_context.h b/content/browser/service_worker/service_worker_context.h
index 5b290b7a317cc17edb3aea28c40adb9fdb6b8d76..f69599ca4c12a7f7cfddab0cc14c5d4c494afede 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/service_worker/service_worker_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698