Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | content/browser/gpu/gpu_data_manager_impl_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698