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

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

Issue 1231493002: mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 5 years, 5 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 | « no previous file | components/filesystem/file_system_app.h » ('j') | sql/mojo/mojo_vfs.cc » ('J')
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 "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"
(...skipping 10 matching lines...) Expand all
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
25 // when this object is destroyed. 25 // when this object is destroyed.
26 DirectoryImpl(mojo::InterfaceRequest<Directory> request, 26 DirectoryImpl(mojo::InterfaceRequest<Directory> request,
27 base::FilePath directory_path, 27 base::FilePath directory_path,
28 scoped_ptr<base::ScopedTempDir> temp_dir); 28 scoped_ptr<base::ScopedTempDir> temp_dir);
29 ~DirectoryImpl() override; 29 ~DirectoryImpl() override;
30 30
31 void set_connection_error_handler(const mojo::Closure& error_handler) {
32 binding_.set_connection_error_handler(error_handler);
33 }
34
31 // |Directory| implementation: 35 // |Directory| implementation:
32 void Read(const ReadCallback& callback) override; 36 void Read(const ReadCallback& callback) override;
33 void OpenFile(const mojo::String& path, 37 void OpenFile(const mojo::String& path,
34 mojo::InterfaceRequest<File> file, 38 mojo::InterfaceRequest<File> file,
35 uint32_t open_flags, 39 uint32_t open_flags,
36 const OpenFileCallback& callback) override; 40 const OpenFileCallback& callback) override;
37 void OpenDirectory(const mojo::String& path, 41 void OpenDirectory(const mojo::String& path,
38 mojo::InterfaceRequest<Directory> directory, 42 mojo::InterfaceRequest<Directory> directory,
39 uint32_t open_flags, 43 uint32_t open_flags,
40 const OpenDirectoryCallback& callback) override; 44 const OpenDirectoryCallback& callback) override;
(...skipping 13 matching lines...) Expand all
54 mojo::StrongBinding<Directory> binding_; 58 mojo::StrongBinding<Directory> binding_;
55 base::FilePath directory_path_; 59 base::FilePath directory_path_;
56 scoped_ptr<base::ScopedTempDir> temp_dir_; 60 scoped_ptr<base::ScopedTempDir> temp_dir_;
57 61
58 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); 62 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl);
59 }; 63 };
60 64
61 } // namespace filesystem 65 } // namespace filesystem
62 66
63 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ 67 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | components/filesystem/file_system_app.h » ('j') | sql/mojo/mojo_vfs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698