OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
| 7 |
| 8 #include <map> |
| 9 |
| 10 namespace content { |
| 11 |
| 12 // todo: class comment goes here! |
| 13 class ServiceWorkerProviderHost { |
| 14 public: |
| 15 ServiceWorkerProviderHost(int provider_id); |
| 16 ~ServiceWorkerProviderHost(); |
| 17 |
| 18 int provider_id() const { return provider_id_; } |
| 19 |
| 20 private: |
| 21 const int provider_id_; |
| 22 }; |
| 23 |
| 24 // For mapping from a provider id to an instance. |
| 25 typedef std::map<int, ServiceWorkerProviderHost*> ServiceWorkerProviderHostMap; |
| 26 |
| 27 } // namespace content |
| 28 |
| 29 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
OLD | NEW |