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_CHROME_PLUGIN_SERVICE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_CHROME_PLUGIN_SERVICE_FILTER_H_ |
6 #define CHROME_BROWSER_PLUGINS_CHROME_PLUGIN_SERVICE_FILTER_H_ | 6 #define CHROME_BROWSER_PLUGINS_CHROME_PLUGIN_SERVICE_FILTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 17 #include "build/build_config.h" |
17 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
19 #include "content/public/browser/plugin_service_filter.h" | 20 #include "content/public/browser/plugin_service_filter.h" |
20 #include "content/public/common/webplugininfo.h" | 21 #include "content/public/common/webplugininfo.h" |
21 #include "url/gurl.h" | 22 #include "url/gurl.h" |
22 | 23 |
23 class PluginPrefs; | 24 class PluginPrefs; |
24 class Profile; | 25 class Profile; |
25 | 26 |
26 namespace content { | 27 namespace content { |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ResourceContextMap resource_context_map_; | 147 ResourceContextMap resource_context_map_; |
147 | 148 |
148 std::map<int, ProcessDetails> plugin_details_; | 149 std::map<int, ProcessDetails> plugin_details_; |
149 | 150 |
150 // Keeps track if loading a plugin has already trigged an infobar. | 151 // Keeps track if loading a plugin has already trigged an infobar. |
151 // Accessed on UI thread. | 152 // Accessed on UI thread. |
152 std::set<std::string> infobared_plugin_mime_types_; | 153 std::set<std::string> infobared_plugin_mime_types_; |
153 }; | 154 }; |
154 | 155 |
155 #endif // CHROME_BROWSER_PLUGINS_CHROME_PLUGIN_SERVICE_FILTER_H_ | 156 #endif // CHROME_BROWSER_PLUGINS_CHROME_PLUGIN_SERVICE_FILTER_H_ |
OLD | NEW |