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

Side by Side Diff: ppapi/host/resource_message_filter.cc

Issue 14273043: ppapi: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/host/resource_message_filter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/host/resource_message_filter.h" 5 #include "ppapi/host/resource_message_filter.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "base/task_runner.h" 9 #include "base/task_runner.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
11 #include "ppapi/c/pp_errors.h" 11 #include "ppapi/c/pp_errors.h"
12 #include "ppapi/host/ppapi_host.h" 12 #include "ppapi/host/ppapi_host.h"
13 #include "ppapi/host/resource_host.h" 13 #include "ppapi/host/resource_host.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
16 namespace host { 16 namespace host {
17 17
18 ResourceMessageFilter::ResourceMessageFilter() 18 ResourceMessageFilter::ResourceMessageFilter()
19 : reply_thread_message_loop_proxy_( 19 : reply_thread_message_loop_proxy_(
20 MessageLoop::current()->message_loop_proxy()), 20 base::MessageLoop::current()->message_loop_proxy()),
21 resource_host_(NULL) { 21 resource_host_(NULL) {}
22 }
23 22
24 ResourceMessageFilter::ResourceMessageFilter( 23 ResourceMessageFilter::ResourceMessageFilter(
25 scoped_refptr<base::MessageLoopProxy> reply_thread_message_loop_proxy) 24 scoped_refptr<base::MessageLoopProxy> reply_thread_message_loop_proxy)
26 : reply_thread_message_loop_proxy_(reply_thread_message_loop_proxy), 25 : reply_thread_message_loop_proxy_(reply_thread_message_loop_proxy),
27 resource_host_(NULL) { 26 resource_host_(NULL) {
28 } 27 }
29 28
30 ResourceMessageFilter::~ResourceMessageFilter() { 29 ResourceMessageFilter::~ResourceMessageFilter() {
31 } 30 }
32 31
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return NULL; 68 return NULL;
70 } 69 }
71 70
72 void ResourceMessageFilter::DispatchMessage(const IPC::Message& msg, 71 void ResourceMessageFilter::DispatchMessage(const IPC::Message& msg,
73 HostMessageContext context) { 72 HostMessageContext context) {
74 RunMessageHandlerAndReply(msg, &context); 73 RunMessageHandlerAndReply(msg, &context);
75 } 74 }
76 75
77 } // namespace host 76 } // namespace host
78 } // namespace ppapi 77 } // namespace ppapi
OLDNEW
« no previous file with comments | « no previous file | ppapi/host/resource_message_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698