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

Side by Side Diff: content/browser/devtools/protocol/system_info_handler.h

Issue 2590293003: [DevTools] Rework DevToolsSession interaction with domain handlers. (Closed)
Patch Set: includes Created 3 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 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_
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/storage_handler.cc ('k') | content/browser/devtools/protocol/system_info_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698