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

Side by Side Diff: extensions/shell/browser/shell_device_client.h

Issue 523743005: Fix HidService lifetime issues (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: where did that stupid line come from 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
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 EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
7 7
8 #include "device/core/device_client.h" 8 #include "device/core/device_client.h"
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 // Implementation of device::DeviceClient that returns //device API service 15 // Implementation of device::DeviceClient that returns //device API service
16 // singletons appropriate for use within app shell. 16 // singletons appropriate for use within app shell.
17 class ShellDeviceClient : device::DeviceClient { 17 class ShellDeviceClient : device::DeviceClient {
18 public: 18 public:
19 ShellDeviceClient(); 19 ShellDeviceClient();
20 virtual ~ShellDeviceClient(); 20 virtual ~ShellDeviceClient();
21 21
22 // device::DeviceClient implementation 22 // device::DeviceClient implementation
23 virtual device::UsbService* GetUsbService() OVERRIDE; 23 virtual device::UsbService* GetUsbService() OVERRIDE;
24 virtual device::HidService* GetHidService() OVERRIDE;
24 25
25 private: 26 private:
26 DISALLOW_COPY_AND_ASSIGN(ShellDeviceClient); 27 DISALLOW_COPY_AND_ASSIGN(ShellDeviceClient);
27 }; 28 };
28 29
29 } 30 }
30 31
31 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_ 32 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/api/shell_extensions_api_client.cc ('k') | extensions/shell/browser/shell_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698