| 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_UPDATER_EXTENSION_DOWNLOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 ExtensionFetch(const std::string& id, const GURL& url, | 122 ExtensionFetch(const std::string& id, const GURL& url, |
| 123 const std::string& package_hash, const std::string& version, | 123 const std::string& package_hash, const std::string& version, |
| 124 const std::set<int>& request_ids); | 124 const std::set<int>& request_ids); |
| 125 ~ExtensionFetch(); | 125 ~ExtensionFetch(); |
| 126 | 126 |
| 127 std::string id; | 127 std::string id; |
| 128 GURL url; | 128 GURL url; |
| 129 std::string package_hash; | 129 std::string package_hash; |
| 130 std::string version; | 130 std::string version; |
| 131 std::set<int> request_ids; | 131 std::set<int> request_ids; |
| 132 |
| 133 // Indicates whether or not the fetch is known to require credentials. |
| 134 bool is_protected; |
| 132 }; | 135 }; |
| 133 | 136 |
| 134 // Helper for AddExtension() and AddPendingExtension(). | 137 // Helper for AddExtension() and AddPendingExtension(). |
| 135 bool AddExtensionData(const std::string& id, | 138 bool AddExtensionData(const std::string& id, |
| 136 const base::Version& version, | 139 const base::Version& version, |
| 137 Manifest::Type extension_type, | 140 Manifest::Type extension_type, |
| 138 const GURL& extension_update_url, | 141 const GURL& extension_update_url, |
| 139 const std::string& update_url_data, | 142 const std::string& update_url_data, |
| 140 int request_id); | 143 int request_id); |
| 141 | 144 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 239 |
| 237 // Cache for .crx files. | 240 // Cache for .crx files. |
| 238 ExtensionCache* extension_cache_; | 241 ExtensionCache* extension_cache_; |
| 239 | 242 |
| 240 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); | 243 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); |
| 241 }; | 244 }; |
| 242 | 245 |
| 243 } // namespace extensions | 246 } // namespace extensions |
| 244 | 247 |
| 245 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ | 248 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ |
| OLD | NEW |