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_INFO_SYSTEM_INFO_PROVIDER_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_PROVIDER_H_ |
6 #define EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_PROVIDER_H_ | 6 #define EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_PROVIDER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/threading/sequenced_worker_pool.h" | 14 #include "base/threading/sequenced_worker_pool.h" |
14 | 15 |
15 namespace extensions { | 16 namespace extensions { |
16 | 17 |
17 // An abstract base class for all kinds of system information providers. Each | 18 // An abstract base class for all kinds of system information providers. Each |
18 // kind of SystemInfoProvider is a single shared instance. It is created if | 19 // kind of SystemInfoProvider is a single shared instance. It is created if |
19 // needed, and destroyed at exit time. This is done via LazyInstance and | 20 // needed, and destroyed at exit time. This is done via LazyInstance and |
20 // scoped_refptr. | 21 // scoped_refptr. |
21 // | 22 // |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Sequenced worker pool to make the operation of querying information get | 90 // Sequenced worker pool to make the operation of querying information get |
90 // executed in order. | 91 // executed in order. |
91 scoped_refptr<base::SequencedTaskRunner> worker_pool_; | 92 scoped_refptr<base::SequencedTaskRunner> worker_pool_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(SystemInfoProvider); | 94 DISALLOW_COPY_AND_ASSIGN(SystemInfoProvider); |
94 }; | 95 }; |
95 | 96 |
96 } // namespace extensions | 97 } // namespace extensions |
97 | 98 |
98 #endif // EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_PROVIDER_H_ | 99 #endif // EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_PROVIDER_H_ |
OLD | NEW |