Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(697)

Side by Side Diff: chrome/browser/plugins/chrome_plugin_service_filter.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/permissions/permission_manager_factory.cc ('k') | chrome/browser/plugins/chrome_plugin_service_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698