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/common/plugin_list.h" | 5 #include "content/common/plugin_list.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 } // namespace | 30 } // namespace |
31 | 31 |
32 // static | 32 // static |
33 PluginList* PluginList::Singleton() { | 33 PluginList* PluginList::Singleton() { |
34 return g_singleton.Pointer(); | 34 return g_singleton.Pointer(); |
35 } | 35 } |
36 | 36 |
37 // static | 37 // static |
38 bool PluginList::DebugPluginLoading() { | 38 bool PluginList::DebugPluginLoading() { |
39 return CommandLine::ForCurrentProcess()->HasSwitch( | 39 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
40 switches::kDebugPluginLoading); | 40 switches::kDebugPluginLoading); |
41 } | 41 } |
42 | 42 |
43 void PluginList::DisablePluginsDiscovery() { | 43 void PluginList::DisablePluginsDiscovery() { |
44 plugins_discovery_disabled_ = true; | 44 plugins_discovery_disabled_ = true; |
45 } | 45 } |
46 | 46 |
47 void PluginList::RefreshPlugins() { | 47 void PluginList::RefreshPlugins() { |
48 base::AutoLock lock(lock_); | 48 base::AutoLock lock(lock_); |
49 loading_state_ = LOADING_STATE_NEEDS_REFRESH; | 49 loading_state_ = LOADING_STATE_NEEDS_REFRESH; |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 plugin_path); | 406 plugin_path); |
407 if (it != extra_plugin_paths_.end()) | 407 if (it != extra_plugin_paths_.end()) |
408 extra_plugin_paths_.erase(it); | 408 extra_plugin_paths_.erase(it); |
409 } | 409 } |
410 | 410 |
411 PluginList::~PluginList() { | 411 PluginList::~PluginList() { |
412 } | 412 } |
413 | 413 |
414 | 414 |
415 } // namespace content | 415 } // namespace content |
OLD | NEW |