| 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_WEBWORKER_STUB_BASE_H_ | 5 #ifndef CONTENT_WORKER_WEBWORKER_STUB_BASE_H_ |
| 6 #define CHROME_WORKER_WEBWORKER_STUB_BASE_H_ | 6 #define CONTENT_WORKER_WEBWORKER_STUB_BASE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/worker/webworkerclient_proxy.h" | 10 #include "content/worker/webworkerclient_proxy.h" |
| 11 #include "chrome/worker/worker_webapplicationcachehost_impl.h" | 11 #include "content/worker/worker_webapplicationcachehost_impl.h" |
| 12 #include "ipc/ipc_channel.h" | 12 #include "ipc/ipc_channel.h" |
| 13 | 13 |
| 14 // This class is the common base class for both WebWorkerStub and | 14 // This class is the common base class for both WebWorkerStub and |
| 15 // WebSharedWorkerStub and contains common setup/teardown functionality. | 15 // WebSharedWorkerStub and contains common setup/teardown functionality. |
| 16 class WebWorkerStubBase : public IPC::Channel::Listener { | 16 class WebWorkerStubBase : public IPC::Channel::Listener { |
| 17 public: | 17 public: |
| 18 WebWorkerStubBase(int route_id, | 18 WebWorkerStubBase(int route_id, |
| 19 const WorkerAppCacheInitInfo& appcache_init_info); | 19 const WorkerAppCacheInitInfo& appcache_init_info); |
| 20 virtual ~WebWorkerStubBase(); | 20 virtual ~WebWorkerStubBase(); |
| 21 | 21 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 38 private: | 38 private: |
| 39 int route_id_; | 39 int route_id_; |
| 40 WorkerAppCacheInitInfo appcache_init_info_; | 40 WorkerAppCacheInitInfo appcache_init_info_; |
| 41 | 41 |
| 42 // WebWorkerClient that responds to outgoing API calls from the worker object. | 42 // WebWorkerClient that responds to outgoing API calls from the worker object. |
| 43 WebWorkerClientProxy client_; | 43 WebWorkerClientProxy client_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(WebWorkerStubBase); | 45 DISALLOW_COPY_AND_ASSIGN(WebWorkerStubBase); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // CHROME_WORKER_WEBWORKER_STUB_BASE_H_ | 48 #endif // CONTENT_WORKER_WEBWORKER_STUB_BASE_H_ |
| OLD | NEW |