diff options
Diffstat (limited to 'content/browser/webui/web_ui.h')
-rw-r--r-- | content/browser/webui/web_ui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content/browser/webui/web_ui.h b/content/browser/webui/web_ui.h index 66ee230..d0462ac 100644 --- a/content/browser/webui/web_ui.h +++ b/content/browser/webui/web_ui.h @@ -149,6 +149,10 @@ class WebUI : public IPC::Channel::Listener { TabContents* tab_contents() const { return tab_contents_; } + // Returns true to indicate that the WebUI is performing a long running + // operation and wants the tab throbber to run. + virtual bool IsLoading() const; + // An opaque identifier used to identify a WebUI. This can only be compared to // kNoWebUI or other WebUI types. See GetWebUIType. typedef void* TypeID; @@ -210,6 +214,10 @@ class WebUIMessageHandler { // is provided. Returns |this| for convenience. virtual WebUIMessageHandler* Attach(WebUI* web_ui); + // Returns true to indicate that a long running operation is in progress and + // the tab throbber should be active. + virtual bool IsLoading() const; + protected: // Adds "url" and "title" keys on incoming dictionary, setting title // as the url as a fallback on empty title. |