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

Unified Diff: gin/per_isolate_data.h

Issue 1169923009: Remove remaining use of the deprecated MessageLoopProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 5 years, 6 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: gin/per_isolate_data.h
diff --git a/gin/per_isolate_data.h b/gin/per_isolate_data.h
index bffe5fb2c6f6e6c4a420171c6a5d8b74b676429e..175161cebc211b04440187c567352f47bfeb136d 100644
--- a/gin/per_isolate_data.h
+++ b/gin/per_isolate_data.h
@@ -14,7 +14,7 @@
#include "v8/include/v8.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
}
namespace gin {
@@ -65,9 +65,7 @@ class GIN_EXPORT PerIsolateData {
v8::Isolate* isolate() { return isolate_; }
v8::ArrayBuffer::Allocator* allocator() { return allocator_; }
- base::MessageLoopProxy* message_loop_proxy() {
- return message_loop_proxy_.get();
- }
+ base::SingleThreadTaskRunner* task_runner() { return task_runner_.get(); }
private:
typedef std::map<
@@ -87,7 +85,7 @@ class GIN_EXPORT PerIsolateData {
FunctionTemplateMap function_templates_;
IndexedPropertyInterceptorMap indexed_interceptors_;
NamedPropertyInterceptorMap named_interceptors_;
- scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
DISALLOW_COPY_AND_ASSIGN(PerIsolateData);
};
« no previous file with comments | « extensions/browser/api/networking_private/networking_private_service_client.cc ('k') | gin/per_isolate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698