• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef PRIVACY_PROXY_DEATH_PARAM_H
17 #define PRIVACY_PROXY_DEATH_PARAM_H
18 
19 #include "privacy_manager_proxy_death_param.h"
20 
21 #include <cstdint>
22 #include "accesstoken_common_log.h"
23 #include "access_token.h"
24 #include "proxy_death_param.h"
25 
26 namespace OHOS {
27 namespace Security {
28 namespace AccessToken {
29 
30 class PrivacyManagerProxyDeathParam : public ProxyDeathParam {
31 public:
32     PrivacyManagerProxyDeathParam(int32_t callerPid);
~PrivacyManagerProxyDeathParam()33     ~PrivacyManagerProxyDeathParam() override {};
34     void ProcessParam() override;
35     bool IsEqual(ProxyDeathParam* param) override;
36 private:
37     int32_t pid_;
38 };
39 
40 }  // namespace AccessToken
41 } // namespace Security
42 }  // namespace OHOS
43 #endif  // PRIVACY_PROXY_DEATH_PARAM_H