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

Side by Side Diff: content/renderer/pepper/pepper_in_process_router.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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
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 "content/renderer/pepper/pepper_in_process_router.h" 5 #include "content/renderer/pepper/pepper_in_process_router.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" 9 #include "content/renderer/pepper/renderer_ppapi_host_impl.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
11 #include "ipc/ipc_sender.h" 11 #include "ipc/ipc_sender.h"
12 #include "ppapi/proxy/ppapi_messages.h" 12 #include "ppapi/proxy/ppapi_messages.h"
13 #include "ppapi/shared_impl/ppapi_globals.h" 13 #include "ppapi/shared_impl/ppapi_globals.h"
14 #include "ppapi/shared_impl/resource_tracker.h" 14 #include "ppapi/shared_impl/resource_tracker.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class PepperInProcessRouter::Channel : public IPC::Sender { 18 class PepperInProcessRouter::Channel : public IPC::Sender {
19 public: 19 public:
20 Channel(const base::Callback<bool(IPC::Message*)>& callback) 20 explicit Channel(const base::Callback<bool(IPC::Message*)>& callback)
21 : callback_(callback) {} 21 : callback_(callback) {}
22 22
23 virtual ~Channel() {} 23 virtual ~Channel() {}
24 24
25 virtual bool Send(IPC::Message* message) OVERRIDE { 25 virtual bool Send(IPC::Message* message) OVERRIDE {
26 return callback_.Run(message); 26 return callback_.Run(message);
27 } 27 }
28 28
29 private: 29 private:
30 base::Callback<bool(IPC::Message*)> callback_; 30 base::Callback<bool(IPC::Message*)> callback_;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 reply_params.pp_resource()); 127 reply_params.pp_resource());
128 if (!resource) { 128 if (!resource) {
129 // The resource could have been destroyed while the async processing was 129 // The resource could have been destroyed while the async processing was
130 // pending. Just drop the message. 130 // pending. Just drop the message.
131 return; 131 return;
132 } 132 }
133 resource->OnReplyReceived(reply_params, nested_msg); 133 resource->OnReplyReceived(reply_params, nested_msg);
134 } 134 }
135 135
136 } // namespace content 136 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_in_process_router.h ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698