Chromium Code Reviews| Index: chrome/browser/chromeos/file_system_provider/observed_entry.h |
| diff --git a/chrome/browser/chromeos/file_system_provider/observed_entry.h b/chrome/browser/chromeos/file_system_provider/observed_entry.h |
| index c42f3d7312f991a996002702b2083b925793c6d6..fb2097de187c364e3a2509ecc38298d884f202fe 100644 |
| --- a/chrome/browser/chromeos/file_system_provider/observed_entry.h |
| +++ b/chrome/browser/chromeos/file_system_provider/observed_entry.h |
| @@ -15,8 +15,22 @@ namespace file_system_provider { |
| struct ObservedEntry; |
| +// Key for storing an observed entry in the map. |
|
hirono
2014/10/24 06:58:43
Could you add a comment saying that we can have tw
mtomasz
2014/10/24 09:50:24
Done.
|
| +struct ObservedEntryKey { |
| + ObservedEntryKey(const base::FilePath& entry_path, bool recursive); |
| + ~ObservedEntryKey(); |
| + |
| + struct Comparator { |
| + bool operator()(const ObservedEntryKey& a, const ObservedEntryKey& b) const; |
| + }; |
| + |
| + base::FilePath entry_path; |
| + bool recursive; |
| +}; |
| + |
| // List of observed entries. |
| -typedef std::map<base::FilePath, ObservedEntry> ObservedEntries; |
| +typedef std::map<ObservedEntryKey, ObservedEntry, ObservedEntryKey::Comparator> |
| + ObservedEntries; |
| // Represents an observed entry on a file system. |
| struct ObservedEntry { |