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

Unified Diff: chrome/renderer/extensions/module_system.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/dispatcher.cc ('k') | chrome/renderer/extensions/module_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/module_system.h
diff --git a/chrome/renderer/module_system.h b/chrome/renderer/extensions/module_system.h
similarity index 95%
rename from chrome/renderer/module_system.h
rename to chrome/renderer/extensions/module_system.h
index c18a6ffc1d9dcf66eeb55ef0b75ee560922cfbe2..75410f1356547b457dafac3aeb7ae925c5368dd9 100644
--- a/chrome/renderer/module_system.h
+++ b/chrome/renderer/extensions/module_system.h
@@ -2,19 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_RENDERER_MODULE_SYSTEM_H_
-#define CHROME_RENDERER_MODULE_SYSTEM_H_
+#ifndef CHROME_RENDERER_EXTENSIONS_MODULE_SYSTEM_H_
+#define CHROME_RENDERER_EXTENSIONS_MODULE_SYSTEM_H_
#include "base/compiler_specific.h"
#include "base/memory/linked_ptr.h"
#include "base/memory/scoped_ptr.h"
-#include "chrome/renderer/native_handler.h"
+#include "chrome/renderer/extensions/native_handler.h"
#include "v8/include/v8.h"
#include <map>
#include <set>
#include <string>
+namespace extensions {
+
// A module system for JS similar to node.js' require() function.
// Each module has three variables in the global scope:
// - exports, an object returned to dependencies who require() this
@@ -137,4 +139,6 @@ class ModuleSystem : public NativeHandler {
DISALLOW_COPY_AND_ASSIGN(ModuleSystem);
};
-#endif // CHROME_RENDERER_MODULE_SYSTEM_H_
+} // extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_MODULE_SYSTEM_H_
« no previous file with comments | « chrome/renderer/extensions/dispatcher.cc ('k') | chrome/renderer/extensions/module_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698