| 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_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ | 5 #ifndef CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ |
| 6 #define CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ | 6 #define CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "content/child/child_message_filter.h" | 11 #include "content/child/child_message_filter.h" |
| 12 #include "content/child/scoped_child_process_reference.h" | 12 #include "content/child/scoped_child_process_reference.h" |
| 13 #include "ipc/ipc_listener.h" | 13 #include "ipc/ipc_listener.h" |
| 14 #include "third_party/WebKit/public/platform/WebAddressSpace.h" |
| 14 #include "third_party/WebKit/public/platform/WebString.h" | 15 #include "third_party/WebKit/public/platform/WebString.h" |
| 15 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" | 16 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" |
| 16 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h" | 17 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h" |
| 17 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 18 | 19 |
| 19 namespace blink { | 20 namespace blink { |
| 20 class WebApplicationCacheHost; | 21 class WebApplicationCacheHost; |
| 21 class WebApplicationCacheHostClient; | 22 class WebApplicationCacheHostClient; |
| 22 class WebMessagePortChannel; | 23 class WebMessagePortChannel; |
| 23 class WebNotificationPresenter; | 24 class WebNotificationPresenter; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 42 // In either case the corresponding blink::WebSharedWorker also deletes | 43 // In either case the corresponding blink::WebSharedWorker also deletes |
| 43 // itself. | 44 // itself. |
| 44 class EmbeddedSharedWorkerStub : public IPC::Listener, | 45 class EmbeddedSharedWorkerStub : public IPC::Listener, |
| 45 public blink::WebSharedWorkerClient { | 46 public blink::WebSharedWorkerClient { |
| 46 public: | 47 public: |
| 47 EmbeddedSharedWorkerStub( | 48 EmbeddedSharedWorkerStub( |
| 48 const GURL& url, | 49 const GURL& url, |
| 49 const base::string16& name, | 50 const base::string16& name, |
| 50 const base::string16& content_security_policy, | 51 const base::string16& content_security_policy, |
| 51 blink::WebContentSecurityPolicyType security_policy_type, | 52 blink::WebContentSecurityPolicyType security_policy_type, |
| 53 blink::WebAddressSpace creation_address_space, |
| 52 bool pause_on_start, | 54 bool pause_on_start, |
| 53 int route_id); | 55 int route_id); |
| 54 | 56 |
| 55 // IPC::Listener implementation. | 57 // IPC::Listener implementation. |
| 56 bool OnMessageReceived(const IPC::Message& message) override; | 58 bool OnMessageReceived(const IPC::Message& message) override; |
| 57 void OnChannelError() override; | 59 void OnChannelError() override; |
| 58 | 60 |
| 59 // blink::WebSharedWorkerClient implementation. | 61 // blink::WebSharedWorkerClient implementation. |
| 60 void workerContextClosed() override; | 62 void workerContextClosed() override; |
| 61 void workerContextDestroyed() override; | 63 void workerContextDestroyed() override; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 PendingChannelList pending_channels_; | 101 PendingChannelList pending_channels_; |
| 100 | 102 |
| 101 ScopedChildProcessReference process_ref_; | 103 ScopedChildProcessReference process_ref_; |
| 102 WebApplicationCacheHostImpl* app_cache_host_ = nullptr; | 104 WebApplicationCacheHostImpl* app_cache_host_ = nullptr; |
| 103 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); | 105 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 } // namespace content | 108 } // namespace content |
| 107 | 109 |
| 108 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ | 110 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ |
| OLD | NEW |