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 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_FINDER_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_FINDER_H_ |
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_FINDER_H_ | 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_FINDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "chrome/common/features.h" | 18 #include "chrome/common/features.h" |
19 #include "content/public/common/webplugininfo.h" | 19 #include "content/public/common/webplugininfo.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 class DictionaryValue; | 22 class DictionaryValue; |
23 } | 23 } |
24 | 24 |
25 class GURL; | |
26 class PluginMetadata; | 25 class PluginMetadata; |
27 class PrefRegistrySimple; | 26 class PrefRegistrySimple; |
28 | 27 |
29 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 28 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
30 class PluginInstaller; | 29 class PluginInstaller; |
31 #endif | 30 #endif |
32 | 31 |
33 // This class should be created and initialized by calling | 32 // This class should be created and initialized by calling |
34 // |GetInstance()| and |Init()| on the UI thread. | 33 // |GetInstance()| and |Init()| on the UI thread. |
35 // After that it can be safely used on any other thread. | 34 // After that it can be safely used on any other thread. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 int version_; | 90 int version_; |
92 | 91 |
93 // Synchronization for the above member variables is | 92 // Synchronization for the above member variables is |
94 // required since multiple threads can be accessing them concurrently. | 93 // required since multiple threads can be accessing them concurrently. |
95 base::Lock mutex_; | 94 base::Lock mutex_; |
96 | 95 |
97 DISALLOW_COPY_AND_ASSIGN(PluginFinder); | 96 DISALLOW_COPY_AND_ASSIGN(PluginFinder); |
98 }; | 97 }; |
99 | 98 |
100 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_FINDER_H_ | 99 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_FINDER_H_ |
OLD | NEW |