Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: content/public/browser/worker_service.h

Issue 9052007: Create an API around WorkerService that chrome consumes. Rename the existing WorkerService to Wor... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/worker_service_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/worker_service_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698