OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
| 11 #include <memory> |
11 #include <string> | 12 #include <string> |
12 | 13 |
13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
14 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/memory/scoped_ptr.h" | |
18 #include "base/memory/singleton.h" | 18 #include "base/memory/singleton.h" |
19 #include "base/process/kill.h" | 19 #include "base/process/kill.h" |
20 #include "base/synchronization/lock.h" | 20 #include "base/synchronization/lock.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "base/values.h" | 22 #include "base/values.h" |
23 #include "content/public/browser/gpu_data_manager.h" | 23 #include "content/public/browser/gpu_data_manager.h" |
24 #include "content/public/common/three_d_api_types.h" | 24 #include "content/public/common/three_d_api_types.h" |
25 #include "gpu/config/gpu_info.h" | 25 #include "gpu/config/gpu_info.h" |
26 | 26 |
27 class GURL; | 27 class GURL; |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 private: | 207 private: |
208 GpuDataManagerImpl* owner_; | 208 GpuDataManagerImpl* owner_; |
209 DISALLOW_COPY_AND_ASSIGN(UnlockedSession); | 209 DISALLOW_COPY_AND_ASSIGN(UnlockedSession); |
210 }; | 210 }; |
211 | 211 |
212 GpuDataManagerImpl(); | 212 GpuDataManagerImpl(); |
213 ~GpuDataManagerImpl() override; | 213 ~GpuDataManagerImpl() override; |
214 | 214 |
215 mutable base::Lock lock_; | 215 mutable base::Lock lock_; |
216 scoped_ptr<GpuDataManagerImplPrivate> private_; | 216 std::unique_ptr<GpuDataManagerImplPrivate> private_; |
217 | 217 |
218 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 218 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
219 }; | 219 }; |
220 | 220 |
221 } // namespace content | 221 } // namespace content |
222 | 222 |
223 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 223 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
OLD | NEW |