blob: ac17fc1254b792754701b78798e7f399d65f87c4 [file] [log] [blame]
Pierre Imai1cfa5432016-02-24 18:00:03 +09001/*
2 * Copyright (C) 2016 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 */
16
17#ifndef _CONTROLLERS_H__
18#define _CONTROLLERS_H__
19
20#include <sysutils/FrameworkListener.h>
Lorenzo Colittiddf2d5b2016-02-26 11:30:59 +090021
Pierre Imai1cfa5432016-02-24 18:00:03 +090022#include "NetworkController.h"
23#include "TetherController.h"
24#include "NatController.h"
25#include "PppController.h"
Pierre Imai1cfa5432016-02-24 18:00:03 +090026#include "BandwidthController.h"
27#include "IdletimerController.h"
28#include "InterfaceController.h"
Narayan Kamatha5ace892017-01-06 15:10:02 +000029#include "IptablesRestoreController.h"
Pierre Imai1cfa5432016-02-24 18:00:03 +090030#include "ResolverController.h"
31#include "FirewallController.h"
32#include "ClatdController.h"
33#include "StrictController.h"
Michal Karpinskid5440112016-10-06 16:56:04 +010034#include "EventReporter.h"
Pierre Imai1cfa5432016-02-24 18:00:03 +090035
36namespace android {
37namespace net {
38
Lorenzo Colitti1ed96e22017-02-02 12:21:56 +090039class Controllers {
40public:
Pierre Imai1cfa5432016-02-24 18:00:03 +090041 Controllers();
42
43 NetworkController netCtrl;
44 TetherController tetherCtrl;
45 NatController natCtrl;
46 PppController pppCtrl;
Pierre Imai1cfa5432016-02-24 18:00:03 +090047 BandwidthController bandwidthCtrl;
48 IdletimerController idletimerCtrl;
49 ResolverController resolverCtrl;
50 FirewallController firewallCtrl;
Pierre Imai1cfa5432016-02-24 18:00:03 +090051 ClatdController clatdCtrl;
52 StrictController strictCtrl;
Michal Karpinskid5440112016-10-06 16:56:04 +010053 EventReporter eventReporter;
Narayan Kamatha5ace892017-01-06 15:10:02 +000054 IptablesRestoreController iptablesRestoreCtrl;
Lorenzo Colitti1ed96e22017-02-02 12:21:56 +090055
56 void init();
57
58private:
59 void initIptablesRules();
Pierre Imai1cfa5432016-02-24 18:00:03 +090060};
61
62extern Controllers* gCtls;
63
64} // namespace net
65} // namespace android
66
67#endif // _CONTROLLERS_H__