| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| 11 class TabContentsWrapper; | 11 class TabContents; |
| 12 typedef TabContents TabContentsWrapper; |
| 12 struct WebApplicationInfo; | 13 struct WebApplicationInfo; |
| 13 | 14 |
| 14 // Objects implement this interface to get notified about changes in the | 15 // Objects implement this interface to get notified about changes in the |
| 15 // ExtensionTabHelper and to provide necessary functionality. | 16 // ExtensionTabHelper and to provide necessary functionality. |
| 16 class ExtensionTabHelperDelegate { | 17 class ExtensionTabHelperDelegate { |
| 17 public: | 18 public: |
| 18 // Notification that a user's request to install an application has completed. | 19 // Notification that a user's request to install an application has completed. |
| 19 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source, | 20 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source, |
| 20 int32 page_id); | 21 int32 page_id); |
| 21 | 22 |
| 22 // Notification when an application programmatically requests installation. | 23 // Notification when an application programmatically requests installation. |
| 23 virtual void OnInstallApplication(TabContentsWrapper* source, | 24 virtual void OnInstallApplication(TabContentsWrapper* source, |
| 24 const WebApplicationInfo& app_info); | 25 const WebApplicationInfo& app_info); |
| 25 protected: | 26 protected: |
| 26 virtual ~ExtensionTabHelperDelegate(); | 27 virtual ~ExtensionTabHelperDelegate(); |
| 27 }; | 28 }; |
| 28 | 29 |
| 29 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_DELEGATE_H_ | 30 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_DELEGATE_H_ |
| OLD | NEW |