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

Unified Diff: content/renderer/pepper/pepper_broker.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/pepper_broker.h ('k') | content/renderer/pepper/pepper_browser_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_broker.cc
diff --git a/content/renderer/pepper/pepper_broker.cc b/content/renderer/pepper/pepper_broker.cc
index 44861965e001fbdbfa5cfdac99a0c1c419653047..0d23de13b8663772eb4a5230afdac8fc5d13a8b9 100644
--- a/content/renderer/pepper/pepper_broker.cc
+++ b/content/renderer/pepper/pepper_broker.cc
@@ -40,18 +40,16 @@ base::SyncSocket::Handle DuplicateHandle(base::SyncSocket::Handle handle) {
// dup()ing and close()ing.
out_handle = ::dup(handle);
#else
- #error Not implemented.
+#error Not implemented.
#endif
return out_handle;
}
} // namespace
-PepperBrokerDispatcherWrapper::PepperBrokerDispatcherWrapper() {
-}
+PepperBrokerDispatcherWrapper::PepperBrokerDispatcherWrapper() {}
-PepperBrokerDispatcherWrapper::~PepperBrokerDispatcherWrapper() {
-}
+PepperBrokerDispatcherWrapper::~PepperBrokerDispatcherWrapper() {}
bool PepperBrokerDispatcherWrapper::Init(
base::ProcessId broker_pid,
@@ -66,8 +64,7 @@ bool PepperBrokerDispatcherWrapper::Init(
#endif
dispatcher_delegate_.reset(new PepperProxyChannelDelegateImpl);
- dispatcher_.reset(
- new ppapi::proxy::BrokerHostDispatcher());
+ dispatcher_.reset(new ppapi::proxy::BrokerHostDispatcher());
if (!dispatcher_->InitBrokerWithChannel(dispatcher_delegate_.get(),
broker_pid,
@@ -92,8 +89,8 @@ int32_t PepperBrokerDispatcherWrapper::SendHandleToBroker(
return PP_ERROR_FAILED;
int32_t result;
- if (!dispatcher_->Send(
- new PpapiMsg_ConnectToPlugin(instance, foreign_socket_handle, &result))) {
+ if (!dispatcher_->Send(new PpapiMsg_ConnectToPlugin(
+ instance, foreign_socket_handle, &result))) {
// The plugin did not receive the handle, so it must be closed.
// The easiest way to clean it up is to just put it in an object
// and then close it. This failure case is not performance critical.
@@ -209,16 +206,15 @@ void PepperBroker::OnBrokerPermissionResult(PPB_Broker_Impl* client,
entry->second.is_authorized = true;
}
-PepperBroker::PendingConnection::PendingConnection() : is_authorized(false) {
-}
+PepperBroker::PendingConnection::PendingConnection() : is_authorized(false) {}
-PepperBroker::PendingConnection::~PendingConnection() {
-}
+PepperBroker::PendingConnection::~PendingConnection() {}
void PepperBroker::ReportFailureToClients(int error_code) {
DCHECK_NE(PP_OK, error_code);
for (ClientMap::iterator i = pending_connects_.begin();
- i != pending_connects_.end(); ++i) {
+ i != pending_connects_.end();
+ ++i) {
base::WeakPtr<PPB_Broker_Impl>& weak_ptr = i->second.client;
if (weak_ptr.get()) {
weak_ptr->BrokerConnected(
« no previous file with comments | « content/renderer/pepper/pepper_broker.h ('k') | content/renderer/pepper/pepper_browser_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698