| 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_RENDERER_WEBSHAREDWORKER_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ |
| 6 #define CHROME_RENDERER_WEBSHAREDWORKER_PROXY_H_ | 6 #define CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "chrome/renderer/webworker_base.h" | 10 #include "content/renderer/webworker_base.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" |
| 13 | 13 |
| 14 class ChildThread; | 14 class ChildThread; |
| 15 | 15 |
| 16 // Implementation of the WebSharedWorker APIs. This object is intended to only | 16 // Implementation of the WebSharedWorker APIs. This object is intended to only |
| 17 // live long enough to allow the caller to send a "connect" event to the worker | 17 // live long enough to allow the caller to send a "connect" event to the worker |
| 18 // thread. Once the connect event has been sent, all future communication will | 18 // thread. Once the connect event has been sent, all future communication will |
| 19 // happen via the WebMessagePortChannel, and the WebSharedWorker instance will | 19 // happen via the WebMessagePortChannel, and the WebSharedWorker instance will |
| 20 // be freed. | 20 // be freed. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 48 | 48 |
| 49 // The id for the placeholder worker instance we've stored on the | 49 // The id for the placeholder worker instance we've stored on the |
| 50 // browser process (we need to pass this same route id back in when creating | 50 // browser process (we need to pass this same route id back in when creating |
| 51 // the worker). | 51 // the worker). |
| 52 int pending_route_id_; | 52 int pending_route_id_; |
| 53 ConnectListener* connect_listener_; | 53 ConnectListener* connect_listener_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); | 55 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif // CHROME_RENDERER_WEBSHAREDWORKER_PROXY_H_ | 58 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ |
| OLD | NEW |