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

Unified Diff: extensions/renderer/scoped_persistent.h

Issue 811263002: Queue postMessage messages destined for a MimeHandlerView guest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@postMessage1
Patch Set: Created 6 years 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/guest_view/mime_handler_view/mime_handler_view_container.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/scoped_persistent.h
diff --git a/extensions/renderer/scoped_persistent.h b/extensions/renderer/scoped_persistent.h
index 65bf7ab29a26a601d76c87fa7eb09314e235550a..d7fe3066cfb51698302015eb6a8c2be15347a496 100644
--- a/extensions/renderer/scoped_persistent.h
+++ b/extensions/renderer/scoped_persistent.h
@@ -19,15 +19,21 @@ class ScopedPersistent {
explicit ScopedPersistent(v8::Handle<T> handle) { reset(handle); }
+ ScopedPersistent(v8::Isolate* isolate, v8::Handle<T> handle) {
+ reset(isolate, handle);
+ }
+
~ScopedPersistent() { reset(); }
- void reset(v8::Handle<T> handle) {
+ void reset(v8::Isolate* isolate, v8::Handle<T> handle) {
if (!handle.IsEmpty())
- handle_.Reset(GetIsolate(handle), handle);
+ handle_.Reset(isolate, handle);
else
reset();
}
+ void reset(v8::Handle<T> handle) { reset(GetIsolate(handle), handle); }
+
void reset() { handle_.Reset(); }
bool IsEmpty() const { return handle_.IsEmpty(); }
« no previous file with comments | « extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698