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

Unified Diff: chrome/renderer/extensions/native_handler.h

Issue 10879107: Move ModuleSystem and NativeHandler to extensions/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/renderer/extensions/module_system_unittest.cc ('k') | chrome/renderer/extensions/native_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/native_handler.h
diff --git a/chrome/renderer/native_handler.h b/chrome/renderer/extensions/native_handler.h
similarity index 90%
rename from chrome/renderer/native_handler.h
rename to chrome/renderer/extensions/native_handler.h
index d328d21e46a653ee1bdd4cb81ac5cfa74f55ab35..f9eb4fe0e40ccfc3bb52812f0db65d7f9726d5e1 100644
--- a/chrome/renderer/native_handler.h
+++ b/chrome/renderer/extensions/native_handler.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_RENDERER_NATIVE_HANDLER_H_
-#define CHROME_RENDERER_NATIVE_HANDLER_H_
+#ifndef CHROME_RENDERER_EXTENSIONS_NATIVE_HANDLER_H_
+#define CHROME_RENDERER_EXTENSIONS_NATIVE_HANDLER_H_
#include "base/bind.h"
#include "base/memory/linked_ptr.h"
@@ -12,6 +12,8 @@
#include <string>
#include <vector>
+namespace extensions {
+
// A NativeHandler is a factory for JS objects with functions on them that map
// to native C++ functions. Subclasses should call RouteFunction() in their
// constructor to define functions on the created JS objects.
@@ -53,4 +55,6 @@ class NativeHandler {
DISALLOW_COPY_AND_ASSIGN(NativeHandler);
};
-#endif // CHROME_RENDERER_NATIVE_HANDLER_H_
+} // extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_NATIVE_HANDLER_H_
« no previous file with comments | « chrome/renderer/extensions/module_system_unittest.cc ('k') | chrome/renderer/extensions/native_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698