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

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

Issue 16256018: Update content/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix incorrectly modified code 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/plugin_loader_posix.h" 5 #include "content/browser/plugin_loader_posix.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 canonical_list_.erase(canonical_list_.begin(), 51 canonical_list_.erase(canonical_list_.begin(),
52 canonical_list_.begin() + next_load_index_ + 1); 52 canonical_list_.begin() + next_load_index_ + 1);
53 } 53 }
54 54
55 next_load_index_ = 0; 55 next_load_index_ = 0;
56 56
57 LoadPluginsInternal(); 57 LoadPluginsInternal();
58 } 58 }
59 59
60 bool PluginLoaderPosix::Send(IPC::Message* message) { 60 bool PluginLoaderPosix::Send(IPC::Message* message) {
61 if (process_host_) 61 if (process_host_.get())
62 return process_host_->Send(message); 62 return process_host_->Send(message);
63 return false; 63 return false;
64 } 64 }
65 65
66 PluginLoaderPosix::~PluginLoaderPosix() { 66 PluginLoaderPosix::~PluginLoaderPosix() {
67 } 67 }
68 68
69 void PluginLoaderPosix::GetPluginsToLoad() { 69 void PluginLoaderPosix::GetPluginsToLoad() {
70 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); 70 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
71 71
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 scoped_refptr<base::MessageLoopProxy> loop, 193 scoped_refptr<base::MessageLoopProxy> loop,
194 const PluginService::GetPluginsCallback& cb) 194 const PluginService::GetPluginsCallback& cb)
195 : target_loop(loop), 195 : target_loop(loop),
196 callback(cb) { 196 callback(cb) {
197 } 197 }
198 198
199 PluginLoaderPosix::PendingCallback::~PendingCallback() { 199 PluginLoaderPosix::PendingCallback::~PendingCallback() {
200 } 200 }
201 201
202 } // namespace content 202 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/shader_disk_cache.cc ('k') | content/browser/renderer_host/media/web_contents_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698