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

Unified Diff: chrome/browser/ui/intents/web_intent_picker_model.h

Issue 10827238: [WebIntents, Gtk] "Waiting for Suggestion" dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove flag, rebase to HEAD. 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
Index: chrome/browser/ui/intents/web_intent_picker_model.h
diff --git a/chrome/browser/ui/intents/web_intent_picker_model.h b/chrome/browser/ui/intents/web_intent_picker_model.h
index 41a5adc656793a8be7dc160658a74be4ebc98a09..6ac103ccdff60a4475bfef6503ef62fd2c45ef05 100644
--- a/chrome/browser/ui/intents/web_intent_picker_model.h
+++ b/chrome/browser/ui/intents/web_intent_picker_model.h
@@ -137,6 +137,12 @@ class WebIntentPickerModel {
// Returns true if the picker is currently displaying an inline service.
bool IsInlineDisposition() const;
+ // Returns true if there is still a pending request for suggestions from CWS.
+ bool IsWaitingForSuggestions() const;
+
+ // Set the "waiting for suggestions" status to |waiting|
+ void SetWaitingForSuggestions(bool waiting);
+
// Returns the url of the intent service that is being displayed inline, or
// GURL::EmptyGURL() if none.
const GURL& inline_disposition_url() const { return inline_disposition_url_; }
@@ -171,6 +177,9 @@ class WebIntentPickerModel {
// finds a default service matching the intent being dispatched.
GURL default_service_url_;
+ // Indicates that there are still open requests to CWS.
+ bool waiting_for_suggestions_;
+
DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel);
};
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_controller.cc ('k') | chrome/browser/ui/intents/web_intent_picker_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698