| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PLUGIN_DATA_REMOVER_HELPER_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_DATA_REMOVER_HELPER_H_ |
| 6 #define CHROME_BROWSER_PLUGIN_DATA_REMOVER_HELPER_H_ | 6 #define CHROME_BROWSER_PLUGIN_DATA_REMOVER_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 bool GetValue() const { return pref_.GetValue(); } | 42 bool GetValue() const { return pref_.GetValue(); } |
| 43 | 43 |
| 44 // Like PluginDataRemover::IsSupported, but checks that the returned plugin | 44 // Like PluginDataRemover::IsSupported, but checks that the returned plugin |
| 45 // is enabled by PluginPrefs | 45 // is enabled by PluginPrefs |
| 46 static bool IsSupported(PluginPrefs* plugin_prefs); | 46 static bool IsSupported(PluginPrefs* plugin_prefs); |
| 47 | 47 |
| 48 // content::NotificationObserver methods: | 48 // content::NotificationObserver methods: |
| 49 virtual void Observe(int type, | 49 virtual void Observe(int type, |
| 50 const content::NotificationSource& source, | 50 const content::NotificationSource& source, |
| 51 const content::NotificationDetails& details); | 51 const content::NotificationDetails& details) OVERRIDE; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 void StartUpdate(); | 54 void StartUpdate(); |
| 55 void GotPlugins(scoped_refptr<PluginPrefs> plugin_prefs, | 55 void GotPlugins(scoped_refptr<PluginPrefs> plugin_prefs, |
| 56 const std::vector<webkit::WebPluginInfo>& plugins); | 56 const std::vector<webkit::WebPluginInfo>& plugins); |
| 57 | 57 |
| 58 BooleanPrefMember pref_; | 58 BooleanPrefMember pref_; |
| 59 content::NotificationRegistrar registrar_; | 59 content::NotificationRegistrar registrar_; |
| 60 // Weak pointer. | 60 // Weak pointer. |
| 61 Profile* profile_; | 61 Profile* profile_; |
| 62 base::WeakPtrFactory<PluginDataRemoverHelper> factory_; | 62 base::WeakPtrFactory<PluginDataRemoverHelper> factory_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(PluginDataRemoverHelper); | 64 DISALLOW_COPY_AND_ASSIGN(PluginDataRemoverHelper); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_HELPER_H_ | 67 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_HELPER_H_ |
| OLD | NEW |