blob: ce506c7f978504e1cb66e1e0d64acf242874d329 [file] [log] [blame]
Tej Singha0c89dd2019-01-25 16:39:18 -08001/*
2 * Copyright (C) 2019 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#pragma once
18
Tej Singh6a5c9432019-10-11 11:07:06 -070019#include <android/os/IPullAtomCallback.h>
Tej Singha0c89dd2019-01-25 16:39:18 -080020#include <utils/String16.h>
Tej Singh6a5c9432019-10-11 11:07:06 -070021
Tej Singha0c89dd2019-01-25 16:39:18 -080022#include "StatsPuller.h"
23
24namespace android {
25namespace os {
26namespace statsd {
27
28class StatsCallbackPuller : public StatsPuller {
29public:
Tej Singh6a5c9432019-10-11 11:07:06 -070030 explicit StatsCallbackPuller(int tagId, const sp<IPullAtomCallback>& callback);
Tej Singha0c89dd2019-01-25 16:39:18 -080031
32private:
33 bool PullInternal(vector<std::shared_ptr<LogEvent> >* data) override;
Tej Singh6a5c9432019-10-11 11:07:06 -070034 const sp<IPullAtomCallback> mCallback;
Tej Singha0c89dd2019-01-25 16:39:18 -080035};
36
37} // namespace statsd
38} // namespace os
39} // namespace android