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_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 Loading... |
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, | |
67 const FilePath& path) const; | |
68 | 66 |
69 private: | 67 private: |
70 int render_process_id_; | 68 int render_process_id_; |
71 content::ResourceContext* resource_context_; | 69 content::ResourceContext* resource_context_; |
72 const HostContentSettingsMap* host_content_settings_map_; | 70 const HostContentSettingsMap* host_content_settings_map_; |
73 | 71 |
74 BooleanPrefMember allow_outdated_plugins_; | 72 BooleanPrefMember allow_outdated_plugins_; |
75 BooleanPrefMember always_authorize_plugins_; | 73 BooleanPrefMember always_authorize_plugins_; |
76 }; | 74 }; |
77 | 75 |
(...skipping 24 matching lines...) Expand all Loading... |
102 const std::vector<webkit::WebPluginInfo>& plugins); | 100 const std::vector<webkit::WebPluginInfo>& plugins); |
103 | 101 |
104 Context context_; | 102 Context context_; |
105 | 103 |
106 base::WeakPtrFactory<PluginInfoMessageFilter> weak_ptr_factory_; | 104 base::WeakPtrFactory<PluginInfoMessageFilter> weak_ptr_factory_; |
107 | 105 |
108 DISALLOW_COPY_AND_ASSIGN(PluginInfoMessageFilter); | 106 DISALLOW_COPY_AND_ASSIGN(PluginInfoMessageFilter); |
109 }; | 107 }; |
110 | 108 |
111 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ | 109 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ |
OLD | NEW |