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

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

Issue 1088883002: Add events for configuring and adding new providers to FSP API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 years, 8 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 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 CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 Watchers* GetWatchers() override; 110 Watchers* GetWatchers() override;
111 const OpenedFiles& GetOpenedFiles() const override; 111 const OpenedFiles& GetOpenedFiles() const override;
112 void AddObserver(ProvidedFileSystemObserver* observer) override; 112 void AddObserver(ProvidedFileSystemObserver* observer) override;
113 void RemoveObserver(ProvidedFileSystemObserver* observer) override; 113 void RemoveObserver(ProvidedFileSystemObserver* observer) override;
114 void Notify(const base::FilePath& entry_path, 114 void Notify(const base::FilePath& entry_path,
115 bool recursive, 115 bool recursive,
116 storage::WatcherManager::ChangeType change_type, 116 storage::WatcherManager::ChangeType change_type,
117 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, 117 scoped_ptr<ProvidedFileSystemObserver::Changes> changes,
118 const std::string& tag, 118 const std::string& tag,
119 const storage::AsyncFileUtil::StatusCallback& callback) override; 119 const storage::AsyncFileUtil::StatusCallback& callback) override;
120 void Configure(
121 const storage::AsyncFileUtil::StatusCallback& callback) override;
120 base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override; 122 base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override;
121 123
122 private: 124 private:
123 // Called when an operation enqueued with |queue_token| is aborted. 125 // Called when an operation enqueued with |queue_token| is aborted.
124 void Abort(int queue_token); 126 void Abort(int queue_token);
125 127
126 // Called when opening a file is completed with either a success or an error. 128 // Called when opening a file is completed with either a success or an error.
127 void OnOpenFileCompleted(int queue_token, 129 void OnOpenFileCompleted(int queue_token,
128 const OpenFileCallback& callback, 130 const OpenFileCallback& callback,
129 int file_handle, 131 int file_handle,
(...skipping 12 matching lines...) Expand all
142 std::map<int, int> opened_files_; 144 std::map<int, int> opened_files_;
143 145
144 base::WeakPtrFactory<ThrottledFileSystem> weak_ptr_factory_; 146 base::WeakPtrFactory<ThrottledFileSystem> weak_ptr_factory_;
145 DISALLOW_COPY_AND_ASSIGN(ThrottledFileSystem); 147 DISALLOW_COPY_AND_ASSIGN(ThrottledFileSystem);
146 }; 148 };
147 149
148 } // namespace file_system_provider 150 } // namespace file_system_provider
149 } // namespace chromeos 151 } // namespace chromeos
150 152
151 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ 153 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698