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

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

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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 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 24 matching lines...) Expand all
35 // |so that the tasks are executed by RunLoop::RunUntilIdle. 35 // |so that the tasks are executed by RunLoop::RunUntilIdle.
36 explicit DeviceEventRouter(base::TimeDelta overriding_time_delta); 36 explicit DeviceEventRouter(base::TimeDelta overriding_time_delta);
37 37
38 virtual ~DeviceEventRouter(); 38 virtual ~DeviceEventRouter();
39 39
40 // Turns the startup flag on, and then turns it off after few seconds. 40 // Turns the startup flag on, and then turns it off after few seconds.
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) OVERRIDE; 51 const VolumeInfo& volume_info) override;
52 virtual void OnVolumeUnmounted(chromeos::MountError error_code, 52 virtual void OnVolumeUnmounted(chromeos::MountError error_code,
53 const VolumeInfo& volume_info) OVERRIDE; 53 const VolumeInfo& volume_info) override;
54 virtual void OnFormatStarted(const std::string& device_path, 54 virtual void OnFormatStarted(const std::string& device_path,
55 bool success) OVERRIDE; 55 bool success) override;
56 virtual void OnFormatCompleted(const std::string& device_path, 56 virtual void OnFormatCompleted(const std::string& device_path,
57 bool success) OVERRIDE; 57 bool success) override;
58 58
59 // PowerManagerClient::Observer overrides. 59 // PowerManagerClient::Observer overrides.
60 virtual void SuspendImminent() OVERRIDE; 60 virtual void SuspendImminent() override;
61 virtual void SuspendDone(const base::TimeDelta& sleep_duration) OVERRIDE; 61 virtual void SuspendDone(const base::TimeDelta& sleep_duration) override;
62 62
63 bool is_resuming() const { return is_resuming_; } 63 bool is_resuming() const { return is_resuming_; }
64 bool is_starting_up() const { return is_starting_up_; } 64 bool is_starting_up() const { return is_starting_up_; }
65 65
66 protected: 66 protected:
67 // Handles a device event containing |type| and |device_path|. 67 // Handles a device event containing |type| and |device_path|.
68 virtual void OnDeviceEvent( 68 virtual void OnDeviceEvent(
69 extensions::api::file_manager_private::DeviceEventType type, 69 extensions::api::file_manager_private::DeviceEventType type,
70 const std::string& device_path) = 0; 70 const std::string& device_path) = 0;
71 // Returns external storage is disabled or not. 71 // Returns external storage is disabled or not.
(...skipping 27 matching lines...) Expand all
99 base::ThreadChecker thread_checker_; 99 base::ThreadChecker thread_checker_;
100 100
101 // Note: This should remain the last member so it'll be destroyed and 101 // Note: This should remain the last member so it'll be destroyed and
102 // invalidate the weak pointers before any other members are destroyed. 102 // invalidate the weak pointers before any other members are destroyed.
103 base::WeakPtrFactory<DeviceEventRouter> weak_factory_; 103 base::WeakPtrFactory<DeviceEventRouter> weak_factory_;
104 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter); 104 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter);
105 }; 105 };
106 } // namespace file_manager 106 } // namespace file_manager
107 107
108 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H _ 108 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698