| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_DEVTOOLS_DISCOVERY_DEVTOOLS_TARGET_DESCRIPTOR_H_ | |
| 6 #define COMPONENTS_DEVTOOLS_DISCOVERY_DEVTOOLS_TARGET_DESCRIPTOR_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/memory/ref_counted.h" | |
| 12 #include "base/time/time.h" | |
| 13 #include "url/gurl.h" | |
| 14 | |
| 15 namespace content { | |
| 16 class DevToolsAgentHost; | |
| 17 } | |
| 18 | |
| 19 namespace devtools_discovery { | |
| 20 | |
| 21 // DevToolsTargetDescriptor provides information about devtools target | |
| 22 // and can be used to manipulate the target and query its details. | |
| 23 // Instantiation and discovery of DevToolsTargetDescriptor instances | |
| 24 // is the responsibility of DevToolsDiscoveryManager. | |
| 25 class DevToolsTargetDescriptor { | |
| 26 public: | |
| 27 using List = std::vector<DevToolsTargetDescriptor*>; | |
| 28 virtual ~DevToolsTargetDescriptor() {} | |
| 29 | |
| 30 // Returns the agent host for this target. | |
| 31 virtual scoped_refptr<content::DevToolsAgentHost> GetAgentHost() const = 0; | |
| 32 }; | |
| 33 | |
| 34 } // namespace devtools_discovery | |
| 35 | |
| 36 #endif // COMPONENTS_DEVTOOLS_DISCOVERY_DEVTOOLS_TARGET_DESCRIPTOR_H_ | |
| OLD | NEW |