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

Unified Diff: extensions/renderer/safe_builtins.h

Issue 1905783002: [Extensions] Clean up comments in safe_builtins.h/cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | extensions/renderer/safe_builtins.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/safe_builtins.h
diff --git a/extensions/renderer/safe_builtins.h b/extensions/renderer/safe_builtins.h
index 83aaca9e537a2f9ada648ffd3c7c5277598e01db..cf2432434d6f0823560ccd19474d14024af2f06c 100644
--- a/extensions/renderer/safe_builtins.h
+++ b/extensions/renderer/safe_builtins.h
@@ -5,12 +5,13 @@
#ifndef EXTENSIONS_RENDERER_SAFE_BUILTINS_H_
#define EXTENSIONS_RENDERER_SAFE_BUILTINS_H_
+#include "base/macros.h"
#include "v8/include/v8.h"
namespace extensions {
class ScriptContext;
-// A collection of safe builtin objects, in that they won't be tained by
+// A collection of safe builtin objects, in that they won't be tainted by
// extensions overriding methods on them.
class SafeBuiltins {
public:
@@ -18,8 +19,7 @@ class SafeBuiltins {
static v8::Extension* CreateV8Extension();
explicit SafeBuiltins(ScriptContext* context);
-
- virtual ~SafeBuiltins();
+ ~SafeBuiltins();
// Each method returns an object with methods taken from their respective
// builtin object's prototype, adapted to automatically call() themselves.
@@ -40,6 +40,8 @@ class SafeBuiltins {
private:
ScriptContext* context_;
+
+ DISALLOW_COPY_AND_ASSIGN(SafeBuiltins);
};
} // namespace extensions
« no previous file with comments | « no previous file | extensions/renderer/safe_builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698