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

Side by Side Diff: chrome/browser/devtools/serialize_host_descriptions.h

Issue 2825533002: Introduce SerializeDictionaryForest for devtools_target_ui (Closed)
Patch Set: non-pre-ordered test and out params Created 3 years, 8 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
(Empty)
1 // Copyright 2017 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 CHROME_BROWSER_DEVTOOLS_SERIALIZE_HOST_DESCRIPTIONS_H_
6 #define CHROME_BROWSER_DEVTOOLS_SERIALIZE_HOST_DESCRIPTIONS_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/strings/string_piece.h"
12 #include "base/values.h"
13
14 // DevToolsAgentHost description to be serialized by SerializeHostDescriptions.
15 struct HostDescriptionNode {
16 std::string name;
17 std::string parent_name;
18 base::DictionaryValue representation;
19 };
20
21 // A helper function taking a HostDescriptionNode representation of hosts and
22 // producing a ListValue representation. The representation contains a list of
23 // DictionaryValue for each rooti host, and has DictionaryValues of children
24 // injected into a ListValue keyed |child_key| in the parent's DictionaryValue.
25 base::ListValue SerializeHostDescriptions(
26 std::vector<HostDescriptionNode> hosts,
27 base::StringPiece child_key);
28
29 #endif // CHROME_BROWSER_DEVTOOLS_SERIALIZE_HOST_DESCRIPTIONS_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_targets_ui.cc ('k') | chrome/browser/devtools/serialize_host_descriptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698