Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Side by Side Diff: chrome/browser/pepper_flash_settings_manager.h

Issue 19894003: Move webplugininfo.h to content/public. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 PrefService;
16 16
17 namespace content { 17 namespace content {
18 class BrowserContext; 18 class BrowserContext;
19 struct WebPluginInfo;
19 } 20 }
20 21
21 namespace user_prefs { 22 namespace user_prefs {
22 class PrefRegistrySyncable; 23 class PrefRegistrySyncable;
23 } 24 }
24 25
25 namespace webkit {
26 struct WebPluginInfo;
27 }
28
29 // PepperFlashSettingsManager communicates with a PPAPI broker process to 26 // PepperFlashSettingsManager communicates with a PPAPI broker process to
30 // read/write Pepper Flash settings. 27 // read/write Pepper Flash settings.
31 class PepperFlashSettingsManager { 28 class PepperFlashSettingsManager {
32 public: 29 public:
33 class Client { 30 class Client {
34 public: 31 public:
35 virtual ~Client() {} 32 virtual ~Client() {}
36 33
37 virtual void OnDeauthorizeContentLicensesCompleted(uint32 request_id, 34 virtual void OnDeauthorizeContentLicensesCompleted(uint32 request_id,
38 bool success) {} 35 bool success) {}
(...skipping 18 matching lines...) Expand all
57 54
58 // |client| must outlive this object. It is guaranteed that |client| won't 55 // |client| must outlive this object. It is guaranteed that |client| won't
59 // receive any notifications after this object goes away. 56 // receive any notifications after this object goes away.
60 PepperFlashSettingsManager(Client* client, 57 PepperFlashSettingsManager(Client* client,
61 content::BrowserContext* browser_context); 58 content::BrowserContext* browser_context);
62 ~PepperFlashSettingsManager(); 59 ~PepperFlashSettingsManager();
63 60
64 // |plugin_info| will be updated if it is not NULL and the method returns 61 // |plugin_info| will be updated if it is not NULL and the method returns
65 // true. 62 // true.
66 static bool IsPepperFlashInUse(PluginPrefs* plugin_prefs, 63 static bool IsPepperFlashInUse(PluginPrefs* plugin_prefs,
67 webkit::WebPluginInfo* plugin_info); 64 content::WebPluginInfo* plugin_info);
68 65
69 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 66 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
70 67
71 // Requests to deauthorize content licenses. 68 // Requests to deauthorize content licenses.
72 // Client::OnDeauthorizeContentLicensesCompleted() will be called when the 69 // Client::OnDeauthorizeContentLicensesCompleted() will be called when the
73 // operation is completed. 70 // operation is completed.
74 // The return value is the same as the request ID passed into 71 // The return value is the same as the request ID passed into
75 // Client::OnDeauthorizeContentLicensesCompleted(). 72 // Client::OnDeauthorizeContentLicensesCompleted().
76 uint32 DeauthorizeContentLicenses(PrefService* prefs); 73 uint32 DeauthorizeContentLicenses(PrefService* prefs);
77 74
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 content::BrowserContext* browser_context_; 127 content::BrowserContext* browser_context_;
131 128
132 scoped_refptr<Core> core_; 129 scoped_refptr<Core> core_;
133 130
134 uint32 next_request_id_; 131 uint32 next_request_id_;
135 132
136 DISALLOW_COPY_AND_ASSIGN(PepperFlashSettingsManager); 133 DISALLOW_COPY_AND_ASSIGN(PepperFlashSettingsManager);
137 }; 134 };
138 135
139 #endif // CHROME_BROWSER_PEPPER_FLASH_SETTINGS_MANAGER_H_ 136 #endif // CHROME_BROWSER_PEPPER_FLASH_SETTINGS_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698