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

Unified Diff: chrome/browser/extensions/api/processes/processes_api.h

Issue 10915067: Moving extension_processes_api to api/processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Attempt to fix linking on android Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/processes/processes_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/processes/processes_api.h
diff --git a/chrome/browser/extensions/extension_processes_api.h b/chrome/browser/extensions/api/processes/processes_api.h
similarity index 90%
rename from chrome/browser/extensions/extension_processes_api.h
rename to chrome/browser/extensions/api/processes/processes_api.h
index 20c0973c63a7480b446aa53cd2ce5ce9c3598882..41da18d53b1e24751561d631777e041a765ce083 100644
--- a/chrome/browser/extensions/extension_processes_api.h
+++ b/chrome/browser/extensions/api/processes/processes_api.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_H__
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_H__
+#ifndef CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_H__
+#define CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_H__
#include <set>
#include <string>
@@ -18,13 +18,15 @@ namespace base {
class ListValue;
}
+namespace extensions {
+
// Observes the Task Manager and routes the notifications as events to the
// extension system.
-class ExtensionProcessesEventRouter : public TaskManagerModelObserver,
- public content::NotificationObserver {
+class ProcessesEventRouter : public TaskManagerModelObserver,
+ public content::NotificationObserver {
public:
// Single instance of the event router.
- static ExtensionProcessesEventRouter* GetInstance();
+ static ProcessesEventRouter* GetInstance();
// Safe to call multiple times.
void ObserveProfile(Profile* profile);
@@ -44,10 +46,10 @@ class ExtensionProcessesEventRouter : public TaskManagerModelObserver,
int num_listeners() { return listeners_; }
private:
- friend struct DefaultSingletonTraits<ExtensionProcessesEventRouter>;
+ friend struct DefaultSingletonTraits<ProcessesEventRouter>;
- ExtensionProcessesEventRouter();
- virtual ~ExtensionProcessesEventRouter();
+ ProcessesEventRouter();
+ virtual ~ProcessesEventRouter();
// content::NotificationObserver implementation.
virtual void Observe(int type,
@@ -95,7 +97,7 @@ class ExtensionProcessesEventRouter : public TaskManagerModelObserver,
// done once for the lifetime of this object.
bool task_manager_listening_;
- DISALLOW_COPY_AND_ASSIGN(ExtensionProcessesEventRouter);
+ DISALLOW_COPY_AND_ASSIGN(ProcessesEventRouter);
};
@@ -175,4 +177,6 @@ class GetProcessInfoFunction : public AsyncExtensionFunction,
DECLARE_EXTENSION_FUNCTION_NAME("experimental.processes.getProcessInfo")
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_H__
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_H__
« no previous file with comments | « no previous file | chrome/browser/extensions/api/processes/processes_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698