| 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" |
| 11 #include "ppapi/c/private/ppp_flash_browser_operations.h" | 11 #include "ppapi/c/private/ppp_flash_browser_operations.h" |
| 12 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" | 12 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
| 13 | 13 |
| 14 class PluginPrefs; | 14 class PluginPrefs; |
| 15 class PrefService; | 15 class PrefServiceSyncable; |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class BrowserContext; | 18 class BrowserContext; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace webkit { | 21 namespace webkit { |
| 22 struct WebPluginInfo; | 22 struct WebPluginInfo; |
| 23 } | 23 } |
| 24 | 24 |
| 25 // PepperFlashSettingsManager communicates with a PPAPI broker process to | 25 // PepperFlashSettingsManager communicates with a PPAPI broker process to |
| (...skipping 29 matching lines...) Expand all Loading... |
| 55 // receive any notifications after this object goes away. | 55 // receive any notifications after this object goes away. |
| 56 PepperFlashSettingsManager(Client* client, | 56 PepperFlashSettingsManager(Client* client, |
| 57 content::BrowserContext* browser_context); | 57 content::BrowserContext* browser_context); |
| 58 ~PepperFlashSettingsManager(); | 58 ~PepperFlashSettingsManager(); |
| 59 | 59 |
| 60 // |plugin_info| will be updated if it is not NULL and the method returns | 60 // |plugin_info| will be updated if it is not NULL and the method returns |
| 61 // true. | 61 // true. |
| 62 static bool IsPepperFlashInUse(PluginPrefs* plugin_prefs, | 62 static bool IsPepperFlashInUse(PluginPrefs* plugin_prefs, |
| 63 webkit::WebPluginInfo* plugin_info); | 63 webkit::WebPluginInfo* plugin_info); |
| 64 | 64 |
| 65 static void RegisterUserPrefs(PrefService* prefs); | 65 static void RegisterUserPrefs(PrefServiceSyncable* prefs); |
| 66 | 66 |
| 67 // Requests to deauthorize content licenses. | 67 // Requests to deauthorize content licenses. |
| 68 // Client::OnDeauthorizeContentLicensesCompleted() will be called when the | 68 // Client::OnDeauthorizeContentLicensesCompleted() will be called when the |
| 69 // operation is completed. | 69 // operation is completed. |
| 70 // The return value is the same as the request ID passed into | 70 // The return value is the same as the request ID passed into |
| 71 // Client::OnDeauthorizeContentLicensesCompleted(). | 71 // Client::OnDeauthorizeContentLicensesCompleted(). |
| 72 uint32 DeauthorizeContentLicenses(); | 72 uint32 DeauthorizeContentLicenses(); |
| 73 | 73 |
| 74 // Gets permission settings. | 74 // Gets permission settings. |
| 75 // Client::OnGetPermissionSettingsCompleted() will be called when the | 75 // Client::OnGetPermissionSettingsCompleted() will be called when the |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 content::BrowserContext* browser_context_; | 126 content::BrowserContext* browser_context_; |
| 127 | 127 |
| 128 scoped_refptr<Core> core_; | 128 scoped_refptr<Core> core_; |
| 129 | 129 |
| 130 uint32 next_request_id_; | 130 uint32 next_request_id_; |
| 131 | 131 |
| 132 DISALLOW_COPY_AND_ASSIGN(PepperFlashSettingsManager); | 132 DISALLOW_COPY_AND_ASSIGN(PepperFlashSettingsManager); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 #endif // CHROME_BROWSER_PEPPER_FLASH_SETTINGS_MANAGER_H_ | 135 #endif // CHROME_BROWSER_PEPPER_FLASH_SETTINGS_MANAGER_H_ |
| OLD | NEW |