OLD | NEW |
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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SYSTEM_INFO_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SYSTEM_INFO_HANDLER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SYSTEM_INFO_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SYSTEM_INFO_HANDLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "content/browser/devtools/protocol/devtools_domain_handler.h" |
11 #include "content/browser/devtools/protocol/system_info.h" | 12 #include "content/browser/devtools/protocol/system_info.h" |
12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
13 #include "content/public/browser/gpu_data_manager_observer.h" | 14 #include "content/public/browser/gpu_data_manager_observer.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 namespace protocol { | 17 namespace protocol { |
17 | 18 |
18 class SystemInfoHandler : public SystemInfo::Backend { | 19 class SystemInfoHandler : public DevToolsDomainHandler, |
| 20 public SystemInfo::Backend { |
19 public: | 21 public: |
20 | 22 |
21 SystemInfoHandler(); | 23 SystemInfoHandler(); |
22 ~SystemInfoHandler() override; | 24 ~SystemInfoHandler() override; |
23 | 25 |
24 void Wire(UberDispatcher*); | 26 void Wire(UberDispatcher* dispatcher) override; |
25 Response Disable() override; | |
26 | 27 |
27 void GetInfo(std::unique_ptr<GetInfoCallback> callback) override; | 28 void GetInfo(std::unique_ptr<GetInfoCallback> callback) override; |
28 | 29 |
29 private: | 30 private: |
30 friend class SystemInfoHandlerGpuObserver; | 31 friend class SystemInfoHandlerGpuObserver; |
31 | 32 |
32 DISALLOW_COPY_AND_ASSIGN(SystemInfoHandler); | 33 DISALLOW_COPY_AND_ASSIGN(SystemInfoHandler); |
33 }; | 34 }; |
34 | 35 |
35 } // namespace protocol | 36 } // namespace protocol |
36 } // namespace content | 37 } // namespace content |
37 | 38 |
38 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SYSTEM_INFO_HANDLER_H_ | 39 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SYSTEM_INFO_HANDLER_H_ |
OLD | NEW |