OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WORKER_WEBSHAREDWORKER_STUB_H_ | 5 #ifndef CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ |
6 #define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ | 6 #define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/child/scoped_child_process_reference.h" | 9 #include "content/child/scoped_child_process_reference.h" |
10 #include "content/worker/websharedworkerclient_proxy.h" | 10 #include "content/worker/websharedworkerclient_proxy.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 class WebMessagePortChannelImpl; | 23 class WebMessagePortChannelImpl; |
24 | 24 |
25 // This class creates a WebSharedWorker, and translates incoming IPCs to the | 25 // This class creates a WebSharedWorker, and translates incoming IPCs to the |
26 // appropriate WebSharedWorker APIs. | 26 // appropriate WebSharedWorker APIs. |
27 class WebSharedWorkerStub : public IPC::Listener { | 27 class WebSharedWorkerStub : public IPC::Listener { |
28 public: | 28 public: |
29 WebSharedWorkerStub(const GURL& url, | 29 WebSharedWorkerStub(const GURL& url, |
30 const base::string16& name, | 30 const base::string16& name, |
31 const base::string16& content_security_policy, | 31 const base::string16& content_security_policy, |
32 blink::WebContentSecurityPolicyType security_policy_type, | 32 blink::WebContentSecurityPolicyType security_policy_type, |
| 33 bool pause_on_start, |
33 int route_id); | 34 int route_id); |
34 | 35 |
35 // IPC::Listener implementation. | 36 // IPC::Listener implementation. |
36 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 37 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
37 virtual void OnChannelError() OVERRIDE; | 38 virtual void OnChannelError() OVERRIDE; |
38 | 39 |
39 // Invoked when the WebSharedWorkerClientProxy is shutting down. | 40 // Invoked when the WebSharedWorkerClientProxy is shutting down. |
40 void Shutdown(); | 41 void Shutdown(); |
41 | 42 |
42 void WorkerScriptLoaded(); | 43 void WorkerScriptLoaded(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 75 |
75 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList; | 76 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList; |
76 PendingChannelList pending_channels_; | 77 PendingChannelList pending_channels_; |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); | 79 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); |
79 }; | 80 }; |
80 | 81 |
81 } // namespace content | 82 } // namespace content |
82 | 83 |
83 #endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ | 84 #endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ |
OLD | NEW |