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

Side by Side Diff: content/browser/plugin_service_impl.h

Issue 2378573005: [HBD] Blanket BLOCK on all non-HTTP(s) and non-FILE URLs for Flash. (Closed)
Patch Set: fix dat merge Created 4 years, 2 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 // This class responds to requests from renderers for the list of plugins, and 5 // This class responds to requests from renderers for the list of plugins, and
6 // also a proxy object for plugin instances. 6 // also a proxy object for plugin instances.
7 7
8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
9 #define CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 9 #define CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void Init() override; 63 void Init() override;
64 bool GetPluginInfoArray(const GURL& url, 64 bool GetPluginInfoArray(const GURL& url,
65 const std::string& mime_type, 65 const std::string& mime_type,
66 bool allow_wildcard, 66 bool allow_wildcard,
67 std::vector<WebPluginInfo>* info, 67 std::vector<WebPluginInfo>* info,
68 std::vector<std::string>* actual_mime_types) override; 68 std::vector<std::string>* actual_mime_types) override;
69 bool GetPluginInfo(int render_process_id, 69 bool GetPluginInfo(int render_process_id,
70 int render_frame_id, 70 int render_frame_id,
71 ResourceContext* context, 71 ResourceContext* context,
72 const GURL& url, 72 const GURL& url,
73 const GURL& page_url, 73 const url::Origin& main_frame_origin,
74 const std::string& mime_type, 74 const std::string& mime_type,
75 bool allow_wildcard, 75 bool allow_wildcard,
76 bool* is_stale, 76 bool* is_stale,
77 WebPluginInfo* info, 77 WebPluginInfo* info,
78 std::string* actual_mime_type) override; 78 std::string* actual_mime_type) override;
79 bool GetPluginInfoByPath(const base::FilePath& plugin_path, 79 bool GetPluginInfoByPath(const base::FilePath& plugin_path,
80 WebPluginInfo* info) override; 80 WebPluginInfo* info) override;
81 base::string16 GetPluginDisplayNameByPath( 81 base::string16 GetPluginDisplayNameByPath(
82 const base::FilePath& path) override; 82 const base::FilePath& path) override;
83 void GetPlugins(const GetPluginsCallback& callback) override; 83 void GetPlugins(const GetPluginsCallback& callback) override;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // Used to detect if a given plugin is crashing over and over. 160 // Used to detect if a given plugin is crashing over and over.
161 std::map<base::FilePath, std::vector<base::Time> > crash_times_; 161 std::map<base::FilePath, std::vector<base::Time> > crash_times_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); 163 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
164 }; 164 };
165 165
166 } // namespace content 166 } // namespace content
167 167
168 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 168 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/mime_sniffing_resource_handler_unittest.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698