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

Side by Side Diff: chrome/browser/chromeos/file_manager/volume_manager.h

Issue 1215533003: Add a refresh button for providers which do not support watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MANAGER_VOLUME_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 MountContext mount_context() const { return mount_context_; } 113 MountContext mount_context() const { return mount_context_; }
114 const base::FilePath& system_path_prefix() const { 114 const base::FilePath& system_path_prefix() const {
115 return system_path_prefix_; 115 return system_path_prefix_;
116 } 116 }
117 const std::string& volume_label() const { return volume_label_; } 117 const std::string& volume_label() const { return volume_label_; }
118 bool is_parent() const { return is_parent_; } 118 bool is_parent() const { return is_parent_; }
119 bool is_read_only() const { return is_read_only_; } 119 bool is_read_only() const { return is_read_only_; }
120 bool has_media() const { return has_media_; } 120 bool has_media() const { return has_media_; }
121 bool configurable() const { return configurable_; } 121 bool configurable() const { return configurable_; }
122 bool watchable() const { return watchable_; }
122 123
123 private: 124 private:
124 Volume(); 125 Volume();
125 126
126 // The ID of the volume. 127 // The ID of the volume.
127 std::string volume_id_; 128 std::string volume_id_;
128 129
129 // The ID for provided file systems. If other type, then empty string. Unique 130 // The ID for provided file systems. If other type, then empty string. Unique
130 // per providing extension. 131 // per providing extension.
131 std::string file_system_id_; 132 std::string file_system_id_;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 177
177 // True if the volume is read only. 178 // True if the volume is read only.
178 bool is_read_only_; 179 bool is_read_only_;
179 180
180 // True if the volume contains media. 181 // True if the volume contains media.
181 bool has_media_; 182 bool has_media_;
182 183
183 // True if the volume is configurable. 184 // True if the volume is configurable.
184 bool configurable_; 185 bool configurable_;
185 186
187 // True if the volume notifies about changes via file/directory watchers.
188 bool watchable_;
189
186 DISALLOW_COPY_AND_ASSIGN(Volume); 190 DISALLOW_COPY_AND_ASSIGN(Volume);
187 }; 191 };
188 192
189 // Manages "Volume"s for file manager. Here are "Volume"s. 193 // Manages "Volume"s for file manager. Here are "Volume"s.
190 // - Drive File System (not yet supported). 194 // - Drive File System (not yet supported).
191 // - Downloads directory. 195 // - Downloads directory.
192 // - Removable disks (volume will be created for each partition, not only one 196 // - Removable disks (volume will be created for each partition, not only one
193 // for a device). 197 // for a device).
194 // - Mounted zip archives. 198 // - Mounted zip archives.
195 class VolumeManager : public KeyedService, 199 class VolumeManager : public KeyedService,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 315
312 // Note: This should remain the last member so it'll be destroyed and 316 // Note: This should remain the last member so it'll be destroyed and
313 // invalidate its weak pointers before any other members are destroyed. 317 // invalidate its weak pointers before any other members are destroyed.
314 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_; 318 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_;
315 DISALLOW_COPY_AND_ASSIGN(VolumeManager); 319 DISALLOW_COPY_AND_ASSIGN(VolumeManager);
316 }; 320 };
317 321
318 } // namespace file_manager 322 } // namespace file_manager
319 323
320 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ 324 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698