| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_WORKER_SERVICE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WORKER_SERVICE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "content/common/content_export.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class WorkerServiceObserver; |
| 14 |
| 15 // A singleton for managing HTML5 shared web workers. These are run in a |
| 16 // separate process, since multiple renderer processes can be talking to a |
| 17 // single shared worker. |
| 18 class WorkerService { |
| 19 public: |
| 20 virtual ~WorkerService() {} |
| 21 |
| 22 // Returns the WorkerService singleton. |
| 23 CONTENT_EXPORT static WorkerService* GetInstance(); |
| 24 |
| 25 virtual void AddObserver(WorkerServiceObserver* observer) = 0; |
| 26 virtual void RemoveObserver(WorkerServiceObserver* observer) = 0; |
| 27 }; |
| 28 |
| 29 } // namespace content |
| 30 |
| 31 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ |
| OLD | NEW |