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

Side by Side Diff: chrome/browser/intents/web_intents_util.h

Issue 10830102: [Web Intents] Add ability to dispatch intents from extension-caused code (i.e. context menus) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ifdef out impl for android Created 8 years, 4 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
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/intents/web_intents_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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* GetBrowserForBackgroundWebIntentDelivery(Profile* profile);
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/intents/web_intents_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698