| 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 <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "content/child/child_message_filter.h" | 12 #include "content/child/child_message_filter.h" |
| 13 #include "content/child/scoped_child_process_reference.h" | 13 #include "content/child/scoped_child_process_reference.h" |
| 14 #include "ipc/ipc_listener.h" | 14 #include "ipc/ipc_listener.h" |
| 15 #include "third_party/WebKit/public/platform/WebAddressSpace.h" | 15 #include "third_party/WebKit/public/platform/WebAddressSpace.h" |
| 16 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h" | 16 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h" |
| 17 #include "third_party/WebKit/public/platform/WebString.h" | 17 #include "third_party/WebKit/public/platform/WebString.h" |
| 18 #include "third_party/WebKit/public/web/WebDataSaverFlag.h" |
| 18 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h" | 19 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h" |
| 19 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| 20 | 21 |
| 21 namespace blink { | 22 namespace blink { |
| 22 class WebApplicationCacheHost; | 23 class WebApplicationCacheHost; |
| 23 class WebApplicationCacheHostClient; | 24 class WebApplicationCacheHostClient; |
| 24 class WebNotificationPresenter; | 25 class WebNotificationPresenter; |
| 25 class WebSecurityOrigin; | 26 class WebSecurityOrigin; |
| 26 class WebSharedWorker; | 27 class WebSharedWorker; |
| 27 class WebWorkerContentSettingsClientProxy; | 28 class WebWorkerContentSettingsClientProxy; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 46 class EmbeddedSharedWorkerStub : public IPC::Listener, | 47 class EmbeddedSharedWorkerStub : public IPC::Listener, |
| 47 public blink::WebSharedWorkerClient { | 48 public blink::WebSharedWorkerClient { |
| 48 public: | 49 public: |
| 49 EmbeddedSharedWorkerStub( | 50 EmbeddedSharedWorkerStub( |
| 50 const GURL& url, | 51 const GURL& url, |
| 51 const base::string16& name, | 52 const base::string16& name, |
| 52 const base::string16& content_security_policy, | 53 const base::string16& content_security_policy, |
| 53 blink::WebContentSecurityPolicyType security_policy_type, | 54 blink::WebContentSecurityPolicyType security_policy_type, |
| 54 blink::WebAddressSpace creation_address_space, | 55 blink::WebAddressSpace creation_address_space, |
| 55 bool pause_on_start, | 56 bool pause_on_start, |
| 56 int route_id); | 57 int route_id, |
| 58 blink::WebDataSaverFlag data_saver_flag); |
| 57 | 59 |
| 58 // IPC::Listener implementation. | 60 // IPC::Listener implementation. |
| 59 bool OnMessageReceived(const IPC::Message& message) override; | 61 bool OnMessageReceived(const IPC::Message& message) override; |
| 60 void OnChannelError() override; | 62 void OnChannelError() override; |
| 61 | 63 |
| 62 // blink::WebSharedWorkerClient implementation. | 64 // blink::WebSharedWorkerClient implementation. |
| 63 void CountFeature(uint32_t feature) override; | 65 void CountFeature(uint32_t feature) override; |
| 64 void WorkerContextClosed() override; | 66 void WorkerContextClosed() override; |
| 65 void WorkerContextDestroyed() override; | 67 void WorkerContextDestroyed() override; |
| 66 void WorkerReadyForInspection() override; | 68 void WorkerReadyForInspection() override; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 std::vector<PendingChannel> pending_channels_; | 112 std::vector<PendingChannel> pending_channels_; |
| 111 | 113 |
| 112 ScopedChildProcessReference process_ref_; | 114 ScopedChildProcessReference process_ref_; |
| 113 WebApplicationCacheHostImpl* app_cache_host_ = nullptr; // Not owned. | 115 WebApplicationCacheHostImpl* app_cache_host_ = nullptr; // Not owned. |
| 114 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); | 116 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 } // namespace content | 119 } // namespace content |
| 118 | 120 |
| 119 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ | 121 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ |
| OLD | NEW |