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