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_ |