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_WEBSTORE_INLINE_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 // content::URLFetcherDelegate interface implementation. | 72 // content::URLFetcherDelegate interface implementation. |
73 virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE; | 73 virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE; |
74 | 74 |
75 // Client callbacks for SafeWebstoreResponseParser when parsing is complete. | 75 // Client callbacks for SafeWebstoreResponseParser when parsing is complete. |
76 void OnWebstoreResponseParseSuccess(DictionaryValue* webstore_data); | 76 void OnWebstoreResponseParseSuccess(DictionaryValue* webstore_data); |
77 void OnWebstoreResponseParseFailure(const std::string& error); | 77 void OnWebstoreResponseParseFailure(const std::string& error); |
78 | 78 |
79 // WebstoreInstallHelper::Delegate interface implementation. | 79 // WebstoreInstallHelper::Delegate interface implementation. |
80 virtual void OnWebstoreParseSuccess( | 80 virtual void OnWebstoreParseSuccess( |
| 81 const std::string& id, |
81 const SkBitmap& icon, | 82 const SkBitmap& icon, |
82 base::DictionaryValue* parsed_manifest) OVERRIDE; | 83 base::DictionaryValue* parsed_manifest) OVERRIDE; |
83 virtual void OnWebstoreParseFailure( | 84 virtual void OnWebstoreParseFailure( |
| 85 const std::string& id, |
84 InstallHelperResultCode result_code, | 86 InstallHelperResultCode result_code, |
85 const std::string& error_message) OVERRIDE; | 87 const std::string& error_message) OVERRIDE; |
86 | 88 |
87 // ExtensionInstallUI::Delegate interface implementation. | 89 // ExtensionInstallUI::Delegate interface implementation. |
88 virtual void InstallUIProceed() OVERRIDE; | 90 virtual void InstallUIProceed() OVERRIDE; |
89 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; | 91 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; |
90 | 92 |
91 // TabContentsObserver interface implementation. | 93 // TabContentsObserver interface implementation. |
92 virtual void TabContentsDestroyed(TabContents* tab_contents) OVERRIDE; | 94 virtual void TabContentsDestroyed(TabContents* tab_contents) OVERRIDE; |
93 | 95 |
(...skipping 20 matching lines...) Expand all Loading... |
114 int rating_count_; | 116 int rating_count_; |
115 scoped_ptr<DictionaryValue> webstore_data_; | 117 scoped_ptr<DictionaryValue> webstore_data_; |
116 scoped_ptr<DictionaryValue> manifest_; | 118 scoped_ptr<DictionaryValue> manifest_; |
117 scoped_refptr<Extension> dummy_extension_; | 119 scoped_refptr<Extension> dummy_extension_; |
118 SkBitmap icon_; | 120 SkBitmap icon_; |
119 | 121 |
120 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); | 122 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); |
121 }; | 123 }; |
122 | 124 |
123 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ | 125 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
OLD | NEW |