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> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // (render_process_id == 0) | 91 // (render_process_id == 0) |
92 bool CanLoadPlugin(int render_process_id, | 92 bool CanLoadPlugin(int render_process_id, |
93 const base::FilePath& path) override; | 93 const base::FilePath& path) override; |
94 | 94 |
95 void NPAPIPluginLoaded(int render_process_id, | 95 void NPAPIPluginLoaded(int render_process_id, |
96 int render_frame_id, | 96 int render_frame_id, |
97 const std::string& mime_type, | 97 const std::string& mime_type, |
98 const content::WebPluginInfo& info) override; | 98 const content::WebPluginInfo& info) override; |
99 | 99 |
100 private: | 100 private: |
101 friend struct DefaultSingletonTraits<ChromePluginServiceFilter>; | 101 friend struct base::DefaultSingletonTraits<ChromePluginServiceFilter>; |
102 | 102 |
103 struct OverriddenPlugin { | 103 struct OverriddenPlugin { |
104 OverriddenPlugin(); | 104 OverriddenPlugin(); |
105 ~OverriddenPlugin(); | 105 ~OverriddenPlugin(); |
106 | 106 |
107 int render_frame_id; | 107 int render_frame_id; |
108 GURL url; // If empty, the override applies to all urls in render_frame. | 108 GURL url; // If empty, the override applies to all urls in render_frame. |
109 content::WebPluginInfo plugin; | 109 content::WebPluginInfo plugin; |
110 }; | 110 }; |
111 | 111 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ResourceContextMap resource_context_map_; | 146 ResourceContextMap resource_context_map_; |
147 | 147 |
148 std::map<int, ProcessDetails> plugin_details_; | 148 std::map<int, ProcessDetails> plugin_details_; |
149 | 149 |
150 // Keeps track if loading a plugin has already trigged an infobar. | 150 // Keeps track if loading a plugin has already trigged an infobar. |
151 // Accessed on UI thread. | 151 // Accessed on UI thread. |
152 std::set<std::string> infobared_plugin_mime_types_; | 152 std::set<std::string> infobared_plugin_mime_types_; |
153 }; | 153 }; |
154 | 154 |
155 #endif // CHROME_BROWSER_PLUGINS_CHROME_PLUGIN_SERVICE_FILTER_H_ | 155 #endif // CHROME_BROWSER_PLUGINS_CHROME_PLUGIN_SERVICE_FILTER_H_ |
OLD | NEW |