OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBSHAREDWORKER_STUB_H_ | 5 #ifndef CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ |
6 #define CHROME_WORKER_WEBSHAREDWORKER_STUB_H_ | 6 #define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/worker/webworker_stub_base.h" | 9 #include "content/worker/webworker_stub_base.h" |
10 #include "chrome/worker/webworkerclient_proxy.h" | 10 #include "content/worker/webworkerclient_proxy.h" |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 | 12 |
13 namespace WebKit { | 13 namespace WebKit { |
14 class WebSharedWorker; | 14 class WebSharedWorker; |
15 } | 15 } |
16 | 16 |
17 // This class creates a WebSharedWorker, and translates incoming IPCs to the | 17 // This class creates a WebSharedWorker, and translates incoming IPCs to the |
18 // appropriate WebSharedWorker APIs. | 18 // appropriate WebSharedWorker APIs. |
19 class WebSharedWorkerStub : public WebWorkerStubBase { | 19 class WebSharedWorkerStub : public WebWorkerStubBase { |
20 public: | 20 public: |
(...skipping 19 matching lines...) Expand all Loading... |
40 bool started_; | 40 bool started_; |
41 GURL url_; | 41 GURL url_; |
42 | 42 |
43 typedef std::pair<int, int> PendingConnectInfo; | 43 typedef std::pair<int, int> PendingConnectInfo; |
44 typedef std::vector<PendingConnectInfo> PendingConnectInfoList; | 44 typedef std::vector<PendingConnectInfo> PendingConnectInfoList; |
45 PendingConnectInfoList pending_connects_; | 45 PendingConnectInfoList pending_connects_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); | 47 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); |
48 }; | 48 }; |
49 | 49 |
50 #endif // CHROME_WORKER_WEBSHAREDWORKER_STUB_H_ | 50 #endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ |
OLD | NEW |