OLD | NEW |
1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
15 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" |
17 | 16 |
18 class ChildThread; | 17 class ChildThread; |
19 | 18 |
20 // Implementation of the WebSharedWorker APIs. This object is intended to only | 19 // Implementation of the WebSharedWorker APIs. This object is intended to only |
21 // live long enough to allow the caller to send a "connect" event to the worker | 20 // live long enough to allow the caller to send a "connect" event to the worker |
22 // thread. Once the connect event has been sent, all future communication will | 21 // thread. Once the connect event has been sent, all future communication will |
23 // happen via the WebMessagePortChannel, and the WebSharedWorker instance will | 22 // happen via the WebMessagePortChannel, and the WebSharedWorker instance will |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // The id for the placeholder worker instance we've stored on the | 102 // The id for the placeholder worker instance we've stored on the |
104 // browser process (we need to pass this same route id back in when creating | 103 // browser process (we need to pass this same route id back in when creating |
105 // the worker). | 104 // the worker). |
106 int pending_route_id_; | 105 int pending_route_id_; |
107 ConnectListener* connect_listener_; | 106 ConnectListener* connect_listener_; |
108 | 107 |
109 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); | 108 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); |
110 }; | 109 }; |
111 | 110 |
112 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ | 111 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ |
OLD | NEW |