OLD | NEW |
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 #include "chrome/browser/chromeos/drive/file_cache_metadata.h" | 5 #include "chrome/browser/chromeos/drive/file_cache_metadata.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/file_enumerator.h" | 9 #include "base/files/file_enumerator.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/task/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "chrome/browser/chromeos/drive/drive.pb.h" | 12 #include "chrome/browser/chromeos/drive/drive.pb.h" |
13 #include "chrome/browser/chromeos/drive/file_cache.h" | 13 #include "chrome/browser/chromeos/drive/file_cache.h" |
14 #include "chrome/browser/chromeos/drive/file_system_util.h" | 14 #include "chrome/browser/chromeos/drive/file_system_util.h" |
15 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 15 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
16 | 16 |
17 namespace drive { | 17 namespace drive { |
18 namespace internal { | 18 namespace internal { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 new FakeCacheMetadata(blocking_task_runner)); | 569 new FakeCacheMetadata(blocking_task_runner)); |
570 } | 570 } |
571 | 571 |
572 void FileCacheMetadata::AssertOnSequencedWorkerPool() { | 572 void FileCacheMetadata::AssertOnSequencedWorkerPool() { |
573 DCHECK(!blocking_task_runner_ || | 573 DCHECK(!blocking_task_runner_ || |
574 blocking_task_runner_->RunsTasksOnCurrentThread()); | 574 blocking_task_runner_->RunsTasksOnCurrentThread()); |
575 } | 575 } |
576 | 576 |
577 } // namespace internal | 577 } // namespace internal |
578 } // namespace drive | 578 } // namespace drive |
OLD | NEW |