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

Unified Diff: content/child/service_worker/web_service_worker_impl.h

Issue 25008006: Flush out initial [un]registerServiceWorker roundtrip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use int64 for workers, remove policy check Created 7 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/child/service_worker/web_service_worker_impl.h
diff --git a/content/child/service_worker/web_service_worker_impl.h b/content/child/service_worker/web_service_worker_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..c585b55f0c0522375c0c3e1fd0d2d57f5ba43c3d
--- /dev/null
+++ b/content/child/service_worker/web_service_worker_impl.h
@@ -0,0 +1,30 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_
+#define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_
+
+#include "base/compiler_specific.h"
+#include "third_party/WebKit/public/platform/WebServiceWorker.h"
+#include "third_party/WebKit/public/web/WebFrame.h"
+
+namespace content {
+
+class WebServiceWorkerImpl
+ : NON_EXPORTED_BASE(public WebKit::WebServiceWorker) {
+ public:
+ WebServiceWorkerImpl(int64 service_worker_id, bool registered)
michaeln 2013/10/24 21:57:39 since registered is always 'true', can we remove t
alecflett 2013/10/24 22:41:22 Done.
+ : service_worker_id_(service_worker_id), registered_(registered) {}
+ virtual ~WebServiceWorkerImpl();
+
+ private:
+ int64 service_worker_id_ ALLOW_UNUSED;
+ bool registered_ ALLOW_UNUSED;
+
+ DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698