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

Side by Side Diff: ui/events/ozone/device/device_manager_manual.h

Issue 853073003: Fix assertion starting cast_shell (breaking thread IO restrictions). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace fixes plus task is not slow Created 5 years, 11 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 UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ 5 #ifndef UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_
6 #define UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ 6 #define UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_
7 7
8 #include <vector>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/observer_list.h"
9 #include "ui/events/ozone/device/device_manager.h" 12 #include "ui/events/ozone/device/device_manager.h"
10 13
14 namespace base {
15 class FilePath;
16 }
17
11 namespace ui { 18 namespace ui {
12 19
13 class DeviceManagerManual : public DeviceManager { 20 class DeviceManagerManual : public DeviceManager {
14 public: 21 public:
15 DeviceManagerManual(); 22 DeviceManagerManual();
16 ~DeviceManagerManual() override; 23 ~DeviceManagerManual() override;
17 24
18 private: 25 private:
19 // DeviceManager overrides: 26 // DeviceManager overrides:
20 void ScanDevices(DeviceEventObserver* observer) override; 27 void ScanDevices(DeviceEventObserver* observer) override;
21 void AddObserver(DeviceEventObserver* observer) override; 28 void AddObserver(DeviceEventObserver* observer) override;
22 void RemoveObserver(DeviceEventObserver* observer) override; 29 void RemoveObserver(DeviceEventObserver* observer) override;
23 30
31 void OnDevicesScanned(std::vector<base::FilePath>* result);
32
33 bool have_scanned_devices_;
34 std::vector<base::FilePath> devices_;
35 ObserverList<DeviceEventObserver> observers_;
36
37 base::WeakPtrFactory<DeviceManagerManual> weak_ptr_factory_;
38
24 DISALLOW_COPY_AND_ASSIGN(DeviceManagerManual); 39 DISALLOW_COPY_AND_ASSIGN(DeviceManagerManual);
25 }; 40 };
26 41
27 } // namespace ui 42 } // namespace ui
28 43
29 #endif // UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ 44 #endif // UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698