| 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 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_CACHE_H_ | 5 #ifndef COMPONENTS_DRIVE_FILE_CACHE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_CACHE_H_ | 6 #define COMPONENTS_DRIVE_FILE_CACHE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/synchronization/cancellation_flag.h" | 14 #include "base/synchronization/cancellation_flag.h" |
| 15 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
| 16 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" | |
| 17 #include "components/drive/file_errors.h" | 16 #include "components/drive/file_errors.h" |
| 17 #include "components/drive/resource_metadata_storage.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class ScopedClosureRunner; | 20 class ScopedClosureRunner; |
| 21 class SequencedTaskRunner; | 21 class SequencedTaskRunner; |
| 22 } // namespace base | 22 } // namespace base |
| 23 | 23 |
| 24 namespace drive { | 24 namespace drive { |
| 25 | 25 |
| 26 namespace internal { | 26 namespace internal { |
| 27 | 27 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // Note: This should remain the last member so it'll be destroyed and | 186 // Note: This should remain the last member so it'll be destroyed and |
| 187 // invalidate its weak pointers before any other members are destroyed. | 187 // invalidate its weak pointers before any other members are destroyed. |
| 188 // This object should be accessed only on |blocking_task_runner_|. | 188 // This object should be accessed only on |blocking_task_runner_|. |
| 189 base::WeakPtrFactory<FileCache> weak_ptr_factory_; | 189 base::WeakPtrFactory<FileCache> weak_ptr_factory_; |
| 190 DISALLOW_COPY_AND_ASSIGN(FileCache); | 190 DISALLOW_COPY_AND_ASSIGN(FileCache); |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 } // namespace internal | 193 } // namespace internal |
| 194 } // namespace drive | 194 } // namespace drive |
| 195 | 195 |
| 196 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_CACHE_H_ | 196 #endif // COMPONENTS_DRIVE_FILE_CACHE_H_ |
| OLD | NEW |