OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_ | 5 #ifndef CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_ |
6 #define CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_ | 6 #define CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_ |
7 | 7 |
8 #include "chrome/worker/webworker_stub_base.h" | 8 #include "chrome/worker/webworker_stub_base.h" |
9 #include "chrome/worker/webworkerclient_proxy.h" | 9 #include "chrome/worker/webworkerclient_proxy.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 virtual ~WebSharedWorkerStub(); | 26 virtual ~WebSharedWorkerStub(); |
27 | 27 |
28 // Invoked when the WebWorkerClientProxy is shutting down. | 28 // Invoked when the WebWorkerClientProxy is shutting down. |
29 void OnConnect(int sent_message_port_id, int routing_id); | 29 void OnConnect(int sent_message_port_id, int routing_id); |
30 void OnStartWorkerContext( | 30 void OnStartWorkerContext( |
31 const GURL& url, const string16& user_agent, const string16& source_code); | 31 const GURL& url, const string16& user_agent, const string16& source_code); |
32 void OnTerminateWorkerContext(); | 32 void OnTerminateWorkerContext(); |
33 | 33 |
34 WebKit::WebSharedWorker* impl_; | 34 WebKit::WebSharedWorker* impl_; |
35 string16 name_; | 35 string16 name_; |
| 36 bool started_; |
36 | 37 |
37 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); | 38 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); |
38 }; | 39 }; |
39 | 40 |
40 #endif // CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_ | 41 #endif // CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_ |
OLD | NEW |