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

Unified Diff: chrome/browser/extensions/message_handler.h

Issue 10787002: Moved ExtensionMessage* into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 5 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 | « chrome/browser/extensions/extension_system_factory.cc ('k') | chrome/browser/extensions/message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/message_handler.h
diff --git a/chrome/browser/extensions/extension_message_handler.h b/chrome/browser/extensions/message_handler.h
similarity index 73%
rename from chrome/browser/extensions/extension_message_handler.h
rename to chrome/browser/extensions/message_handler.h
index 48cdbe902c0e2b771f13d46df608263fe14ec846..140105d22f6e3d6b893a8ebe0f9fd26bdcb72c69 100644
--- a/chrome/browser/extensions/extension_message_handler.h
+++ b/chrome/browser/extensions/message_handler.h
@@ -2,13 +2,15 @@
// 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_MESSAGE_HANDLER_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_MESSAGE_HANDLER_H_
+#define CHROME_BROWSER_EXTENSIONS_MESSAGE_HANDLER_H_
#include <string>
#include "content/public/browser/render_view_host_observer.h"
+namespace extensions {
+
// Filters and dispatches extension-related IPC messages that arrive from
// renderers. There is one of these objects for each RenderViewHost in Chrome.
// Contrast this with extensions::TabHelper, which is only created for
@@ -19,11 +21,11 @@
// could eliminate this class. Right now, we don't end up with an EFD for tab
// contents unless that tab contents is hosting chrome-extension:// URLs. That
// still leaves content scripts. See also: crbug.com/80307.
-class ExtensionMessageHandler : public content::RenderViewHostObserver {
+class MessageHandler : public content::RenderViewHostObserver {
public:
// |sender| is guaranteed to outlive this object.
- explicit ExtensionMessageHandler(content::RenderViewHost* render_view_host);
- virtual ~ExtensionMessageHandler();
+ explicit MessageHandler(content::RenderViewHost* render_view_host);
+ virtual ~MessageHandler();
// RenderViewHostObserver overrides.
virtual void RenderViewHostInitialized() OVERRIDE;
@@ -33,7 +35,9 @@ class ExtensionMessageHandler : public content::RenderViewHostObserver {
// Message handlers.
void OnPostMessage(int port_id, const std::string& message);
- DISALLOW_COPY_AND_ASSIGN(ExtensionMessageHandler);
+ DISALLOW_COPY_AND_ASSIGN(MessageHandler);
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_MESSAGE_HANDLER_H_
« no previous file with comments | « chrome/browser/extensions/extension_system_factory.cc ('k') | chrome/browser/extensions/message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698