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_RENDERER_WEBSHAREDWORKER_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ |
6 #define CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ | 6 #define CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 bool Send(IPC::Message*); | 66 bool Send(IPC::Message*); |
67 | 67 |
68 // Returns true if there are queued messages. | 68 // Returns true if there are queued messages. |
69 bool HasQueuedMessages() { return !queued_messages_.empty(); } | 69 bool HasQueuedMessages() { return !queued_messages_.empty(); } |
70 | 70 |
71 // Sends any messages currently in the queue. | 71 // Sends any messages currently in the queue. |
72 void SendQueuedMessages(); | 72 void SendQueuedMessages(); |
73 | 73 |
74 void CreateWorkerContext(const GURL& script_url, | 74 void CreateWorkerContext(const GURL& script_url, |
75 bool is_shared, | 75 bool is_shared, |
76 const string16& name, | 76 const base::string16& name, |
77 const string16& user_agent, | 77 const base::string16& user_agent, |
78 const string16& source_code, | 78 const base::string16& source_code, |
79 const string16& content_security_policy, | 79 const base::string16& content_security_policy, |
80 blink::WebContentSecurityPolicyType policy_type, | 80 blink::WebContentSecurityPolicyType policy_type, |
81 int pending_route_id, | 81 int pending_route_id, |
82 int64 script_resource_appcache_id); | 82 int64 script_resource_appcache_id); |
83 void OnWorkerCreated(); | 83 void OnWorkerCreated(); |
84 | 84 |
85 | 85 |
86 // Routing id associated with this worker - used to receive messages from the | 86 // Routing id associated with this worker - used to receive messages from the |
87 // worker, and also to route messages to the worker (WorkerService contains | 87 // worker, and also to route messages to the worker (WorkerService contains |
88 // a map that maps between these renderer-side route IDs and worker-side | 88 // a map that maps between these renderer-side route IDs and worker-side |
89 // routing ids). | 89 // routing ids). |
(...skipping 16 matching lines...) Expand all Loading... |
106 // the worker). | 106 // the worker). |
107 int pending_route_id_; | 107 int pending_route_id_; |
108 ConnectListener* connect_listener_; | 108 ConnectListener* connect_listener_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); | 110 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace content | 113 } // namespace content |
114 | 114 |
115 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ | 115 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ |
OLD | NEW |