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_PEPPER_FLASH_SETTINGS_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PEPPER_FLASH_SETTINGS_MANAGER_H_ |
6 #define CHROME_BROWSER_PEPPER_FLASH_SETTINGS_MANAGER_H_ | 6 #define CHROME_BROWSER_PEPPER_FLASH_SETTINGS_MANAGER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // receive any notifications after this object goes away. | 59 // receive any notifications after this object goes away. |
60 PepperFlashSettingsManager(Client* client, | 60 PepperFlashSettingsManager(Client* client, |
61 content::BrowserContext* browser_context); | 61 content::BrowserContext* browser_context); |
62 ~PepperFlashSettingsManager(); | 62 ~PepperFlashSettingsManager(); |
63 | 63 |
64 // |plugin_info| will be updated if it is not NULL and the method returns | 64 // |plugin_info| will be updated if it is not NULL and the method returns |
65 // true. | 65 // true. |
66 static bool IsPepperFlashInUse(PluginPrefs* plugin_prefs, | 66 static bool IsPepperFlashInUse(PluginPrefs* plugin_prefs, |
67 webkit::WebPluginInfo* plugin_info); | 67 webkit::WebPluginInfo* plugin_info); |
68 | 68 |
69 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 69 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
70 | 70 |
71 // Requests to deauthorize content licenses. | 71 // Requests to deauthorize content licenses. |
72 // Client::OnDeauthorizeContentLicensesCompleted() will be called when the | 72 // Client::OnDeauthorizeContentLicensesCompleted() will be called when the |
73 // operation is completed. | 73 // operation is completed. |
74 // The return value is the same as the request ID passed into | 74 // The return value is the same as the request ID passed into |
75 // Client::OnDeauthorizeContentLicensesCompleted(). | 75 // Client::OnDeauthorizeContentLicensesCompleted(). |
76 uint32 DeauthorizeContentLicenses(PrefService* prefs); | 76 uint32 DeauthorizeContentLicenses(PrefService* prefs); |
77 | 77 |
78 // Gets permission settings. | 78 // Gets permission settings. |
79 // Client::OnGetPermissionSettingsCompleted() will be called when the | 79 // Client::OnGetPermissionSettingsCompleted() will be called when the |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 content::BrowserContext* browser_context_; | 130 content::BrowserContext* browser_context_; |
131 | 131 |
132 scoped_refptr<Core> core_; | 132 scoped_refptr<Core> core_; |
133 | 133 |
134 uint32 next_request_id_; | 134 uint32 next_request_id_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(PepperFlashSettingsManager); | 136 DISALLOW_COPY_AND_ASSIGN(PepperFlashSettingsManager); |
137 }; | 137 }; |
138 | 138 |
139 #endif // CHROME_BROWSER_PEPPER_FLASH_SETTINGS_MANAGER_H_ | 139 #endif // CHROME_BROWSER_PEPPER_FLASH_SETTINGS_MANAGER_H_ |
OLD | NEW |