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

Unified Diff: extensions/renderer/safe_builtins.h

Issue 234413005: Move most of ChromeV8Context to a base ScriptContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New methods have joined ScriptContext; Diablo's minions grow stronger! 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
Index: extensions/renderer/safe_builtins.h
diff --git a/chrome/renderer/extensions/safe_builtins.h b/extensions/renderer/safe_builtins.h
similarity index 81%
rename from chrome/renderer/extensions/safe_builtins.h
rename to extensions/renderer/safe_builtins.h
index f34a949fb8f1f8936f4cccb7b7b260eaa0f254c7..cc3580c057125af820012eb06b0eb42e654ddcd6 100644
--- a/chrome/renderer/extensions/safe_builtins.h
+++ b/extensions/renderer/safe_builtins.h
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_RENDERER_EXTENSIONS_SAFE_BUILTINS_H_
-#define CHROME_RENDERER_EXTENSIONS_SAFE_BUILTINS_H_
+#ifndef EXTENSIONS_RENDERER_SAFE_BUILTINS_H_
+#define EXTENSIONS_RENDERER_SAFE_BUILTINS_H_
#include "v8/include/v8.h"
namespace extensions {
-class ChromeV8Context;
+class ScriptContext;
// A collection of safe builtin objects, in that they won't be tained by
// extensions overriding methods on them.
@@ -17,7 +17,7 @@ class SafeBuiltins {
// Creates the v8::Extension which manages SafeBuiltins instances.
static v8::Extension* CreateV8Extension();
- explicit SafeBuiltins(ChromeV8Context* context);
+ explicit SafeBuiltins(ScriptContext* context);
virtual ~SafeBuiltins();
@@ -38,9 +38,9 @@ class SafeBuiltins {
v8::Local<v8::Object> GetString() const;
private:
- ChromeV8Context* context_;
+ ScriptContext* context_;
};
-} // namespace extensions
+} // namespace extensions
-#endif // CHROME_RENDERER_EXTENSIONS_SAFE_BUILTINS_H_
+#endif // EXTENSIONS_RENDERER_SAFE_BUILTINS_H_

Powered by Google App Engine
This is Rietveld 408576698