| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_IMPL_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_ |
| 6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" | 16 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" |
| 17 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
ker.h" | 17 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
ker.h" |
| 18 #include "third_party/WebKit/public/web/WebFrame.h" | 18 #include "third_party/WebKit/public/web/WebFrame.h" |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 class WebServiceWorkerProxy; | 21 class WebServiceWorkerProxy; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 | 25 |
| 26 class ServiceWorkerHandleReference; | 26 class ServiceWorkerHandleReference; |
| 27 struct ServiceWorkerObjectInfo; | |
| 28 class ThreadSafeSender; | 27 class ThreadSafeSender; |
| 29 | 28 |
| 30 // Each instance corresponds to one ServiceWorker object in JS context, and | 29 // Each instance corresponds to one ServiceWorker object in JS context, and |
| 31 // is held by ServiceWorker object in Blink's C++ layer via | 30 // is held by ServiceWorker object in Blink's C++ layer via |
| 32 // WebServiceWorker::Handle. | 31 // WebServiceWorker::Handle. |
| 33 // | 32 // |
| 34 // Each instance holds one ServiceWorkerHandleReference so that | 33 // Each instance holds one ServiceWorkerHandleReference so that |
| 35 // corresponding ServiceWorkerHandle doesn't go away in the browser process | 34 // corresponding ServiceWorkerHandle doesn't go away in the browser process |
| 36 // while the ServiceWorker object is alive. | 35 // while the ServiceWorker object is alive. |
| 37 class CONTENT_EXPORT WebServiceWorkerImpl | 36 class CONTENT_EXPORT WebServiceWorkerImpl |
| (...skipping 29 matching lines...) Expand all Loading... |
| 67 blink::WebServiceWorkerState state_; | 66 blink::WebServiceWorkerState state_; |
| 68 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 67 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 69 blink::WebServiceWorkerProxy* proxy_; | 68 blink::WebServiceWorkerProxy* proxy_; |
| 70 | 69 |
| 71 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerImpl); | 70 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerImpl); |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace content | 73 } // namespace content |
| 75 | 74 |
| 76 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_ | 75 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_ |
| OLD | NEW |