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

Unified Diff: content/public/browser/worker_service_observer.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/public/browser/worker_service.h ('k') | content/worker/test/worker_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/worker_service_observer.h
===================================================================
--- content/public/browser/worker_service_observer.h (revision 115981)
+++ content/public/browser/worker_service_observer.h (working copy)
@@ -2,14 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_OBSERVER_H_
-#define CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_OBSERVER_H_
+#ifndef CONTENT_PUBLIC_BROWSER_WORKER_SERVICE_OBSERVER_H_
+#define CONTENT_PUBLIC_BROWSER_WORKER_SERVICE_OBSERVER_H_
#pragma once
#include "content/browser/worker_host/worker_process_host.h"
+namespace content {
+
class WorkerServiceObserver {
public:
+ virtual ~WorkerServiceObserver() {}
+
virtual void WorkerCreated(
WorkerProcessHost* process,
const WorkerProcessHost::WorkerInstance& instance) = 0;
@@ -19,9 +23,8 @@
virtual void WorkerContextStarted(
WorkerProcessHost* process,
int worker_route_id) = 0;
-
- protected:
- virtual ~WorkerServiceObserver() {}
};
-#endif // CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_OBSERVER_H_
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_WORKER_SERVICE_OBSERVER_H_
« no previous file with comments | « content/public/browser/worker_service.h ('k') | content/worker/test/worker_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698