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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/device_event_router.h

Issue 479563007: Files.app: Remove MountedDiskMonitor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/device_event_router.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 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_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 30 matching lines...) Expand all
41 void Startup(); 41 void Startup();
42 42
43 // VolumeManagerObserver overrides. 43 // VolumeManagerObserver overrides.
44 virtual void OnDiskAdded(const chromeos::disks::DiskMountManager::Disk& disk, 44 virtual void OnDiskAdded(const chromeos::disks::DiskMountManager::Disk& disk,
45 bool mounting) OVERRIDE; 45 bool mounting) OVERRIDE;
46 virtual void OnDiskRemoved( 46 virtual void OnDiskRemoved(
47 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE; 47 const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE;
48 virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE; 48 virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE;
49 virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE; 49 virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE;
50 virtual void OnVolumeMounted(chromeos::MountError error_code, 50 virtual void OnVolumeMounted(chromeos::MountError error_code,
51 const VolumeInfo& volume_info, 51 const VolumeInfo& volume_info) OVERRIDE;
52 bool is_remounting) OVERRIDE;
53 virtual void OnVolumeUnmounted(chromeos::MountError error_code, 52 virtual void OnVolumeUnmounted(chromeos::MountError error_code,
54 const VolumeInfo& volume_info) OVERRIDE; 53 const VolumeInfo& volume_info) OVERRIDE;
55 virtual void OnFormatStarted(const std::string& device_path, 54 virtual void OnFormatStarted(const std::string& device_path,
56 bool success) OVERRIDE; 55 bool success) OVERRIDE;
57 virtual void OnFormatCompleted(const std::string& device_path, 56 virtual void OnFormatCompleted(const std::string& device_path,
58 bool success) OVERRIDE; 57 bool success) OVERRIDE;
59 58
60 // PowerManagerClient::Observer overrides. 59 // PowerManagerClient::Observer overrides.
61 virtual void SuspendImminent() OVERRIDE; 60 virtual void SuspendImminent() OVERRIDE;
62 virtual void SuspendDone(const base::TimeDelta& sleep_duration) OVERRIDE; 61 virtual void SuspendDone(const base::TimeDelta& sleep_duration) OVERRIDE;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 base::ThreadChecker thread_checker_; 100 base::ThreadChecker thread_checker_;
102 101
103 // Note: This should remain the last member so it'll be destroyed and 102 // Note: This should remain the last member so it'll be destroyed and
104 // invalidate the weak pointers before any other members are destroyed. 103 // invalidate the weak pointers before any other members are destroyed.
105 base::WeakPtrFactory<DeviceEventRouter> weak_factory_; 104 base::WeakPtrFactory<DeviceEventRouter> weak_factory_;
106 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter); 105 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter);
107 }; 106 };
108 } // namespace file_manager 107 } // namespace file_manager
109 108
110 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H _ 109 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/device_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698