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

Side by Side Diff: components/nacl/renderer/trusted_plugin_channel.cc

Issue 1639713002: Remove superfluous semicolons around IPC message macros (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/nacl/renderer/trusted_plugin_channel.h" 5 #include "components/nacl/renderer/trusted_plugin_channel.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "components/nacl/common/nacl_renderer_messages.h" 8 #include "components/nacl/common/nacl_renderer_messages.h"
9 #include "components/nacl/renderer/histogram.h" 9 #include "components/nacl/renderer/histogram.h"
10 #include "components/nacl/renderer/nexe_load_manager.h" 10 #include "components/nacl/renderer/nexe_load_manager.h"
(...skipping 22 matching lines...) Expand all
33 33
34 bool TrustedPluginChannel::Send(IPC::Message* message) { 34 bool TrustedPluginChannel::Send(IPC::Message* message) {
35 return channel_->Send(message); 35 return channel_->Send(message);
36 } 36 }
37 37
38 bool TrustedPluginChannel::OnMessageReceived(const IPC::Message& msg) { 38 bool TrustedPluginChannel::OnMessageReceived(const IPC::Message& msg) {
39 bool handled = true; 39 bool handled = true;
40 IPC_BEGIN_MESSAGE_MAP(TrustedPluginChannel, msg) 40 IPC_BEGIN_MESSAGE_MAP(TrustedPluginChannel, msg)
41 IPC_MESSAGE_HANDLER(NaClRendererMsg_ReportExitStatus, OnReportExitStatus); 41 IPC_MESSAGE_HANDLER(NaClRendererMsg_ReportExitStatus, OnReportExitStatus);
42 IPC_MESSAGE_HANDLER(NaClRendererMsg_ReportLoadStatus, OnReportLoadStatus); 42 IPC_MESSAGE_HANDLER(NaClRendererMsg_ReportLoadStatus, OnReportLoadStatus);
43 IPC_MESSAGE_UNHANDLED(handled = false); 43 IPC_MESSAGE_UNHANDLED(handled = false)
44 IPC_END_MESSAGE_MAP() 44 IPC_END_MESSAGE_MAP()
45 return handled; 45 return handled;
46 } 46 }
47 47
48 void TrustedPluginChannel::OnChannelError() { 48 void TrustedPluginChannel::OnChannelError() {
49 if (!is_helper_nexe_) 49 if (!is_helper_nexe_)
50 nexe_load_manager_->NexeDidCrash(); 50 nexe_load_manager_->NexeDidCrash();
51 } 51 }
52 52
53 void TrustedPluginChannel::OnReportExitStatus(int exit_status) { 53 void TrustedPluginChannel::OnReportExitStatus(int exit_status) {
(...skipping 16 matching lines...) Expand all
70 : "NaCl.LoadStatus.SelLdr.NotInstalledApp"; 70 : "NaCl.LoadStatus.SelLdr.NotInstalledApp";
71 HistogramEnumerate(name, load_status, NACL_ERROR_CODE_MAX); 71 HistogramEnumerate(name, load_status, NACL_ERROR_CODE_MAX);
72 } 72 }
73 if (load_status != LOAD_OK) { 73 if (load_status != LOAD_OK) {
74 nexe_load_manager_->ReportLoadError(PP_NACL_ERROR_SEL_LDR_START_STATUS, 74 nexe_load_manager_->ReportLoadError(PP_NACL_ERROR_SEL_LDR_START_STATUS,
75 NaClErrorString(load_status)); 75 NaClErrorString(load_status));
76 } 76 }
77 } 77 }
78 78
79 } // namespace nacl 79 } // namespace nacl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698