From 3f1dcd39e134d994ac88dcc4f30ec8cabcd8decf Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 28 Dec 2018 09:39:56 -0800 Subject: ART: Move dex structs into own header Separating out the structs from DexFile allows them to be forward- declared, which reduces the need to include the dex_file header. Bug: 119869270 Test: m Change-Id: I32dde5a632884bca7435cd584b4a81883de2e7b4 --- runtime/runtime_callbacks.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'runtime/runtime_callbacks.h') diff --git a/runtime/runtime_callbacks.h b/runtime/runtime_callbacks.h index 32ee3aa3b6..41d552ae44 100644 --- a/runtime/runtime_callbacks.h +++ b/runtime/runtime_callbacks.h @@ -22,11 +22,14 @@ #include "base/array_ref.h" #include "base/locks.h" #include "base/macros.h" -#include "dex/dex_file.h" #include "handle.h" namespace art { +namespace dex { +struct ClassDef; +} // namespace dex + namespace mirror { class Class; class ClassLoader; @@ -35,6 +38,7 @@ class Object; class ArtMethod; class ClassLoadCallback; +class DexFile; class Thread; class MethodCallback; class Monitor; @@ -183,9 +187,9 @@ class RuntimeCallbacks { Handle temp_class, Handle loader, const DexFile& initial_dex_file, - const DexFile::ClassDef& initial_class_def, + const dex::ClassDef& initial_class_def, /*out*/DexFile const** final_dex_file, - /*out*/DexFile::ClassDef const** final_class_def) + /*out*/dex::ClassDef const** final_class_def) REQUIRES_SHARED(Locks::mutator_lock_); void AddMethodCallback(MethodCallback* cb) REQUIRES(Locks::mutator_lock_); -- cgit v1.2.3