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_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 void DoBurn(); | 304 void DoBurn(); |
305 | 305 |
306 // Cancels the image burning. | 306 // Cancels the image burning. |
307 // TODO(hidehiko): Rename this method along with the renaming of DoBurn. | 307 // TODO(hidehiko): Rename this method along with the renaming of DoBurn. |
308 void CancelBurnImage(); | 308 void CancelBurnImage(); |
309 | 309 |
310 // Cancel fetching image. | 310 // Cancel fetching image. |
311 void CancelImageFetch(); | 311 void CancelImageFetch(); |
312 | 312 |
313 // URLFetcherDelegate overrides: | 313 // URLFetcherDelegate overrides: |
314 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; | 314 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; |
315 virtual void OnURLFetchDownloadProgress(const net::URLFetcher* source, | 315 virtual void OnURLFetchDownloadProgress(const net::URLFetcher* source, |
316 int64 current, | 316 int64 current, |
317 int64 total) OVERRIDE; | 317 int64 total) override; |
318 | 318 |
319 // NetworkStateHandlerObserver override. | 319 // NetworkStateHandlerObserver override. |
320 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; | 320 virtual void DefaultNetworkChanged(const NetworkState* network) override; |
321 | 321 |
322 // Creates directory image will be downloaded to. | 322 // Creates directory image will be downloaded to. |
323 // Must be called from FILE thread. | 323 // Must be called from FILE thread. |
324 void CreateImageDir(); | 324 void CreateImageDir(); |
325 | 325 |
326 // Returns the directory to which the recovery image should be downloaded. | 326 // Returns the directory to which the recovery image should be downloaded. |
327 // If the directory hasn't been previously created, an empty path is returned | 327 // If the directory hasn't been previously created, an empty path is returned |
328 // (in which case |CreateImageDir()| should be called). | 328 // (in which case |CreateImageDir()| should be called). |
329 base::FilePath GetImageDir(); | 329 base::FilePath GetImageDir(); |
330 | 330 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 base::WeakPtrFactory<BurnManager> weak_ptr_factory_; | 404 base::WeakPtrFactory<BurnManager> weak_ptr_factory_; |
405 | 405 |
406 DISALLOW_COPY_AND_ASSIGN(BurnManager); | 406 DISALLOW_COPY_AND_ASSIGN(BurnManager); |
407 }; | 407 }; |
408 | 408 |
409 } // namespace imageburner | 409 } // namespace imageburner |
410 | 410 |
411 } // namespace chromeos | 411 } // namespace chromeos |
412 | 412 |
413 #endif // CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ | 413 #endif // CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ |
OLD | NEW |