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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/intents/web_intents_util.h
diff --git a/chrome/browser/intents/web_intents_util.h b/chrome/browser/intents/web_intents_util.h
index 5ec4521c2f93b0c995a9d34a39ef3e883669722b..4d55206d9c541f8b2291145539730ca8a1258024 100644
--- a/chrome/browser/intents/web_intents_util.h
+++ b/chrome/browser/intents/web_intents_util.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_
#define CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_
+class Browser;
class Profile;
class PrefService;
@@ -20,6 +21,11 @@ bool IsWebIntentsEnabled(PrefService* prefs);
// the Profile to check that WebIntents are enabled for.
bool IsWebIntentsEnabledForProfile(Profile* profile);
+// In a context where we are generating a web intent based on internal events,
+// or from an extension background page, get the browser in which to show the
+// intent picker to the user.
+Browser* GetBrowserForBackgroundWebIntentDelivery(Profile* profile);
+
} // namespace web_intents
#endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_
« 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