OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PUBLIC_BROWSER_DEVTOOLS_TARGET_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_TARGET_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_TARGET_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_TARGET_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // manipulate the target and query its details. | 21 // manipulate the target and query its details. |
22 // Instantiation and discovery of DevToolsTarget instances is the responsibility | 22 // Instantiation and discovery of DevToolsTarget instances is the responsibility |
23 // of DevToolsHttpHandlerDelegate. | 23 // of DevToolsHttpHandlerDelegate. |
24 class DevToolsTarget { | 24 class DevToolsTarget { |
25 public: | 25 public: |
26 virtual ~DevToolsTarget() {} | 26 virtual ~DevToolsTarget() {} |
27 | 27 |
28 // Returns the unique target id. | 28 // Returns the unique target id. |
29 virtual std::string GetId() const = 0; | 29 virtual std::string GetId() const = 0; |
30 | 30 |
| 31 // Returns the id of the parent target, or empty string if no parent. |
| 32 virtual std::string GetParentId() const = 0; |
| 33 |
31 // Returns the target type. | 34 // Returns the target type. |
32 virtual std::string GetType() const = 0; | 35 virtual std::string GetType() const = 0; |
33 | 36 |
34 // Returns the target title. | 37 // Returns the target title. |
35 virtual std::string GetTitle() const = 0; | 38 virtual std::string GetTitle() const = 0; |
36 | 39 |
37 // Returns the target description. | 40 // Returns the target description. |
38 virtual std::string GetDescription() const = 0; | 41 virtual std::string GetDescription() const = 0; |
39 | 42 |
40 // Returns the url associated with this target. | 43 // Returns the url associated with this target. |
(...skipping 14 matching lines...) Expand all Loading... |
55 // Activates the target. Returns false if the operation failed. | 58 // Activates the target. Returns false if the operation failed. |
56 virtual bool Activate() const = 0; | 59 virtual bool Activate() const = 0; |
57 | 60 |
58 // Closes the target. Returns false if the operation failed. | 61 // Closes the target. Returns false if the operation failed. |
59 virtual bool Close() const = 0; | 62 virtual bool Close() const = 0; |
60 }; | 63 }; |
61 | 64 |
62 } // namespace content | 65 } // namespace content |
63 | 66 |
64 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_TARGET_H_ | 67 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_TARGET_H_ |
OLD | NEW |