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

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

Issue 2401963002: Remount all removable storage devices upon policy update (Closed)
Patch Set: User ASSERT_EQ to avoid test crash. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/volume_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 chromeos::file_system_provider::MountContext context, 294 chromeos::file_system_provider::MountContext context,
295 base::File::Error error) override; 295 base::File::Error error) override;
296 void OnProvidedFileSystemUnmount( 296 void OnProvidedFileSystemUnmount(
297 const chromeos::file_system_provider::ProvidedFileSystemInfo& 297 const chromeos::file_system_provider::ProvidedFileSystemInfo&
298 file_system_info, 298 file_system_info,
299 base::File::Error error) override; 299 base::File::Error error) override;
300 300
301 // Called on change to kExternalStorageDisabled pref. 301 // Called on change to kExternalStorageDisabled pref.
302 void OnExternalStorageDisabledChanged(); 302 void OnExternalStorageDisabledChanged();
303 303
304 // Called on change to kExternalStorageReadOnly pref.
305 void OnExternalStorageReadOnlyChanged();
306
304 // RemovableStorageObserver overrides. 307 // RemovableStorageObserver overrides.
305 void OnRemovableStorageAttached( 308 void OnRemovableStorageAttached(
306 const storage_monitor::StorageInfo& info) override; 309 const storage_monitor::StorageInfo& info) override;
307 void OnRemovableStorageDetached( 310 void OnRemovableStorageDetached(
308 const storage_monitor::StorageInfo& info) override; 311 const storage_monitor::StorageInfo& info) override;
309 312
310 SnapshotManager* snapshot_manager() { return snapshot_manager_.get(); } 313 SnapshotManager* snapshot_manager() { return snapshot_manager_.get(); }
311 314
312 private: 315 private:
313 void OnDiskMountManagerRefreshed(bool success); 316 void OnDiskMountManagerRefreshed(bool success);
(...skipping 18 matching lines...) Expand all
332 335
333 // Note: This should remain the last member so it'll be destroyed and 336 // Note: This should remain the last member so it'll be destroyed and
334 // invalidate its weak pointers before any other members are destroyed. 337 // invalidate its weak pointers before any other members are destroyed.
335 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_; 338 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_;
336 DISALLOW_COPY_AND_ASSIGN(VolumeManager); 339 DISALLOW_COPY_AND_ASSIGN(VolumeManager);
337 }; 340 };
338 341
339 } // namespace file_manager 342 } // namespace file_manager
340 343
341 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ 344 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/volume_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698