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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h

Issue 1239043002: Add support for actions for multiple file selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better documentation. 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _
7 7
8 #include <map> 8 #include <map>
9 #include <set>
9 #include <string> 10 #include <string>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/callback.h" 13 #include "base/callback.h"
13 #include "base/files/file.h" 14 #include "base/files/file.h"
14 #include "base/memory/linked_ptr.h" 15 #include "base/memory/linked_ptr.h"
15 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
16 #include "base/observer_list.h" 17 #include "base/observer_list.h"
17 #include "base/task/cancelable_task_tracker.h" 18 #include "base/task/cancelable_task_tracker.h"
18 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h" 19 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const FakeEntry* GetEntry(const base::FilePath& entry_path) const; 80 const FakeEntry* GetEntry(const base::FilePath& entry_path) const;
80 81
81 // ProvidedFileSystemInterface overrides. 82 // ProvidedFileSystemInterface overrides.
82 AbortCallback RequestUnmount( 83 AbortCallback RequestUnmount(
83 const storage::AsyncFileUtil::StatusCallback& callback) override; 84 const storage::AsyncFileUtil::StatusCallback& callback) override;
84 AbortCallback GetMetadata( 85 AbortCallback GetMetadata(
85 const base::FilePath& entry_path, 86 const base::FilePath& entry_path,
86 ProvidedFileSystemInterface::MetadataFieldMask fields, 87 ProvidedFileSystemInterface::MetadataFieldMask fields,
87 const ProvidedFileSystemInterface::GetMetadataCallback& callback) 88 const ProvidedFileSystemInterface::GetMetadataCallback& callback)
88 override; 89 override;
89 AbortCallback GetActions(const base::FilePath& entry_path, 90 AbortCallback GetActions(const std::set<base::FilePath>& entry_paths,
90 const GetActionsCallback& callback) override; 91 const GetActionsCallback& callback) override;
91 AbortCallback ExecuteAction( 92 AbortCallback ExecuteAction(
92 const base::FilePath& entry_path, 93 const std::set<base::FilePath>& entry_paths,
93 const std::string& action_id, 94 const std::string& action_id,
94 const storage::AsyncFileUtil::StatusCallback& callback) override; 95 const storage::AsyncFileUtil::StatusCallback& callback) override;
95 AbortCallback ReadDirectory( 96 AbortCallback ReadDirectory(
96 const base::FilePath& directory_path, 97 const base::FilePath& directory_path,
97 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) override; 98 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) override;
98 AbortCallback OpenFile(const base::FilePath& file_path, 99 AbortCallback OpenFile(const base::FilePath& file_path,
99 OpenFileMode mode, 100 OpenFileMode mode,
100 const OpenFileCallback& callback) override; 101 const OpenFileCallback& callback) override;
101 AbortCallback CloseFile( 102 AbortCallback CloseFile(
102 int file_handle, 103 int file_handle,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 Watchers watchers_; 196 Watchers watchers_;
196 197
197 base::WeakPtrFactory<FakeProvidedFileSystem> weak_ptr_factory_; 198 base::WeakPtrFactory<FakeProvidedFileSystem> weak_ptr_factory_;
198 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); 199 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem);
199 }; 200 };
200 201
201 } // namespace file_system_provider 202 } // namespace file_system_provider
202 } // namespace chromeos 203 } // namespace chromeos
203 204
204 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_ 205 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698