blob: 1e0e74a11be61a2dd8cb927403a30bca705bc219 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_
#define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_
#include "base/string16.h"
class GURL;
class WebIntentPickerModel;
// Observer for changes to the WebIntentPickerModel.
class WebIntentPickerModelObserver {
public:
virtual ~WebIntentPickerModelObserver() {}
// Called when |model| has changed.
virtual void OnModelChanged(WebIntentPickerModel* model) = 0;
// Called when the favicon at |index| in |model| has changed.
virtual void OnFaviconChanged(WebIntentPickerModel* model, size_t index) = 0;
// Called when the extension with |extension_id| has its icon changed.
virtual void OnExtensionIconChanged(WebIntentPickerModel* model,
const string16& extension_id) = 0;
// Called when the inline disposition should be displayed for |model|.
virtual void OnInlineDisposition(const string16& title,
const GURL& url) = 0;
};
#endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_OBSERVER_H_
|