OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/plugins/npapi/plugin_lib.h" | 5 #include "webkit/plugins/npapi/plugin_lib.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/metrics/stats_counters.h" | 10 #include "base/metrics/stats_counters.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "webkit/plugins/npapi/plugin_host.h" |
12 #include "webkit/plugins/npapi/plugin_instance.h" | 13 #include "webkit/plugins/npapi/plugin_instance.h" |
13 #include "webkit/plugins/npapi/plugin_host.h" | |
14 #include "webkit/plugins/npapi/plugin_list.h" | 14 #include "webkit/plugins/npapi/plugin_list.h" |
15 | 15 |
16 namespace webkit { | 16 namespace webkit { |
17 namespace npapi { | 17 namespace npapi { |
18 | 18 |
19 const char kPluginLibrariesLoadedCounter[] = "PluginLibrariesLoaded"; | 19 const char kPluginLibrariesLoadedCounter[] = "PluginLibrariesLoaded"; |
20 const char kPluginInstancesActiveCounter[] = "PluginInstancesActive"; | 20 const char kPluginInstancesActiveCounter[] = "PluginInstancesActive"; |
21 | 21 |
22 // A list of all the instantiated plugins. | 22 // A list of all the instantiated plugins. |
23 static std::vector<scoped_refptr<PluginLib> >* g_loaded_libs; | 23 static std::vector<scoped_refptr<PluginLib> >* g_loaded_libs; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 343 |
344 void PluginLib::Shutdown() { | 344 void PluginLib::Shutdown() { |
345 if (initialized_ && !internal_) { | 345 if (initialized_ && !internal_) { |
346 NP_Shutdown(); | 346 NP_Shutdown(); |
347 initialized_ = false; | 347 initialized_ = false; |
348 } | 348 } |
349 } | 349 } |
350 | 350 |
351 } // namespace npapi | 351 } // namespace npapi |
352 } // namespace webkit | 352 } // namespace webkit |
OLD | NEW |