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

Unified Diff: content/renderer/pepper/pepper_video_destination_host.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
Index: content/renderer/pepper/pepper_video_destination_host.cc
diff --git a/content/renderer/pepper/pepper_video_destination_host.cc b/content/renderer/pepper/pepper_video_destination_host.cc
index 4c19b90d8eeef0a61e22676b71b96a0dd8fec3a2..63eb27aa6a04a77c545e35b075a071739699c076 100644
--- a/content/renderer/pepper/pepper_video_destination_host.cc
+++ b/content/renderer/pepper/pepper_video_destination_host.cc
@@ -20,28 +20,25 @@ using ppapi::host::ReplyMessageContext;
namespace content {
-PepperVideoDestinationHost::PepperVideoDestinationHost(
- RendererPpapiHost* host,
- PP_Instance instance,
- PP_Resource resource)
+PepperVideoDestinationHost::PepperVideoDestinationHost(RendererPpapiHost* host,
+ PP_Instance instance,
+ PP_Resource resource)
: ResourceHost(host->GetPpapiHost(), instance, resource),
renderer_ppapi_host_(host),
- weak_factory_(this) {
-}
+ weak_factory_(this) {}
-PepperVideoDestinationHost::~PepperVideoDestinationHost() {
-}
+PepperVideoDestinationHost::~PepperVideoDestinationHost() {}
int32_t PepperVideoDestinationHost::OnResourceMessageReceived(
const IPC::Message& msg,
HostMessageContext* context) {
IPC_BEGIN_MESSAGE_MAP(PepperVideoDestinationHost, msg)
- PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_VideoDestination_Open,
- OnHostMsgOpen)
- PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_VideoDestination_PutFrame,
- OnHostMsgPutFrame)
- PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_VideoDestination_Close,
- OnHostMsgClose)
+ PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_VideoDestination_Open,
+ OnHostMsgOpen)
+ PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_VideoDestination_PutFrame,
+ OnHostMsgPutFrame)
+ PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_VideoDestination_Close,
+ OnHostMsgClose)
IPC_END_MESSAGE_MAP()
return PP_ERROR_FAILED;
}
@@ -54,17 +51,14 @@ int32_t PepperVideoDestinationHost::OnHostMsgOpen(
return PP_ERROR_BADARGUMENT;
FrameWriterInterface* frame_writer = NULL;
- if (!VideoDestinationHandler::Open(NULL /* factory */,
- NULL /* registry */,
- gurl.spec(),
- &frame_writer))
+ if (!VideoDestinationHandler::Open(
+ NULL /* factory */, NULL /* registry */, gurl.spec(), &frame_writer))
return PP_ERROR_FAILED;
frame_writer_.reset(frame_writer);
ReplyMessageContext reply_context = context->MakeReplyMessageContext();
reply_context.params.set_result(PP_OK);
- host()->SendReply(reply_context,
- PpapiPluginMsg_VideoDestination_OpenReply());
+ host()->SendReply(reply_context, PpapiPluginMsg_VideoDestination_OpenReply());
return PP_OK_COMPLETIONPENDING;
}
« no previous file with comments | « content/renderer/pepper/pepper_video_capture_host.cc ('k') | content/renderer/pepper/pepper_video_source_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698