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

Unified Diff: extensions/renderer/id_generator_custom_bindings.h

Issue 235943018: Move extensions bindings code out of //chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 years, 8 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 | « extensions/renderer/i18n_custom_bindings.cc ('k') | extensions/renderer/id_generator_custom_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/id_generator_custom_bindings.h
diff --git a/chrome/renderer/extensions/id_generator_custom_bindings.h b/extensions/renderer/id_generator_custom_bindings.h
similarity index 50%
rename from chrome/renderer/extensions/id_generator_custom_bindings.h
rename to extensions/renderer/id_generator_custom_bindings.h
index 4ed6a96ab1129a2c3f532fc35bb5f15084aa662e..7cda4881d1f056d58cc815f1c8a140f627ca15de 100644
--- a/chrome/renderer/extensions/id_generator_custom_bindings.h
+++ b/extensions/renderer/id_generator_custom_bindings.h
@@ -2,18 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_RENDERER_EXTENSIONS_ID_GENERATOR_CUSTOM_BINDINGS_H_
-#define CHROME_RENDERER_EXTENSIONS_ID_GENERATOR_CUSTOM_BINDINGS_H_
+#ifndef EXTENSIONS_RENDERER_ID_GENERATOR_CUSTOM_BINDINGS_H_
+#define EXTENSIONS_RENDERER_ID_GENERATOR_CUSTOM_BINDINGS_H_
-#include "chrome/renderer/extensions/chrome_v8_extension.h"
+#include "extensions/renderer/object_backed_native_handler.h"
namespace extensions {
+class ScriptContext;
// Implements function that can be used by JS layer to generate unique integer
// identifiers.
-class IdGeneratorCustomBindings : public ChromeV8Extension {
+class IdGeneratorCustomBindings : public ObjectBackedNativeHandler {
public:
- IdGeneratorCustomBindings(Dispatcher* dispatcher, ChromeV8Context* context);
+ IdGeneratorCustomBindings(ScriptContext* context);
private:
void GetNextId(const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -21,4 +22,4 @@ class IdGeneratorCustomBindings : public ChromeV8Extension {
} // namespace extensions
-#endif // CHROME_RENDERER_EXTENSIONS_ID_GENERATOR_CUSTOM_BINDINGS_H_
+#endif // EXTENSIONS_RENDERER_ID_GENERATOR_CUSTOM_BINDINGS_H_
« no previous file with comments | « extensions/renderer/i18n_custom_bindings.cc ('k') | extensions/renderer/id_generator_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698