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

Side by Side Diff: content/plugin/plugin_channel.cc

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/gpu/gpu_info_collector_unittest.cc ('k') | content/plugin/plugin_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/plugin/plugin_channel.h" 5 #include "content/plugin/plugin_channel.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 FROM_HERE, modal_dialog_event_map_[render_view_id].event); 71 FROM_HERE, modal_dialog_event_map_[render_view_id].event);
72 modal_dialog_event_map_.erase(render_view_id); 72 modal_dialog_event_map_.erase(render_view_id);
73 } 73 }
74 74
75 bool Send(IPC::Message* message) { 75 bool Send(IPC::Message* message) {
76 // Need this function for the IPC_MESSAGE_HANDLER_DELAY_REPLY macro. 76 // Need this function for the IPC_MESSAGE_HANDLER_DELAY_REPLY macro.
77 return channel_->Send(message); 77 return channel_->Send(message);
78 } 78 }
79 79
80 // IPC::ChannelProxy::MessageFilter: 80 // IPC::ChannelProxy::MessageFilter:
81 void OnFilterAdded(IPC::Channel* channel) { channel_ = channel; } 81 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE {
82 channel_ = channel;
83 }
82 84
83 bool OnMessageReceived(const IPC::Message& message) { 85 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE {
84 IPC_BEGIN_MESSAGE_MAP(PluginChannel::MessageFilter, message) 86 IPC_BEGIN_MESSAGE_MAP(PluginChannel::MessageFilter, message)
85 IPC_MESSAGE_HANDLER_DELAY_REPLY(PluginMsg_Init, OnInit) 87 IPC_MESSAGE_HANDLER_DELAY_REPLY(PluginMsg_Init, OnInit)
86 IPC_MESSAGE_HANDLER(PluginMsg_SignalModalDialogEvent, 88 IPC_MESSAGE_HANDLER(PluginMsg_SignalModalDialogEvent,
87 OnSignalModalDialogEvent) 89 OnSignalModalDialogEvent)
88 IPC_MESSAGE_HANDLER(PluginMsg_ResetModalDialogEvent, 90 IPC_MESSAGE_HANDLER(PluginMsg_ResetModalDialogEvent,
89 OnResetModalDialogEvent) 91 OnResetModalDialogEvent)
90 IPC_END_MESSAGE_MAP() 92 IPC_END_MESSAGE_MAP()
91 return message.type() == PluginMsg_SignalModalDialogEvent::ID || 93 return message.type() == PluginMsg_SignalModalDialogEvent::ID ||
92 message.type() == PluginMsg_ResetModalDialogEvent::ID; 94 message.type() == PluginMsg_ResetModalDialogEvent::ID;
93 } 95 }
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 : base::StringPrintf("\"%s\"", site_str); 312 : base::StringPrintf("\"%s\"", site_str);
311 VLOG(1) << "NPP_ClearSiteData(" << site_name << ", " << flags << ", " 313 VLOG(1) << "NPP_ClearSiteData(" << site_name << ", " << flags << ", "
312 << max_age << ") returned " << err; 314 << max_age << ") returned " << err;
313 success = (err == NPERR_NO_ERROR); 315 success = (err == NPERR_NO_ERROR);
314 } 316 }
315 } 317 }
316 Send(new PluginHostMsg_ClearSiteDataResult(success)); 318 Send(new PluginHostMsg_ClearSiteDataResult(success));
317 } 319 }
318 320
319 } // namespace content 321 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_info_collector_unittest.cc ('k') | content/plugin/plugin_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698