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

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: Created 8 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 side-by-side diff with in-line comments
Download patch
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..d80a8390c160fd69e923bc7325cac77d1b0ecd0a 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* GetWebIntentDeliveryBrowser(Profile* profile);
+
} // namespace web_intents
#endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698