| 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 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class EmbeddedSharedWorkerStub : public IPC::Listener, | 46 class EmbeddedSharedWorkerStub : public IPC::Listener, |
| 47 public blink::WebSharedWorkerClient { | 47 public blink::WebSharedWorkerClient { |
| 48 public: | 48 public: |
| 49 EmbeddedSharedWorkerStub( | 49 EmbeddedSharedWorkerStub( |
| 50 const GURL& url, | 50 const GURL& url, |
| 51 const base::string16& name, | 51 const base::string16& name, |
| 52 const base::string16& content_security_policy, | 52 const base::string16& content_security_policy, |
| 53 blink::WebContentSecurityPolicyType security_policy_type, | 53 blink::WebContentSecurityPolicyType security_policy_type, |
| 54 blink::WebAddressSpace creation_address_space, | 54 blink::WebAddressSpace creation_address_space, |
| 55 bool pause_on_start, | 55 bool pause_on_start, |
| 56 int route_id); | 56 int route_id, |
| 57 bool data_saver_enabled); |
| 57 | 58 |
| 58 // IPC::Listener implementation. | 59 // IPC::Listener implementation. |
| 59 bool OnMessageReceived(const IPC::Message& message) override; | 60 bool OnMessageReceived(const IPC::Message& message) override; |
| 60 void OnChannelError() override; | 61 void OnChannelError() override; |
| 61 | 62 |
| 62 // blink::WebSharedWorkerClient implementation. | 63 // blink::WebSharedWorkerClient implementation. |
| 63 void CountFeature(uint32_t feature) override; | 64 void CountFeature(uint32_t feature) override; |
| 64 void WorkerContextClosed() override; | 65 void WorkerContextClosed() override; |
| 65 void WorkerContextDestroyed() override; | 66 void WorkerContextDestroyed() override; |
| 66 void WorkerReadyForInspection() override; | 67 void WorkerReadyForInspection() override; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 std::vector<PendingChannel> pending_channels_; | 111 std::vector<PendingChannel> pending_channels_; |
| 111 | 112 |
| 112 ScopedChildProcessReference process_ref_; | 113 ScopedChildProcessReference process_ref_; |
| 113 WebApplicationCacheHostImpl* app_cache_host_ = nullptr; // Not owned. | 114 WebApplicationCacheHostImpl* app_cache_host_ = nullptr; // Not owned. |
| 114 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); | 115 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace content | 118 } // namespace content |
| 118 | 119 |
| 119 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ | 120 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ |
| OLD | NEW |