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

Side by Side Diff: chrome/browser/chrome_device_client.h

Issue 2482463002: Remove DeviceMonitorLinux::WillDestroyCurrentMessageLoop(). (Closed)
Patch Set: CR achuithb #24 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 | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/chrome_device_client.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_CHROME_DEVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_
7 7
8 #include "device/base/device_client.h" 8 #include "device/base/device_client.h"
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/logging.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 14
15 // Implementation of device::DeviceClient that returns //device service 15 // Implementation of device::DeviceClient that returns //device service
16 // singletons appropriate for use within the Chrome application. 16 // singletons appropriate for use within the Chrome application.
17 class ChromeDeviceClient : device::DeviceClient { 17 class ChromeDeviceClient : device::DeviceClient {
18 public: 18 public:
19 ChromeDeviceClient(); 19 ChromeDeviceClient();
20 ~ChromeDeviceClient() override; 20 ~ChromeDeviceClient() override;
21 21
22 // Must be called before the destructor, when the FILE thread is still alive.
23 void Shutdown();
24
22 // device::DeviceClient implementation 25 // device::DeviceClient implementation
23 device::UsbService* GetUsbService() override; 26 device::UsbService* GetUsbService() override;
24 device::HidService* GetHidService() override; 27 device::HidService* GetHidService() override;
25 28
26 private: 29 private:
30 #if DCHECK_IS_ON()
31 bool did_shutdown_ = false;
32 #endif
33
27 std::unique_ptr<device::HidService> hid_service_; 34 std::unique_ptr<device::HidService> hid_service_;
28 std::unique_ptr<device::UsbService> usb_service_; 35 std::unique_ptr<device::UsbService> usb_service_;
29 36
30 DISALLOW_COPY_AND_ASSIGN(ChromeDeviceClient); 37 DISALLOW_COPY_AND_ASSIGN(ChromeDeviceClient);
31 }; 38 };
32 39
33 #endif // CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ 40 #endif // CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/chrome_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698