blob: e9b74eb34e9bdd427e681fd7a92b28622c5ddf94 (
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
|
// 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_EXTENSIONS_EXTENSION_TAB_HELPER_DELEGATE_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_DELEGATE_H_
#pragma once
#include "base/basictypes.h"
class TabContents;
struct WebApplicationInfo;
// Objects implement this interface to get notified about changes in the
// ExtensionTabHelper and to provide necessary functionality.
class ExtensionTabHelperDelegate {
public:
// Notification that a user's request to install an application has completed.
virtual void OnDidGetApplicationInfo(TabContents* source,
int32 page_id);
// Notification when an application programmatically requests installation.
virtual void OnInstallApplication(TabContents* source,
const WebApplicationInfo& app_info);
protected:
virtual ~ExtensionTabHelperDelegate();
};
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_DELEGATE_H_
|