| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_INFO_PROVIDER_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_INFO_PROVIDER_H_ |
| 6 #define EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_INFO_PROVIDER_H_ | 6 #define EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_INFO_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // false and on the sequenced worker pool while |is_waiting_for_completion_| | 66 // false and on the sequenced worker pool while |is_waiting_for_completion_| |
| 67 // is true. | 67 // is true. |
| 68 StorageUnitInfoList info_; | 68 StorageUnitInfoList info_; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 // SystemInfoProvider implementations. | 71 // SystemInfoProvider implementations. |
| 72 // Override to query the available capacity of all known storage devices on | 72 // Override to query the available capacity of all known storage devices on |
| 73 // the blocking pool, including fixed and removable devices. | 73 // the blocking pool, including fixed and removable devices. |
| 74 bool QueryInfo() override; | 74 bool QueryInfo() override; |
| 75 | 75 |
| 76 static base::LazyInstance<scoped_refptr<StorageInfoProvider> > provider_; | 76 static base::LazyInstance< |
| 77 scoped_refptr<StorageInfoProvider>>::DestructorAtExit provider_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(StorageInfoProvider); | 79 DISALLOW_COPY_AND_ASSIGN(StorageInfoProvider); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace extensions | 82 } // namespace extensions |
| 82 | 83 |
| 83 #endif // EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_INFO_PROVIDER_H_ | 84 #endif // EXTENSIONS_BROWSER_API_SYSTEM_STORAGE_STORAGE_INFO_PROVIDER_H_ |
| OLD | NEW |