| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // Checks whether the install is initiated by a page in the verified site | 107 // Checks whether the install is initiated by a page in the verified site |
| 108 // (which is at least a domain, but can also have a port or a path). | 108 // (which is at least a domain, but can also have a port or a path). |
| 109 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, | 109 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, |
| 110 const std::string& verified_site); | 110 const std::string& verified_site); |
| 111 | 111 |
| 112 int install_id_; | 112 int install_id_; |
| 113 int return_route_id_; | 113 int return_route_id_; |
| 114 std::string id_; | 114 std::string id_; |
| 115 GURL requestor_url_; | 115 GURL requestor_url_; |
| 116 Delegate* delegate_; | 116 Delegate* delegate_; |
| 117 scoped_ptr<ExtensionInstallUI> install_ui_; |
| 117 | 118 |
| 118 // For fetching webstore JSON data. | 119 // For fetching webstore JSON data. |
| 119 scoped_ptr<content::URLFetcher> webstore_data_url_fetcher_; | 120 scoped_ptr<content::URLFetcher> webstore_data_url_fetcher_; |
| 120 | 121 |
| 121 // Extracted from the webstore JSON data response. | 122 // Extracted from the webstore JSON data response. |
| 122 std::string localized_name_; | 123 std::string localized_name_; |
| 123 std::string localized_description_; | 124 std::string localized_description_; |
| 124 std::string localized_user_count_; | 125 std::string localized_user_count_; |
| 125 double average_rating_; | 126 double average_rating_; |
| 126 int rating_count_; | 127 int rating_count_; |
| 127 scoped_ptr<DictionaryValue> webstore_data_; | 128 scoped_ptr<DictionaryValue> webstore_data_; |
| 128 scoped_ptr<DictionaryValue> manifest_; | 129 scoped_ptr<DictionaryValue> manifest_; |
| 129 scoped_refptr<Extension> dummy_extension_; | 130 scoped_refptr<Extension> dummy_extension_; |
| 130 SkBitmap icon_; | 131 SkBitmap icon_; |
| 131 | 132 |
| 132 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); | 133 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ | 136 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
| OLD | NEW |