| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 const HostContentSettingsMap* host_content_settings_map_; | 71 const HostContentSettingsMap* host_content_settings_map_; |
| 72 scoped_refptr<PluginPrefs> plugin_prefs_; | 72 scoped_refptr<PluginPrefs> plugin_prefs_; |
| 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 |
| 78 PluginInfoMessageFilter(int render_process_id, Profile* profile); | 78 PluginInfoMessageFilter(int render_process_id, Profile* profile); |
| 79 | 79 |
| 80 // content::BrowserMessageFilter methods: | 80 // content::BrowserMessageFilter methods: |
| 81 virtual bool OnMessageReceived(const IPC::Message& message, | 81 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 82 bool* message_was_ok) OVERRIDE; | |
| 83 virtual void OnDestruct() const OVERRIDE; | 82 virtual void OnDestruct() const OVERRIDE; |
| 84 | 83 |
| 85 private: | 84 private: |
| 86 friend struct content::BrowserThread::DeleteOnThread< | 85 friend struct content::BrowserThread::DeleteOnThread< |
| 87 content::BrowserThread::UI>; | 86 content::BrowserThread::UI>; |
| 88 friend class base::DeleteHelper<PluginInfoMessageFilter>; | 87 friend class base::DeleteHelper<PluginInfoMessageFilter>; |
| 89 | 88 |
| 90 virtual ~PluginInfoMessageFilter(); | 89 virtual ~PluginInfoMessageFilter(); |
| 91 | 90 |
| 92 void OnGetPluginInfo(int render_frame_id, | 91 void OnGetPluginInfo(int render_frame_id, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 114 std::vector<base::string16>* additional_param_values); | 113 std::vector<base::string16>* additional_param_values); |
| 115 | 114 |
| 116 Context context_; | 115 Context context_; |
| 117 | 116 |
| 118 base::WeakPtrFactory<PluginInfoMessageFilter> weak_ptr_factory_; | 117 base::WeakPtrFactory<PluginInfoMessageFilter> weak_ptr_factory_; |
| 119 | 118 |
| 120 DISALLOW_COPY_AND_ASSIGN(PluginInfoMessageFilter); | 119 DISALLOW_COPY_AND_ASSIGN(PluginInfoMessageFilter); |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ | 122 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ |
| OLD | NEW |