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) OVERRIDE; | 81 virtual bool OnMessageReceived(const IPC::Message& message) override; |
82 virtual void OnDestruct() const OVERRIDE; | 82 virtual void OnDestruct() const override; |
83 | 83 |
84 private: | 84 private: |
85 friend struct content::BrowserThread::DeleteOnThread< | 85 friend struct content::BrowserThread::DeleteOnThread< |
86 content::BrowserThread::UI>; | 86 content::BrowserThread::UI>; |
87 friend class base::DeleteHelper<PluginInfoMessageFilter>; | 87 friend class base::DeleteHelper<PluginInfoMessageFilter>; |
88 | 88 |
89 virtual ~PluginInfoMessageFilter(); | 89 virtual ~PluginInfoMessageFilter(); |
90 | 90 |
91 void OnGetPluginInfo(int render_frame_id, | 91 void OnGetPluginInfo(int render_frame_id, |
92 const GURL& url, | 92 const GURL& url, |
(...skipping 23 matching lines...) Expand all Loading... |
116 #endif | 116 #endif |
117 | 117 |
118 Context context_; | 118 Context context_; |
119 | 119 |
120 base::WeakPtrFactory<PluginInfoMessageFilter> weak_ptr_factory_; | 120 base::WeakPtrFactory<PluginInfoMessageFilter> weak_ptr_factory_; |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(PluginInfoMessageFilter); | 122 DISALLOW_COPY_AND_ASSIGN(PluginInfoMessageFilter); |
123 }; | 123 }; |
124 | 124 |
125 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ | 125 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INFO_MESSAGE_FILTER_H_ |
OLD | NEW |