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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_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 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_PROVIDED_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 Watchers* GetWatchers() override; 156 Watchers* GetWatchers() override;
157 const OpenedFiles& GetOpenedFiles() const override; 157 const OpenedFiles& GetOpenedFiles() const override;
158 void AddObserver(ProvidedFileSystemObserver* observer) override; 158 void AddObserver(ProvidedFileSystemObserver* observer) override;
159 void RemoveObserver(ProvidedFileSystemObserver* observer) override; 159 void RemoveObserver(ProvidedFileSystemObserver* observer) override;
160 void Notify(const base::FilePath& entry_path, 160 void Notify(const base::FilePath& entry_path,
161 bool recursive, 161 bool recursive,
162 storage::WatcherManager::ChangeType change_type, 162 storage::WatcherManager::ChangeType change_type,
163 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, 163 scoped_ptr<ProvidedFileSystemObserver::Changes> changes,
164 const std::string& tag, 164 const std::string& tag,
165 const storage::AsyncFileUtil::StatusCallback& callback) override; 165 const storage::AsyncFileUtil::StatusCallback& callback) override;
166 void Configure(
167 const storage::AsyncFileUtil::StatusCallback& callback) override;
166 base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override; 168 base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override;
167 169
168 private: 170 private:
169 // Wrapper for arguments for AddWatcherInQueue, as it's too many of them to 171 // Wrapper for arguments for AddWatcherInQueue, as it's too many of them to
170 // be used by base::Bind. 172 // be used by base::Bind.
171 struct AddWatcherInQueueArgs; 173 struct AddWatcherInQueueArgs;
172 174
173 // Wrapper for arguments for NotifyInQueue, as it's too many of them to be 175 // Wrapper for arguments for NotifyInQueue, as it's too many of them to be
174 // used by base::Bind. 176 // used by base::Bind.
175 struct NotifyInQueueArgs; 177 struct NotifyInQueueArgs;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 ObserverList<ProvidedFileSystemObserver> observers_; 243 ObserverList<ProvidedFileSystemObserver> observers_;
242 244
243 base::WeakPtrFactory<ProvidedFileSystem> weak_ptr_factory_; 245 base::WeakPtrFactory<ProvidedFileSystem> weak_ptr_factory_;
244 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); 246 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem);
245 }; 247 };
246 248
247 } // namespace file_system_provider 249 } // namespace file_system_provider
248 } // namespace chromeos 250 } // namespace chromeos
249 251
250 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ 252 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698