OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_FILESYSTEM_DIRECTORY_IMPL_H_ | 5 #ifndef COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
6 #define COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 6 #define COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/scoped_file.h" | 9 #include "base/files/scoped_file.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "components/filesystem/public/interfaces/directory.mojom.h" | 12 #include "components/filesystem/public/interfaces/directory.mojom.h" |
13 #include "mojo/public/cpp/bindings/interface_request.h" | 13 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" |
14 #include "mojo/public/cpp/bindings/strong_binding.h" | 14 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class ScopedTempDir; | 17 class ScopedTempDir; |
18 } // namespace base | 18 } // namespace base |
19 | 19 |
20 namespace filesystem { | 20 namespace filesystem { |
21 | 21 |
22 class DirectoryImpl : public Directory { | 22 class DirectoryImpl : public Directory { |
23 public: | 23 public: |
24 // Set |temp_dir| only if there's a temporary directory that should be deleted | 24 // Set |temp_dir| only if there's a temporary directory that should be deleted |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 mojo::StrongBinding<Directory> binding_; | 58 mojo::StrongBinding<Directory> binding_; |
59 base::FilePath directory_path_; | 59 base::FilePath directory_path_; |
60 scoped_ptr<base::ScopedTempDir> temp_dir_; | 60 scoped_ptr<base::ScopedTempDir> temp_dir_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); | 62 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace filesystem | 65 } // namespace filesystem |
66 | 66 |
67 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 67 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
OLD | NEW |