| 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/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "base/metrics/user_metrics.h" | |
| 12 #include "content/browser/utility_process_host_impl.h" | 11 #include "content/browser/utility_process_host_impl.h" |
| 13 #include "content/common/child_process_host_impl.h" | 12 #include "content/common/child_process_host_impl.h" |
| 14 #include "content/common/plugin_list.h" | 13 #include "content/common/plugin_list.h" |
| 15 #include "content/common/utility_messages.h" | 14 #include "content/common/utility_messages.h" |
| 16 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 17 #include "content/public/browser/plugin_service.h" | 16 #include "content/public/browser/plugin_service.h" |
| 17 #include "content/public/browser/user_metrics.h" |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 PluginLoaderPosix::PluginLoaderPosix() | 21 PluginLoaderPosix::PluginLoaderPosix() |
| 22 : next_load_index_(0) { | 22 : next_load_index_(0) { |
| 23 } | 23 } |
| 24 | 24 |
| 25 void PluginLoaderPosix::GetPlugins( | 25 void PluginLoaderPosix::GetPlugins( |
| 26 const PluginService::GetPluginsCallback& callback) { | 26 const PluginService::GetPluginsCallback& callback) { |
| 27 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 27 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 HISTOGRAM_TIMES("PluginLoaderPosix.LoadDone", | 212 HISTOGRAM_TIMES("PluginLoaderPosix.LoadDone", |
| 213 (base::TimeTicks::Now() - load_start_time_) | 213 (base::TimeTicks::Now() - load_start_time_) |
| 214 * base::Time::kMicrosecondsPerMillisecond); | 214 * base::Time::kMicrosecondsPerMillisecond); |
| 215 load_start_time_ = base::TimeTicks(); | 215 load_start_time_ = base::TimeTicks(); |
| 216 | 216 |
| 217 return true; | 217 return true; |
| 218 } | 218 } |
| 219 | 219 |
| 220 } // namespace content | 220 } // namespace content |
| OLD | NEW |