OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "content/common/content_export.h" |
11 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h" | 12 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h" |
12 | 13 |
13 namespace blink { | 14 namespace blink { |
14 class WebServiceWorker; | 15 class WebServiceWorker; |
15 class WebServiceWorkerRegistrationProxy; | 16 class WebServiceWorkerRegistrationProxy; |
16 } | 17 } |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 class ServiceWorkerRegistrationHandleReference; | 21 class ServiceWorkerRegistrationHandleReference; |
21 class ThreadSafeSender; | 22 class ThreadSafeSender; |
22 struct ServiceWorkerObjectInfo; | 23 struct ServiceWorkerObjectInfo; |
23 | 24 |
24 class WebServiceWorkerRegistrationImpl | 25 class CONTENT_EXPORT WebServiceWorkerRegistrationImpl |
25 : NON_EXPORTED_BASE(public blink::WebServiceWorkerRegistration) { | 26 : NON_EXPORTED_BASE(public blink::WebServiceWorkerRegistration) { |
26 public: | 27 public: |
27 explicit WebServiceWorkerRegistrationImpl( | 28 explicit WebServiceWorkerRegistrationImpl( |
28 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref); | 29 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref); |
29 virtual ~WebServiceWorkerRegistrationImpl(); | 30 virtual ~WebServiceWorkerRegistrationImpl(); |
30 | 31 |
31 void SetInstalling(blink::WebServiceWorker* service_worker); | 32 void SetInstalling(blink::WebServiceWorker* service_worker); |
32 void SetWaiting(blink::WebServiceWorker* service_worker); | 33 void SetWaiting(blink::WebServiceWorker* service_worker); |
33 void SetActive(blink::WebServiceWorker* service_worker); | 34 void SetActive(blink::WebServiceWorker* service_worker); |
34 | 35 |
(...skipping 28 matching lines...) Expand all Loading... |
63 blink::WebServiceWorkerRegistrationProxy* proxy_; | 64 blink::WebServiceWorkerRegistrationProxy* proxy_; |
64 | 65 |
65 std::vector<QueuedTask> queued_tasks_; | 66 std::vector<QueuedTask> queued_tasks_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 68 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace content | 71 } // namespace content |
71 | 72 |
72 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 73 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
OLD | NEW |