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

Unified Diff: content/renderer/pepper/ppb_broker_impl.cc

Issue 225903006: PPAPI: Run clang_format.py on content/renderer/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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
« no previous file with comments | « content/renderer/pepper/ppb_audio_impl.cc ('k') | content/renderer/pepper/ppb_buffer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/ppb_broker_impl.cc
diff --git a/content/renderer/pepper/ppb_broker_impl.cc b/content/renderer/pepper/ppb_broker_impl.cc
index bec93e0f2aa19bb555018fee6a7bddf57097da05..bc2cbfa9164aa558af8fc8caeaebe9d140c42046 100644
--- a/content/renderer/pepper/ppb_broker_impl.cc
+++ b/content/renderer/pepper/ppb_broker_impl.cc
@@ -47,9 +47,7 @@ PPB_Broker_Impl::~PPB_Broker_Impl() {
ChildThread::current()->GetRouter()->RemoveRoute(routing_id_);
}
-PPB_Broker_API* PPB_Broker_Impl::AsPPB_Broker_API() {
- return this;
-}
+PPB_Broker_API* PPB_Broker_Impl::AsPPB_Broker_API() { return this; }
int32_t PPB_Broker_Impl::Connect(
scoped_refptr<TrackedCallback> connect_callback) {
@@ -78,8 +76,8 @@ int32_t PPB_Broker_Impl::Connect(
broker_ = new PepperBroker(module);
// Have the browser start the broker process for us.
- RenderThreadImpl::current()->Send(new ViewHostMsg_OpenChannelToPpapiBroker(
- routing_id_, broker_path));
+ RenderThreadImpl::current()->Send(
+ new ViewHostMsg_OpenChannelToPpapiBroker(routing_id_, broker_path));
}
RenderThreadImpl::current()->Send(
@@ -111,8 +109,7 @@ GURL PPB_Broker_Impl::GetDocumentUrl() {
// Transfers ownership of the handle to the plugin.
void PPB_Broker_Impl::BrokerConnected(int32_t handle, int32_t result) {
- DCHECK(pipe_handle_ ==
- PlatformFileToInt(base::kInvalidPlatformFileValue));
+ DCHECK(pipe_handle_ == PlatformFileToInt(base::kInvalidPlatformFileValue));
DCHECK(result == PP_OK ||
handle == PlatformFileToInt(base::kInvalidPlatformFileValue));
@@ -127,11 +124,11 @@ void PPB_Broker_Impl::BrokerConnected(int32_t handle, int32_t result) {
bool PPB_Broker_Impl::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(PPB_Broker_Impl, message)
- IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerChannelCreated,
- OnPpapiBrokerChannelCreated)
- IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerPermissionResult,
- OnPpapiBrokerPermissionResult)
- IPC_MESSAGE_UNHANDLED(handled = false)
+ IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerChannelCreated,
+ OnPpapiBrokerChannelCreated)
+ IPC_MESSAGE_HANDLER(ViewMsg_PpapiBrokerPermissionResult,
+ OnPpapiBrokerPermissionResult)
+ IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
}
« no previous file with comments | « content/renderer/pepper/ppb_audio_impl.cc ('k') | content/renderer/pepper/ppb_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698