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

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

Issue 70533005: More scaffolding, add class ServiceWorkerProviderHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: content/browser/service_worker/service_worker_provider_host.h
diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..8170c23d452b39f8a3b86208c39a311fea1e1440
--- /dev/null
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -0,0 +1,29 @@
+// 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
+#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
+
+#include <map>
+
+namespace content {
+
+// todo: class comment goes here!
+class ServiceWorkerProviderHost {
+ public:
+ ServiceWorkerProviderHost(int provider_id);
+ ~ServiceWorkerProviderHost();
+
+ int provider_id() const { return provider_id_; }
+
+ private:
+ const int provider_id_;
+};
+
+// For mapping from a provider id to an instance.
+typedef std::map<int, ServiceWorkerProviderHost*> ServiceWorkerProviderHostMap;
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698