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

Side by Side Diff: sandbox/linux/bpf_dsl/bpf_dsl_forward.h

Issue 2554863002: Cleanup remaining class/struct fwd declarations (Closed)
Patch Set: Style fixes Created 4 years 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
« no previous file with comments | « sandbox/linux/bpf_dsl/bpf_dsl.h ('k') | sandbox/linux/bpf_dsl/bpf_dsl_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef SANDBOX_LINUX_BPF_DSL_BPF_DSL_FORWARD_H_ 5 #ifndef SANDBOX_LINUX_BPF_DSL_BPF_DSL_FORWARD_H_
6 #define SANDBOX_LINUX_BPF_DSL_BPF_DSL_FORWARD_H_ 6 #define SANDBOX_LINUX_BPF_DSL_BPF_DSL_FORWARD_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "sandbox/sandbox_export.h" 10 #include "sandbox/sandbox_export.h"
11 11
12 namespace sandbox { 12 namespace sandbox {
13 namespace bpf_dsl { 13 namespace bpf_dsl {
14 14
15 // The bpf_dsl_forward.h header provides forward declarations for the 15 // The bpf_dsl_forward.h header provides forward declarations for the
16 // types defined in bpf_dsl.h. It's intended for use in user headers 16 // types defined in bpf_dsl.h. It's intended for use in user headers
17 // that need to reference bpf_dsl types, but don't require definitions. 17 // that need to reference bpf_dsl types, but don't require definitions.
18 18
19 namespace internal { 19 namespace internal {
20 class ResultExprImpl; 20 class ResultExprImpl;
21 class BoolExprImpl; 21 class BoolExprImpl;
22 } 22 }
23 23
24 using ResultExpr = std::shared_ptr<const internal::ResultExprImpl>; 24 using ResultExpr = std::shared_ptr<const internal::ResultExprImpl>;
25 using BoolExpr = std::shared_ptr<const internal::BoolExprImpl>; 25 using BoolExpr = std::shared_ptr<const internal::BoolExprImpl>;
26 26
27 template <typename T>
28 class Arg;
29
30 class Elser;
31
32 template <typename T>
33 class Caser;
34
35 } // namespace bpf_dsl 27 } // namespace bpf_dsl
36 } // namespace sandbox 28 } // namespace sandbox
37 29
38 namespace std { 30 namespace std {
39 extern template class SANDBOX_EXPORT 31 extern template class SANDBOX_EXPORT
40 shared_ptr<const sandbox::bpf_dsl::internal::BoolExprImpl>; 32 shared_ptr<const sandbox::bpf_dsl::internal::BoolExprImpl>;
41 extern template class SANDBOX_EXPORT 33 extern template class SANDBOX_EXPORT
42 shared_ptr<const sandbox::bpf_dsl::internal::ResultExprImpl>; 34 shared_ptr<const sandbox::bpf_dsl::internal::ResultExprImpl>;
43 } // namespace std 35 } // namespace std
44 36
45 #endif // SANDBOX_LINUX_BPF_DSL_BPF_DSL_FORWARD_H_ 37 #endif // SANDBOX_LINUX_BPF_DSL_BPF_DSL_FORWARD_H_
OLDNEW
« no previous file with comments | « sandbox/linux/bpf_dsl/bpf_dsl.h ('k') | sandbox/linux/bpf_dsl/bpf_dsl_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698