| Index: components/devtools_discovery/devtools_target_descriptor.h
|
| diff --git a/components/devtools_discovery/devtools_target_descriptor.h b/components/devtools_discovery/devtools_target_descriptor.h
|
| index 482c07859eced7847cbc0dd46e02653f6bf37472..d7446319910b1361959ca552d5e246fc4498306a 100644
|
| --- a/components/devtools_discovery/devtools_target_descriptor.h
|
| +++ b/components/devtools_discovery/devtools_target_descriptor.h
|
| @@ -27,8 +27,41 @@
|
| using List = std::vector<DevToolsTargetDescriptor*>;
|
| virtual ~DevToolsTargetDescriptor() {}
|
|
|
| + // Returns the unique target id.
|
| + virtual std::string GetId() const = 0;
|
| +
|
| + // Returns the id of the parent target, or empty string if no parent.
|
| + virtual std::string GetParentId() const = 0;
|
| +
|
| + // Returns the target type.
|
| + virtual std::string GetType() const = 0;
|
| +
|
| + // Returns the target title.
|
| + virtual std::string GetTitle() const = 0;
|
| +
|
| + // Returns the target description.
|
| + virtual std::string GetDescription() const = 0;
|
| +
|
| + // Returns the url associated with this target.
|
| + virtual GURL GetURL() const = 0;
|
| +
|
| + // Returns the favicon url for this target.
|
| + virtual GURL GetFaviconURL() const = 0;
|
| +
|
| + // Returns the time when the target was last active.
|
| + virtual base::TimeTicks GetLastActivityTime() const = 0;
|
| +
|
| + // Returns true if the debugger is attached to the target.
|
| + virtual bool IsAttached() const = 0;
|
| +
|
| // Returns the agent host for this target.
|
| virtual scoped_refptr<content::DevToolsAgentHost> GetAgentHost() const = 0;
|
| +
|
| + // Activates the target. Returns false if the operation failed.
|
| + virtual bool Activate() const = 0;
|
| +
|
| + // Closes the target. Returns false if the operation failed.
|
| + virtual bool Close() const = 0;
|
| };
|
|
|
| } // namespace devtools_discovery
|
|
|