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

Side by Side Diff: base/threading/sequenced_worker_pool.h

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 BASE_THREADING_SEQUENCED_WORKER_POOL_H_ 5 #ifndef BASE_THREADING_SEQUENCED_WORKER_POOL_H_
6 #define BASE_THREADING_SEQUENCED_WORKER_POOL_H_ 6 #define BASE_THREADING_SEQUENCED_WORKER_POOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <cstddef> 10 #include <cstddef>
11 #include <memory>
11 #include <string> 12 #include <string>
12 13
13 #include "base/base_export.h" 14 #include "base/base_export.h"
14 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h"
18 #include "base/single_thread_task_runner.h" 18 #include "base/single_thread_task_runner.h"
19 #include "base/task_runner.h" 19 #include "base/task_runner.h"
20 20
21 namespace tracked_objects { 21 namespace tracked_objects {
22 class Location; 22 class Location;
23 } // namespace tracked_objects 23 } // namespace tracked_objects
24 24
25 namespace base { 25 namespace base {
26 26
27 class SingleThreadTaskRunner; 27 class SingleThreadTaskRunner;
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 friend class RefCountedThreadSafe<SequencedWorkerPool>; 367 friend class RefCountedThreadSafe<SequencedWorkerPool>;
368 friend class DeleteHelper<SequencedWorkerPool>; 368 friend class DeleteHelper<SequencedWorkerPool>;
369 369
370 class Inner; 370 class Inner;
371 class Worker; 371 class Worker;
372 372
373 const scoped_refptr<SingleThreadTaskRunner> constructor_task_runner_; 373 const scoped_refptr<SingleThreadTaskRunner> constructor_task_runner_;
374 374
375 // Avoid pulling in too many headers by putting (almost) everything 375 // Avoid pulling in too many headers by putting (almost) everything
376 // into |inner_|. 376 // into |inner_|.
377 const scoped_ptr<Inner> inner_; 377 const std::unique_ptr<Inner> inner_;
378 378
379 DISALLOW_COPY_AND_ASSIGN(SequencedWorkerPool); 379 DISALLOW_COPY_AND_ASSIGN(SequencedWorkerPool);
380 }; 380 };
381 381
382 } // namespace base 382 } // namespace base
383 383
384 #endif // BASE_THREADING_SEQUENCED_WORKER_POOL_H_ 384 #endif // BASE_THREADING_SEQUENCED_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « base/threading/sequenced_task_runner_handle_unittest.cc ('k') | base/threading/sequenced_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698