Bookatz | c68a9d2 | 2017-09-27 14:09:55 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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 STATSD_STATSPULLER_H |
| 18 | #define STATSD_STATSPULLER_H |
| 19 | |
David Chen | 1481fe1 | 2017-10-16 13:16:34 -0700 | [diff] [blame^] | 20 | #include <android/os/StatsLogEventWrapper.h> |
Bookatz | c68a9d2 | 2017-09-27 14:09:55 -0700 | [diff] [blame] | 21 | #include <utils/String16.h> |
David Chen | 1481fe1 | 2017-10-16 13:16:34 -0700 | [diff] [blame^] | 22 | #include <vector> |
| 23 | |
| 24 | using android::os::StatsLogEventWrapper; |
| 25 | using std::vector; |
Bookatz | c68a9d2 | 2017-09-27 14:09:55 -0700 | [diff] [blame] | 26 | |
| 27 | namespace android { |
| 28 | namespace os { |
| 29 | namespace statsd { |
| 30 | |
| 31 | class StatsPuller { |
| 32 | public: |
Chenjie Yu | 1a317ba | 2017-10-05 16:05:32 -0700 | [diff] [blame] | 33 | virtual ~StatsPuller(){}; |
David Chen | 1481fe1 | 2017-10-16 13:16:34 -0700 | [diff] [blame^] | 34 | |
| 35 | virtual vector<StatsLogEventWrapper> pull() = 0; |
Bookatz | c68a9d2 | 2017-09-27 14:09:55 -0700 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | } // namespace statsd |
| 39 | } // namespace os |
| 40 | } // namespace android |
| 41 | |
Chenjie Yu | 1a317ba | 2017-10-05 16:05:32 -0700 | [diff] [blame] | 42 | #endif // STATSD_STATSPULLER_H |