| 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 "content/child/child_message_filter.h" | 10 #include "content/child/child_message_filter.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 class EmbeddedSharedWorkerStub : public IPC::Listener, | 33 class EmbeddedSharedWorkerStub : public IPC::Listener, |
| 34 public blink::WebSharedWorkerClient { | 34 public blink::WebSharedWorkerClient { |
| 35 public: | 35 public: |
| 36 EmbeddedSharedWorkerStub( | 36 EmbeddedSharedWorkerStub( |
| 37 const GURL& url, | 37 const GURL& url, |
| 38 const base::string16& name, | 38 const base::string16& name, |
| 39 const base::string16& content_security_policy, | 39 const base::string16& content_security_policy, |
| 40 blink::WebContentSecurityPolicyType security_policy_type, | 40 blink::WebContentSecurityPolicyType security_policy_type, |
| 41 bool pause_on_start, | 41 bool pause_on_start, |
| 42 int route_id); | 42 int route_id, |
| 43 const base::string16& accept_languages); |
| 43 | 44 |
| 44 // IPC::Listener implementation. | 45 // IPC::Listener implementation. |
| 45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 46 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 46 virtual void OnChannelError() OVERRIDE; | 47 virtual void OnChannelError() OVERRIDE; |
| 47 | 48 |
| 48 // blink::WebSharedWorkerClient implementation. | 49 // blink::WebSharedWorkerClient implementation. |
| 49 virtual void workerContextClosed() OVERRIDE; | 50 virtual void workerContextClosed() OVERRIDE; |
| 50 virtual void workerContextDestroyed() OVERRIDE; | 51 virtual void workerContextDestroyed() OVERRIDE; |
| 51 virtual void workerReadyForInspection() OVERRIDE; | 52 virtual void workerReadyForInspection() OVERRIDE; |
| 52 virtual void workerScriptLoaded() OVERRIDE; | 53 virtual void workerScriptLoaded() OVERRIDE; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 79 bool runing_; | 80 bool runing_; |
| 80 GURL url_; | 81 GURL url_; |
| 81 blink::WebSharedWorker* impl_; | 82 blink::WebSharedWorker* impl_; |
| 82 scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_; | 83 scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_; |
| 83 | 84 |
| 84 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList; | 85 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList; |
| 85 PendingChannelList pending_channels_; | 86 PendingChannelList pending_channels_; |
| 86 | 87 |
| 87 ScopedChildProcessReference process_ref_; | 88 ScopedChildProcessReference process_ref_; |
| 88 WebApplicationCacheHostImpl* app_cache_host_; | 89 WebApplicationCacheHostImpl* app_cache_host_; |
| 90 base::string16 accept_languages_; |
| 89 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); | 91 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 } // namespace content | 94 } // namespace content |
| 93 | 95 |
| 94 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H | 96 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H |
| OLD | NEW |