| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |