blob: 0d635f1d21490f6bfb18c1e2a04ad50b5189e581 [file] [log] [blame]
Elliott Hughes2faa5f12012-01-30 14:42:07 -08001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Brian Carlstrom1f870082011-08-23 16:02:11 -070016
17#ifndef ART_SRC_CLASS_LOADER_H_
18#define ART_SRC_CLASS_LOADER_H_
19
20#include <vector>
21
22#include "dex_file.h"
Ian Rogers2dd0e2c2013-01-24 12:42:14 -080023#include "mirror/object.h"
Brian Carlstrom1f870082011-08-23 16:02:11 -070024
25namespace art {
26
Ian Rogers2dd0e2c2013-01-24 12:42:14 -080027struct ClassLoaderOffsets;
28
29namespace mirror {
30
Ian Rogers0cfe1fb2011-08-26 03:29:44 -070031// C++ mirror of java.lang.ClassLoader
Brian Carlstromaded5f72011-10-07 17:15:04 -070032class MANAGED ClassLoader : public Object {
Brian Carlstrom1f870082011-08-23 16:02:11 -070033 private:
34 // Field order required by test "ValidateFieldOrderOfJavaCppUnionClasses".
35 Object* packages_;
36 ClassLoader* parent_;
Jesse Wilson1b5f4972011-10-11 21:41:08 -040037 Object* proxyCache_;
Brian Carlstrom1f870082011-08-23 16:02:11 -070038
Ian Rogers2dd0e2c2013-01-24 12:42:14 -080039 friend struct art::ClassLoaderOffsets; // for verifying offset information
Brian Carlstrom1f870082011-08-23 16:02:11 -070040 DISALLOW_IMPLICIT_CONSTRUCTORS(ClassLoader);
41};
42
Ian Rogers2dd0e2c2013-01-24 12:42:14 -080043} // namespace mirror
Brian Carlstrom1f870082011-08-23 16:02:11 -070044} // namespace art
45
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080046#endif // ART_SRC_CLASS_LOADER_H_