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

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..8a85a2adf4726950551bec69499fa78fbef18f13
--- /dev/null
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -0,0 +1,28 @@
+// 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_;
+};
+
+typedef std::map<int, ServiceWorkerProviderHost*> ServiceWorkerProviderHostMap;
kinuko 2013/11/18 05:57:24 This one's primarily for id to host.. correct?
michaeln 2013/11/18 20:18:17 yes, added a comment
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698