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

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

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 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
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 typedef std::map<int, WaitableEventWrapper> ModalDialogEventMap; 136 typedef std::map<int, WaitableEventWrapper> ModalDialogEventMap;
137 ModalDialogEventMap modal_dialog_event_map_; 137 ModalDialogEventMap modal_dialog_event_map_;
138 base::Lock modal_dialog_event_map_lock_; 138 base::Lock modal_dialog_event_map_lock_;
139 139
140 IPC::Channel* channel_; 140 IPC::Channel* channel_;
141 }; 141 };
142 142
143 PluginChannel* PluginChannel::GetPluginChannel( 143 PluginChannel* PluginChannel::GetPluginChannel(
144 int renderer_id, base::MessageLoopProxy* ipc_message_loop) { 144 int renderer_id, base::MessageLoopProxy* ipc_message_loop) {
145 // Map renderer ID to a (single) channel to that process. 145 // Map renderer ID to a (single) channel to that process.
146 std::string channel_key = StringPrintf( 146 std::string channel_key = base::StringPrintf(
147 "%d.r%d", base::GetCurrentProcId(), renderer_id); 147 "%d.r%d", base::GetCurrentProcId(), renderer_id);
148 148
149 PluginChannel* channel = 149 PluginChannel* channel =
150 static_cast<PluginChannel*>(NPChannelBase::GetChannel( 150 static_cast<PluginChannel*>(NPChannelBase::GetChannel(
151 channel_key, 151 channel_key,
152 IPC::Channel::MODE_SERVER, 152 IPC::Channel::MODE_SERVER,
153 ClassFactory, 153 ClassFactory,
154 ipc_message_loop, 154 ipc_message_loop,
155 false, 155 false,
156 ChildProcess::current()->GetShutDownEvent())); 156 ChildProcess::current()->GetShutDownEvent()));
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 : base::StringPrintf("\"%s\"", site_str); 312 : base::StringPrintf("\"%s\"", site_str);
313 VLOG(1) << "NPP_ClearSiteData(" << site_name << ", " << flags << ", " 313 VLOG(1) << "NPP_ClearSiteData(" << site_name << ", " << flags << ", "
314 << max_age << ") returned " << err; 314 << max_age << ") returned " << err;
315 success = (err == NPERR_NO_ERROR); 315 success = (err == NPERR_NO_ERROR);
316 } 316 }
317 } 317 }
318 Send(new PluginHostMsg_ClearSiteDataResult(success)); 318 Send(new PluginHostMsg_ClearSiteDataResult(success));
319 } 319 }
320 320
321 } // namespace content 321 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698