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

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

Issue 490643005: Files.app: Start to use DeviceEventRouter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 4 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 | Annotate | Revision Log
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_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chromeos/dbus/cros_disks_client.h" 10 #include "chromeos/dbus/cros_disks_client.h"
(...skipping 24 matching lines...) Expand all
35 35
36 // Fired when a volume is mounted. 36 // Fired when a volume is mounted.
37 virtual void OnVolumeMounted(chromeos::MountError error_code, 37 virtual void OnVolumeMounted(chromeos::MountError error_code,
38 const VolumeInfo& volume_info, 38 const VolumeInfo& volume_info,
39 bool is_remounting) = 0; 39 bool is_remounting) = 0;
40 40
41 // Fired when a volume is unmounted. 41 // Fired when a volume is unmounted.
42 virtual void OnVolumeUnmounted(chromeos::MountError error_code, 42 virtual void OnVolumeUnmounted(chromeos::MountError error_code,
43 const VolumeInfo& volume_info) = 0; 43 const VolumeInfo& volume_info) = 0;
44 44
45 // Fired when a device is hard unplugged.
46 virtual void OnHardUnplugged(const std::string& device_path) = 0;
47
48 // Fired when formatting a device is started (or failed to start). 45 // Fired when formatting a device is started (or failed to start).
49 virtual void OnFormatStarted( 46 virtual void OnFormatStarted(
50 const std::string& device_path, bool success) = 0; 47 const std::string& device_path, bool success) = 0;
51 48
52 // Fired when formatting a device is completed (or terminated on error). 49 // Fired when formatting a device is completed (or terminated on error).
53 virtual void OnFormatCompleted( 50 virtual void OnFormatCompleted(
54 const std::string& device_path, bool success) = 0; 51 const std::string& device_path, bool success) = 0;
55 }; 52 };
56 53
57 } // namespace file_manager 54 } // namespace file_manager
58 55
59 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_H_ 56 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698