2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef MESSAGEPORT_MESSAGEPORT_INSTANCE_H_
18 #define MESSAGEPORT_MESSAGEPORT_INSTANCE_H_
21 #include <bundle_internal.h>
22 #include <message_port.h>
24 #include "common/extension.h"
27 namespace messageport {
29 class MessageportInstance : public common::ParsedInstance {
31 MessageportInstance();
32 virtual ~MessageportInstance();
35 void MessagePortManagerRequestLocalMessagePort(const picojson::value& args,
36 picojson::object& out);
37 void MessagePortManagerRequestTrustedLocalMessagePort(const picojson::value& args,
38 picojson::object& out);
39 void MessagePortManagerRequestRemoteMessagePort(const picojson::value& args,
40 picojson::object& out);
41 void MessagePortManagerRequestTrustedRemoteMessagePort(const picojson::value& args,
42 picojson::object& out);
43 void RemoteMessagePortSendMessage(const picojson::value& args, picojson::object& out);
46 } // namespace messageport
47 } // namespace extension
49 #endif // MESSAGEPORT_MESSAGEPORT_INSTANCE_H_