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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/renderer/gpu/compositor_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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 IPC_END_MESSAGE_MAP() 257 IPC_END_MESSAGE_MAP()
258 DCHECK(handled); 258 DCHECK(handled);
259 return handled; 259 return handled;
260 } 260 }
261 261
262 void PluginChannel::OnCreateInstance(const std::string& mime_type, 262 void PluginChannel::OnCreateInstance(const std::string& mime_type,
263 int* instance_id) { 263 int* instance_id) {
264 *instance_id = GenerateRouteID(); 264 *instance_id = GenerateRouteID();
265 scoped_refptr<WebPluginDelegateStub> stub(new WebPluginDelegateStub( 265 scoped_refptr<WebPluginDelegateStub> stub(new WebPluginDelegateStub(
266 mime_type, *instance_id, this)); 266 mime_type, *instance_id, this));
267 AddRoute(*instance_id, stub, NULL); 267 AddRoute(*instance_id, stub.get(), NULL);
268 plugin_stubs_.push_back(stub); 268 plugin_stubs_.push_back(stub);
269 } 269 }
270 270
271 void PluginChannel::OnDestroyInstance(int instance_id, 271 void PluginChannel::OnDestroyInstance(int instance_id,
272 IPC::Message* reply_msg) { 272 IPC::Message* reply_msg) {
273 for (size_t i = 0; i < plugin_stubs_.size(); ++i) { 273 for (size_t i = 0; i < plugin_stubs_.size(); ++i) {
274 if (plugin_stubs_[i]->instance_id() == instance_id) { 274 if (plugin_stubs_[i]->instance_id() == instance_id) {
275 scoped_refptr<MessageFilter> filter(filter_); 275 scoped_refptr<MessageFilter> filter(filter_);
276 gfx::NativeViewId window = 276 gfx::NativeViewId window =
277 plugin_stubs_[i]->webplugin()->containing_window(); 277 plugin_stubs_[i]->webplugin()->containing_window();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 : base::StringPrintf("\"%s\"", site_str); 313 : base::StringPrintf("\"%s\"", site_str);
314 VLOG(1) << "NPP_ClearSiteData(" << site_name << ", " << flags << ", " 314 VLOG(1) << "NPP_ClearSiteData(" << site_name << ", " << flags << ", "
315 << max_age << ") returned " << err; 315 << max_age << ") returned " << err;
316 success = (err == NPERR_NO_ERROR); 316 success = (err == NPERR_NO_ERROR);
317 } 317 }
318 } 318 }
319 Send(new PluginHostMsg_ClearSiteDataResult(success)); 319 Send(new PluginHostMsg_ClearSiteDataResult(success));
320 } 320 }
321 321
322 } // namespace content 322 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/renderer/gpu/compositor_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698