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

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

Issue 656393002: [fsp] Pass proper data to Notify(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 const base::FilePath& entry_path, 132 const base::FilePath& entry_path,
133 const storage::AsyncFileUtil::StatusCallback& callback) override; 133 const storage::AsyncFileUtil::StatusCallback& callback) override;
134 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const override; 134 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const override;
135 virtual RequestManager* GetRequestManager() override; 135 virtual RequestManager* GetRequestManager() override;
136 virtual ObservedEntries* GetObservedEntries() override; 136 virtual ObservedEntries* GetObservedEntries() override;
137 virtual void AddObserver(ProvidedFileSystemObserver* observer) override; 137 virtual void AddObserver(ProvidedFileSystemObserver* observer) override;
138 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) override; 138 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) override;
139 virtual bool Notify( 139 virtual bool Notify(
140 const base::FilePath& observed_path, 140 const base::FilePath& observed_path,
141 ProvidedFileSystemObserver::ChangeType change_type, 141 ProvidedFileSystemObserver::ChangeType change_type,
142 const ProvidedFileSystemObserver::ChildChanges& child_changes, 142 scoped_ptr<ProvidedFileSystemObserver::ChildChanges> child_changes,
143 const std::string& tag) override; 143 const std::string& tag) override;
144 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override; 144 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override;
145 145
146 // Factory callback, to be used in Service::SetFileSystemFactory(). The 146 // Factory callback, to be used in Service::SetFileSystemFactory(). The
147 // |event_router| argument can be NULL. 147 // |event_router| argument can be NULL.
148 static ProvidedFileSystemInterface* Create( 148 static ProvidedFileSystemInterface* Create(
149 Profile* profile, 149 Profile* profile,
150 const ProvidedFileSystemInfo& file_system_info); 150 const ProvidedFileSystemInfo& file_system_info);
151 151
152 private: 152 private:
(...skipping 23 matching lines...) Expand all
176 ObserverList<ProvidedFileSystemObserver> observers_; 176 ObserverList<ProvidedFileSystemObserver> observers_;
177 177
178 base::WeakPtrFactory<FakeProvidedFileSystem> weak_ptr_factory_; 178 base::WeakPtrFactory<FakeProvidedFileSystem> weak_ptr_factory_;
179 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); 179 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem);
180 }; 180 };
181 181
182 } // namespace file_system_provider 182 } // namespace file_system_provider
183 } // namespace chromeos 183 } // namespace chromeos
184 184
185 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_ 185 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698