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

Unified Diff: chrome/renderer/extensions/chrome_v8_context.h

Issue 23679004: Remove more calls to HandleScope default ctor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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: chrome/renderer/extensions/chrome_v8_context.h
diff --git a/chrome/renderer/extensions/chrome_v8_context.h b/chrome/renderer/extensions/chrome_v8_context.h
index 930807b6dafac04a6d83ed12acb479444683c9b1..8007bb2433f58a30303fe24634bc223c7e75b105 100644
--- a/chrome/renderer/extensions/chrome_v8_context.h
+++ b/chrome/renderer/extensions/chrome_v8_context.h
@@ -116,6 +116,10 @@ class ChromeV8Context : public RequestSender::Source {
const base::ListValue& response,
const std::string& error) OVERRIDE;
+ v8::Isolate* isolate() const {
+ return isolate_;
Jeffrey Yasskin 2013/09/05 17:36:26 I believe you can get this from v8_context()->GetI
marja 2013/09/06 08:31:24 v8_context_ is a ScopedPersistent, and we shouldn'
Jeffrey Yasskin 2013/09/06 16:10:14 Oh, I see. Certainly a good answer for this CL. I
+ }
+
private:
// The v8 context the bindings are accessible to.
ScopedPersistent<v8::Context> v8_context_;
@@ -137,6 +141,8 @@ class ChromeV8Context : public RequestSender::Source {
// Contains safe copies of builtin objects like Function.prototype.
SafeBuiltins safe_builtins_;
+ v8::Isolate* isolate_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeV8Context);
};
« no previous file with comments | « chrome/renderer/extensions/binding_generating_native_handler.cc ('k') | chrome/renderer/extensions/chrome_v8_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698