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

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

Issue 663713002: [fsp] Extract ObservedEntry and ObservedEntries to a separate file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Added missing files. 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_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 // ProvidedFileSystemInterface::Observer overrides. 132 // ProvidedFileSystemInterface::Observer overrides.
133 virtual void OnObservedEntryChanged( 133 virtual void OnObservedEntryChanged(
134 const ProvidedFileSystemInfo& file_system_info, 134 const ProvidedFileSystemInfo& file_system_info,
135 const base::FilePath& observed_path, 135 const base::FilePath& observed_path,
136 ProvidedFileSystemObserver::ChangeType change_type, 136 ProvidedFileSystemObserver::ChangeType change_type,
137 const ProvidedFileSystemObserver::ChildChanges& child_changes, 137 const ProvidedFileSystemObserver::ChildChanges& child_changes,
138 const base::Closure& callback) override; 138 const base::Closure& callback) override;
139 virtual void OnObservedEntryTagUpdated( 139 virtual void OnObservedEntryTagUpdated(
140 const ProvidedFileSystemInfo& file_system_info, 140 const ProvidedFileSystemInfo& file_system_info,
141 const base::FilePath& observed_path) override; 141 const base::FilePath& observed_path,
142 const std::string& tag) override;
142 virtual void OnObservedEntryListChanged( 143 virtual void OnObservedEntryListChanged(
143 const ProvidedFileSystemInfo& file_system_info) override; 144 const ProvidedFileSystemInfo& file_system_info,
145 const ObservedEntries& observed_entries) override;
144 146
145 private: 147 private:
146 // Key is a pair of an extension id and file system id, which makes it 148 // Key is a pair of an extension id and file system id, which makes it
147 // unique among the entire service instance. 149 // unique among the entire service instance.
148 typedef std::pair<std::string, std::string> FileSystemKey; 150 typedef std::pair<std::string, std::string> FileSystemKey;
149 151
150 typedef std::map<FileSystemKey, ProvidedFileSystemInterface*> 152 typedef std::map<FileSystemKey, ProvidedFileSystemInterface*>
151 ProvidedFileSystemMap; 153 ProvidedFileSystemMap;
152 typedef std::map<std::string, FileSystemKey> MountPointNameToKeyMap; 154 typedef std::map<std::string, FileSystemKey> MountPointNameToKeyMap;
153 155
(...skipping 24 matching lines...) Expand all
178 base::ThreadChecker thread_checker_; 180 base::ThreadChecker thread_checker_;
179 base::WeakPtrFactory<Service> weak_ptr_factory_; 181 base::WeakPtrFactory<Service> weak_ptr_factory_;
180 182
181 DISALLOW_COPY_AND_ASSIGN(Service); 183 DISALLOW_COPY_AND_ASSIGN(Service);
182 }; 184 };
183 185
184 } // namespace file_system_provider 186 } // namespace file_system_provider
185 } // namespace chromeos 187 } // namespace chromeos
186 188
187 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ 189 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698