diff options
Diffstat (limited to 'content/browser/webui/generic_handler.h')
-rw-r--r-- | content/browser/webui/generic_handler.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/content/browser/webui/generic_handler.h b/content/browser/webui/generic_handler.h index c4ed317..4e668a5 100644 --- a/content/browser/webui/generic_handler.h +++ b/content/browser/webui/generic_handler.h @@ -20,10 +20,21 @@ class GenericHandler : public WebUIMessageHandler { // WebUIMessageHandler implementation. virtual void RegisterMessages(); + virtual bool IsLoading() const OVERRIDE; private: void HandleNavigateToUrl(const base::ListValue* args); + // Javascript hook to indicate whether or not a long running operation is in + // progress. + void HandleSetIsLoading(const base::ListValue* args); + + // Indicates whether or not this WebUI is performing a long running operation + // and that the throbber should reflect this. + void SetIsLoading(bool is_loading); + + bool is_loading_; + DISALLOW_COPY_AND_ASSIGN(GenericHandler); }; |