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

Side by Side Diff: content/public/browser/devtools_target.h

Issue 305903004: DevTools: Add parent id to target descriptor in remote debugging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698