OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include <utility> |
| 6 #include <vector> |
| 7 |
5 #include "base/global_descriptors_posix.h" | 8 #include "base/global_descriptors_posix.h" |
6 | |
7 #include <vector> | |
8 #include <utility> | |
9 | |
10 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/singleton.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 | 13 |
14 // static | 14 // static |
15 GlobalDescriptors* GlobalDescriptors::GetInstance() { | 15 GlobalDescriptors* GlobalDescriptors::GetInstance() { |
16 typedef Singleton<base::GlobalDescriptors, | 16 typedef Singleton<base::GlobalDescriptors, |
17 LeakySingletonTraits<base::GlobalDescriptors> > | 17 LeakySingletonTraits<base::GlobalDescriptors> > |
18 GlobalDescriptorsSingleton; | 18 GlobalDescriptorsSingleton; |
19 return GlobalDescriptorsSingleton::get(); | 19 return GlobalDescriptorsSingleton::get(); |
20 } | 20 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 void GlobalDescriptors::Reset(const Mapping& mapping) { | 54 void GlobalDescriptors::Reset(const Mapping& mapping) { |
55 descriptors_ = mapping; | 55 descriptors_ = mapping; |
56 } | 56 } |
57 | 57 |
58 GlobalDescriptors::GlobalDescriptors() {} | 58 GlobalDescriptors::GlobalDescriptors() {} |
59 | 59 |
60 GlobalDescriptors::~GlobalDescriptors() {} | 60 GlobalDescriptors::~GlobalDescriptors() {} |
61 | 61 |
62 } // namespace base | 62 } // namespace base |
OLD | NEW |