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

Side by Side Diff: components/filesystem/directory_impl.h

Issue 2080083002: Revert of Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « components/bitmap_uploader/bitmap_uploader.cc ('k') | components/font_service/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 13 matching lines...) Expand all
24 class DirectoryImpl : public mojom::Directory { 24 class DirectoryImpl : public mojom::Directory {
25 public: 25 public:
26 // Set |temp_dir| only if there's a temporary directory that should be deleted 26 // Set |temp_dir| only if there's a temporary directory that should be deleted
27 // when this object is destroyed. 27 // when this object is destroyed.
28 DirectoryImpl(mojo::InterfaceRequest<mojom::Directory> request, 28 DirectoryImpl(mojo::InterfaceRequest<mojom::Directory> request,
29 base::FilePath directory_path, 29 base::FilePath directory_path,
30 scoped_refptr<SharedTempDir> temp_dir, 30 scoped_refptr<SharedTempDir> temp_dir,
31 scoped_refptr<LockTable> lock_table); 31 scoped_refptr<LockTable> lock_table);
32 ~DirectoryImpl() override; 32 ~DirectoryImpl() override;
33 33
34 void set_connection_error_handler(const base::Closure& error_handler) { 34 void set_connection_error_handler(const mojo::Closure& error_handler) {
35 binding_.set_connection_error_handler(error_handler); 35 binding_.set_connection_error_handler(error_handler);
36 } 36 }
37 37
38 // |Directory| implementation: 38 // |Directory| implementation:
39 void Read(const ReadCallback& callback) override; 39 void Read(const ReadCallback& callback) override;
40 void OpenFile(const mojo::String& path, 40 void OpenFile(const mojo::String& path,
41 mojo::InterfaceRequest<mojom::File> file, 41 mojo::InterfaceRequest<mojom::File> file,
42 uint32_t open_flags, 42 uint32_t open_flags,
43 const OpenFileCallback& callback) override; 43 const OpenFileCallback& callback) override;
44 void OpenFileHandle(const mojo::String& path, 44 void OpenFileHandle(const mojo::String& path,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 base::FilePath directory_path_; 79 base::FilePath directory_path_;
80 scoped_refptr<SharedTempDir> temp_dir_; 80 scoped_refptr<SharedTempDir> temp_dir_;
81 scoped_refptr<LockTable> lock_table_; 81 scoped_refptr<LockTable> lock_table_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); 83 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl);
84 }; 84 };
85 85
86 } // namespace filesystem 86 } // namespace filesystem
87 87
88 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ 88 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_
OLDNEW
« no previous file with comments | « components/bitmap_uploader/bitmap_uploader.cc ('k') | components/font_service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698