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 "content/child/child_message_filter.h" | 8 #include "content/child/child_message_filter.h" |
9 #include "content/child/scoped_child_process_reference.h" | 9 #include "content/child/scoped_child_process_reference.h" |
10 #include "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 class WebMessagePortChannelImpl; | 28 class WebMessagePortChannelImpl; |
29 | 29 |
30 class EmbeddedSharedWorkerStub : public IPC::Listener, | 30 class EmbeddedSharedWorkerStub : public IPC::Listener, |
31 public blink::WebSharedWorkerClient { | 31 public blink::WebSharedWorkerClient { |
32 public: | 32 public: |
33 EmbeddedSharedWorkerStub( | 33 EmbeddedSharedWorkerStub( |
34 const GURL& url, | 34 const GURL& url, |
35 const base::string16& name, | 35 const base::string16& name, |
36 const base::string16& content_security_policy, | 36 const base::string16& content_security_policy, |
37 blink::WebContentSecurityPolicyType security_policy_type, | 37 blink::WebContentSecurityPolicyType security_policy_type, |
38 bool pause_on_start, | |
39 int route_id); | 38 int route_id); |
40 | 39 |
41 // IPC::Listener implementation. | 40 // IPC::Listener implementation. |
42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
43 virtual void OnChannelError() OVERRIDE; | 42 virtual void OnChannelError() OVERRIDE; |
44 | 43 |
45 // blink::WebSharedWorkerClient implementation. | 44 // blink::WebSharedWorkerClient implementation. |
46 virtual void workerContextClosed() OVERRIDE; | 45 virtual void workerContextClosed() OVERRIDE; |
47 virtual void workerContextDestroyed() OVERRIDE; | 46 virtual void workerContextDestroyed() OVERRIDE; |
48 virtual void workerScriptLoaded() OVERRIDE; | 47 virtual void workerScriptLoaded() OVERRIDE; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList; | 79 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList; |
81 PendingChannelList pending_channels_; | 80 PendingChannelList pending_channels_; |
82 | 81 |
83 ScopedChildProcessReference process_ref_; | 82 ScopedChildProcessReference process_ref_; |
84 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); | 83 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); |
85 }; | 84 }; |
86 | 85 |
87 } // namespace content | 86 } // namespace content |
88 | 87 |
89 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H | 88 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H |
OLD | NEW |