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

Unified 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 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/worker_service_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/worker_service.h
===================================================================
--- content/public/browser/worker_service.h (revision 0)
+++ content/public/browser/worker_service.h (revision 0)
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_WORKER_SERVICE_H_
+#define CONTENT_PUBLIC_BROWSER_WORKER_SERVICE_H_
+#pragma once
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+class WorkerServiceObserver;
+
+// A singleton for managing HTML5 shared web workers. These are run in a
+// separate process, since multiple renderer processes can be talking to a
+// single shared worker.
+class WorkerService {
+ public:
+ virtual ~WorkerService() {}
+
+ // Returns the WorkerService singleton.
+ CONTENT_EXPORT static WorkerService* GetInstance();
+
+ virtual void AddObserver(WorkerServiceObserver* observer) = 0;
+ virtual void RemoveObserver(WorkerServiceObserver* observer) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
Property changes on: content\public\browser\worker_service.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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