Infobar material design refresh: bg color
[chromium-blink-merge.git] / sandbox / linux / bpf_dsl / dump_bpf.h
bloba7db58981bf9a1363f3b842a839ba5a7f20fcef8
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
3 // found in the LICENSE file.
5 #include <string>
7 #include "sandbox/linux/bpf_dsl/codegen.h"
8 #include "sandbox/sandbox_export.h"
10 namespace sandbox {
11 namespace bpf_dsl {
13 class SANDBOX_EXPORT DumpBPF {
14 public:
15 // PrintProgram writes |program| in a human-readable format to stderr.
16 static void PrintProgram(const CodeGen::Program& program);
18 // StringPrintProgram writes |program| in a human-readable format to
19 // a std::string.
20 static std::string StringPrintProgram(const CodeGen::Program& program);
23 } // namespace bpf_dsl
24 } // namespace sandbox