| Index: chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
|
| diff --git a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
|
| index 4fb85d673cf685295508f6dc5041990174ec788e..569321e59984711b99a52196f8f678f438f7a66e 100644
|
| --- a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
|
| +++ b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
|
| @@ -9,11 +9,15 @@
|
| #include "base/compiler_specific.h"
|
| #include "content/public/browser/web_contents_delegate.h"
|
|
|
| +class WebIntentPicker;
|
| +
|
| // This class is the policy delegate for the rendered page in the intents
|
| // inline disposition bubble.
|
| class WebIntentInlineDispositionDelegate : public content::WebContentsDelegate {
|
| public:
|
| - WebIntentInlineDispositionDelegate();
|
| + // |picker| is notified when the web contents loading state changes. Must not
|
| + // be NULL.
|
| + explicit WebIntentInlineDispositionDelegate(WebIntentPicker* picker);
|
| virtual ~WebIntentInlineDispositionDelegate();
|
|
|
| // WebContentsDelegate implementation.
|
| @@ -25,6 +29,11 @@ class WebIntentInlineDispositionDelegate : public content::WebContentsDelegate {
|
| virtual content::WebContents* OpenURLFromTab(
|
| content::WebContents* source,
|
| const content::OpenURLParams& params) OVERRIDE;
|
| + virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
|
| +
|
| + private:
|
| + // Picker to notify when loading state changes. Weak pointer.
|
| + WebIntentPicker* picker_;
|
| };
|
|
|
| #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_
|
|
|