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

Side by Side Diff: content/browser/ppapi_plugin_process_host.cc

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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/browser/ppapi_plugin_process_host.h" 5 #include "content/browser/ppapi_plugin_process_host.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 process_.reset(new BrowserChildProcessHostImpl( 215 process_.reset(new BrowserChildProcessHostImpl(
216 PROCESS_TYPE_PPAPI_PLUGIN, this)); 216 PROCESS_TYPE_PPAPI_PLUGIN, this));
217 217
218 filter_ = new PepperMessageFilter(permissions_, host_resolver); 218 filter_ = new PepperMessageFilter(permissions_, host_resolver);
219 219
220 host_impl_.reset(new BrowserPpapiHostImpl(this, permissions_, info.name, 220 host_impl_.reset(new BrowserPpapiHostImpl(this, permissions_, info.name,
221 profile_data_directory, 221 profile_data_directory,
222 false)); 222 false));
223 223
224 process_->GetHost()->AddFilter(filter_.get()); 224 process_->GetHost()->AddFilter(filter_.get());
225 process_->GetHost()->AddFilter(host_impl_->message_filter()); 225 process_->GetHost()->AddFilter(host_impl_->message_filter().get());
226 226
227 GetContentClient()->browser()->DidCreatePpapiPlugin(host_impl_.get()); 227 GetContentClient()->browser()->DidCreatePpapiPlugin(host_impl_.get());
228 228
229 // Only request network status updates if the plugin has dev permissions. 229 // Only request network status updates if the plugin has dev permissions.
230 if (permissions_.HasPermission(ppapi::PERMISSION_DEV)) 230 if (permissions_.HasPermission(ppapi::PERMISSION_DEV))
231 network_observer_.reset(new PluginNetworkObserver(this)); 231 network_observer_.reset(new PluginNetworkObserver(this));
232 } 232 }
233 233
234 PpapiPluginProcessHost::PpapiPluginProcessHost() 234 PpapiPluginProcessHost::PpapiPluginProcessHost()
235 : is_broker_(true) { 235 : is_broker_(true) {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 // sent_requests_ queue should be the one that the plugin just created. 420 // sent_requests_ queue should be the one that the plugin just created.
421 Client* client = sent_requests_.front(); 421 Client* client = sent_requests_.front();
422 sent_requests_.pop(); 422 sent_requests_.pop();
423 423
424 const ChildProcessData& data = process_->GetData(); 424 const ChildProcessData& data = process_->GetData();
425 client->OnPpapiChannelOpened(channel_handle, base::GetProcId(data.handle), 425 client->OnPpapiChannelOpened(channel_handle, base::GetProcId(data.handle),
426 data.id); 426 data.id);
427 } 427 }
428 428
429 } // namespace content 429 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/plugin_loader_posix.cc ('k') | content/browser/renderer_host/media/audio_input_device_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698