OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/keyed_service/core/dependency_graph.h" | 5 #include "components/keyed_service/core/dependency_graph.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <deque> | 10 #include <deque> |
9 #include <iterator> | 11 #include <iterator> |
10 | 12 |
11 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
12 | 14 |
13 namespace { | 15 namespace { |
14 | 16 |
15 // Escapes |id| to be a valid ID in the DOT format [1]. This is implemented as | 17 // Escapes |id| to be a valid ID in the DOT format [1]. This is implemented as |
16 // enclosing the string in quotation marks, and escaping any quotation marks | 18 // enclosing the string in quotation marks, and escaping any quotation marks |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 179 } |
178 | 180 |
179 result.append("\n /* Toplevel node */\n"); | 181 result.append("\n /* Toplevel node */\n"); |
180 result.append(" "); | 182 result.append(" "); |
181 result.append(escaped_toplevel_name); | 183 result.append(escaped_toplevel_name); |
182 result.append(" [shape=box];\n"); | 184 result.append(" [shape=box];\n"); |
183 | 185 |
184 result.append("}\n"); | 186 result.append("}\n"); |
185 return result; | 187 return result; |
186 } | 188 } |
OLD | NEW |