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

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

Issue 208843004: Add the beginning of a public Service Worker API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch to a bool 'success' result. Created 6 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
Index: content/browser/service_worker/service_worker_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index 1b9b6523907a51058e06f479e1b6da7312648909..450538c02e1aa91f23442af63ca5cfac1694d55b 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -8,8 +8,9 @@
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "content/browser/service_worker/service_worker_context.h"
+#include "content/browser/service_worker/service_worker_context_core.h"
#include "content/common/content_export.h"
+#include "content/public/browser/service_worker_context.h"
namespace base {
class FilePath;
@@ -42,6 +43,18 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// The core context is only for use on the IO thread.
ServiceWorkerContextCore* context();
+ // ServiceWorkerContext implementation:
+ virtual void RegisterServiceWorker(const GURL& pattern,
+ const GURL& script_url,
+ int source_process_id,
+ const ResultCallback& continuation)
+ OVERRIDE;
+
+ virtual void UnregisterServiceWorker(const GURL& pattern,
+ int source_process_id,
+ const ResultCallback& continuation)
+ OVERRIDE;
+
private:
friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>;
virtual ~ServiceWorkerContextWrapper();

Powered by Google App Engine
This is Rietveld 408576698