| 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; |
| 27 void SetRenderFrameHost(RenderFrameHostImpl* host) override; |
| 25 Response Disable() override; | 28 Response Disable() override; |
| 26 | 29 |
| 27 void GetInfo(std::unique_ptr<GetInfoCallback> callback) override; | 30 void GetInfo(std::unique_ptr<GetInfoCallback> callback) override; |
| 28 | 31 |
| 29 private: | 32 private: |
| 30 friend class SystemInfoHandlerGpuObserver; | 33 friend class SystemInfoHandlerGpuObserver; |
| 31 | 34 |
| 32 DISALLOW_COPY_AND_ASSIGN(SystemInfoHandler); | 35 DISALLOW_COPY_AND_ASSIGN(SystemInfoHandler); |
| 33 }; | 36 }; |
| 34 | 37 |
| 35 } // namespace protocol | 38 } // namespace protocol |
| 36 } // namespace content | 39 } // namespace content |
| 37 | 40 |
| 38 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SYSTEM_INFO_HANDLER_H_ | 41 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SYSTEM_INFO_HANDLER_H_ |
| OLD | NEW |