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

Side by Side Diff: components/leveldb/leveldb_service_impl.h

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_LEVELDB_LEVELDB_SERVICE_IMPL_H_ 5 #ifndef COMPONENTS_LEVELDB_LEVELDB_SERVICE_IMPL_H_
6 #define COMPONENTS_LEVELDB_LEVELDB_SERVICE_IMPL_H_ 6 #define COMPONENTS_LEVELDB_LEVELDB_SERVICE_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/single_thread_task_runner.h"
9 #include "components/leveldb/leveldb_mojo_proxy.h" 10 #include "components/leveldb/leveldb_mojo_proxy.h"
10 #include "components/leveldb/public/interfaces/leveldb.mojom.h" 11 #include "components/leveldb/public/interfaces/leveldb.mojom.h"
11 #include "mojo/public/cpp/bindings/binding_set.h" 12 #include "mojo/public/cpp/bindings/binding_set.h"
12 13
13 namespace leveldb { 14 namespace leveldb {
14 15
15 // Creates LevelDBDatabases based scoped to a |directory|/|dbname|. 16 // Creates LevelDBDatabases based scoped to a |directory|/|dbname|.
16 class LevelDBServiceImpl : public mojom::LevelDBService { 17 class LevelDBServiceImpl : public mojom::LevelDBService {
17 public: 18 public:
18 // The |file_task_runner| is used to run tasks to interact with the 19 // The |file_task_runner| is used to run tasks to interact with the
(...skipping 25 matching lines...) Expand all
44 // threads that want to call file stuff, we create a dedicated thread to send 45 // threads that want to call file stuff, we create a dedicated thread to send
45 // and receive mojo message calls. 46 // and receive mojo message calls.
46 scoped_refptr<LevelDBMojoProxy> thread_; 47 scoped_refptr<LevelDBMojoProxy> thread_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(LevelDBServiceImpl); 49 DISALLOW_COPY_AND_ASSIGN(LevelDBServiceImpl);
49 }; 50 };
50 51
51 } // namespace leveldb 52 } // namespace leveldb
52 53
53 #endif // COMPONENTS_LEVELDB_LEVELDB_SERVICE_IMPL_H_ 54 #endif // COMPONENTS_LEVELDB_LEVELDB_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « components/invalidation/impl/unacked_invalidation_set_unittest.cc ('k') | components/metrics/metrics_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698