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

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

Issue 12086077: Only permit plug-in loads in the browser if the plug-in isn't blocked or the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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_PLUGIN_INFO_MESSAGE_FILTER_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ChromeViewHostMsg_GetPluginInfo_Status* status, 56 ChromeViewHostMsg_GetPluginInfo_Status* status,
57 webkit::WebPluginInfo* plugin, 57 webkit::WebPluginInfo* plugin,
58 std::string* actual_mime_type, 58 std::string* actual_mime_type,
59 scoped_ptr<PluginMetadata>* plugin_metadata) const; 59 scoped_ptr<PluginMetadata>* plugin_metadata) const;
60 void GetPluginContentSetting(const webkit::WebPluginInfo& plugin, 60 void GetPluginContentSetting(const webkit::WebPluginInfo& plugin,
61 const GURL& policy_url, 61 const GURL& policy_url,
62 const GURL& plugin_url, 62 const GURL& plugin_url,
63 const std::string& resource, 63 const std::string& resource,
64 ContentSetting* setting, 64 ContentSetting* setting,
65 bool* is_default) const; 65 bool* is_default) const;
66 void GrantAccess(const ChromeViewHostMsg_GetPluginInfo_Status& status,
Bernhard Bauer 2013/02/04 13:58:53 This doesn't actually grant access in all cases, r
67 const FilePath& path) const;
66 68
67 private: 69 private:
68 int render_process_id_; 70 int render_process_id_;
69 content::ResourceContext* resource_context_; 71 content::ResourceContext* resource_context_;
70 const HostContentSettingsMap* host_content_settings_map_; 72 const HostContentSettingsMap* host_content_settings_map_;
71 73
72 BooleanPrefMember allow_outdated_plugins_; 74 BooleanPrefMember allow_outdated_plugins_;
73 BooleanPrefMember always_authorize_plugins_; 75 BooleanPrefMember always_authorize_plugins_;
74 }; 76 };
75 77
(...skipping 24 matching lines...) Expand all
100 const std::vector<webkit::WebPluginInfo>& plugins); 102 const std::vector<webkit::WebPluginInfo>& plugins);
101 103
102 Context context_; 104 Context context_;
103 105
104 base::WeakPtrFactory<PluginInfoMessageFilter> weak_ptr_factory_; 106 base::WeakPtrFactory<PluginInfoMessageFilter> weak_ptr_factory_;
105 107
106 DISALLOW_COPY_AND_ASSIGN(PluginInfoMessageFilter); 108 DISALLOW_COPY_AND_ASSIGN(PluginInfoMessageFilter);
107 }; 109 };
108 110
109 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ 111 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698