| 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_INSTALL_HELPER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // For fetching the icon, if needed. | 115 // For fetching the icon, if needed. |
| 116 scoped_ptr<net::URLFetcher> url_fetcher_; | 116 scoped_ptr<net::URLFetcher> url_fetcher_; |
| 117 net::URLRequestContextGetter* context_getter_; // Only usable on UI thread. | 117 net::URLRequestContextGetter* context_getter_; // Only usable on UI thread. |
| 118 | 118 |
| 119 base::WeakPtr<content::UtilityProcessHost> utility_host_; | 119 base::WeakPtr<content::UtilityProcessHost> utility_host_; |
| 120 | 120 |
| 121 // Flags for whether we're done doing icon decoding and manifest parsing. | 121 // Flags for whether we're done doing icon decoding and manifest parsing. |
| 122 bool icon_decode_complete_; | 122 bool icon_decode_complete_; |
| 123 bool manifest_parse_complete_; | 123 bool manifest_parse_complete_; |
| 124 | 124 |
| 125 // The results of succesful decoding/parsing. | 125 // The results of successful decoding/parsing. |
| 126 SkBitmap icon_; | 126 SkBitmap icon_; |
| 127 scoped_ptr<base::DictionaryValue> parsed_manifest_; | 127 scoped_ptr<base::DictionaryValue> parsed_manifest_; |
| 128 | 128 |
| 129 // A details string for keeping track of any errors. | 129 // A details string for keeping track of any errors. |
| 130 std::string error_; | 130 std::string error_; |
| 131 | 131 |
| 132 // A code to distinguish between an error with the icon, and an error with the | 132 // A code to distinguish between an error with the icon, and an error with the |
| 133 // manifest. | 133 // manifest. |
| 134 Delegate::InstallHelperResultCode parse_error_; | 134 Delegate::InstallHelperResultCode parse_error_; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace extensions | 137 } // namespace extensions |
| 138 | 138 |
| 139 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ | 139 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_HELPER_H_ |
| OLD | NEW |