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_INTENTS_WEB_INTENTS_UTIL_H_ | 5 #ifndef CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_ |
6 #define CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_ | 6 #define CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_ |
7 | 7 |
8 class Browser; | |
8 class Profile; | 9 class Profile; |
9 class PrefService; | 10 class PrefService; |
10 | 11 |
11 namespace web_intents { | 12 namespace web_intents { |
12 | 13 |
13 // Registers the preferences related to Web Intents. | 14 // Registers the preferences related to Web Intents. |
14 void RegisterUserPrefs(PrefService* user_prefs); | 15 void RegisterUserPrefs(PrefService* user_prefs); |
15 | 16 |
16 // Returns true if WebIntents are enabled in preferences. | 17 // Returns true if WebIntents are enabled in preferences. |
17 bool IsWebIntentsEnabled(PrefService* prefs); | 18 bool IsWebIntentsEnabled(PrefService* prefs); |
18 | 19 |
19 // Returns true if WebIntents are enabled due to various factors. |profile| is | 20 // Returns true if WebIntents are enabled due to various factors. |profile| is |
20 // the Profile to check that WebIntents are enabled for. | 21 // the Profile to check that WebIntents are enabled for. |
21 bool IsWebIntentsEnabledForProfile(Profile* profile); | 22 bool IsWebIntentsEnabledForProfile(Profile* profile); |
22 | 23 |
24 // In a context where we are generating a web intent based on internal events, | |
25 // or from an extension background page, get the browser in which to show the | |
26 // intent picker to the user. | |
27 Browser* GetWebIntentDeliveryBrowser(Profile* profile); | |
Ben Goodger (Google)
2012/08/07 21:18:16
Can you name this method something that indicates
Greg Billock
2012/08/07 22:48:45
Done.
On 2012/08/07 21:18:16, Ben Goodger (Google
| |
28 | |
23 } // namespace web_intents | 29 } // namespace web_intents |
24 | 30 |
25 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_ | 31 #endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_ |
OLD | NEW |