Merge branch 'tizen_5.0' into tizen_5.5
[platform/core/api/webapi-plugins.git] / src / messageport / messageport_instance.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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 MESSAGEPORT_MESSAGEPORT_INSTANCE_H_
18 #define MESSAGEPORT_MESSAGEPORT_INSTANCE_H_
19
20 #include <bundle.h>
21 #include <bundle_internal.h>
22 #include <message_port.h>
23
24 #include "common/extension.h"
25
26 namespace extension {
27 namespace messageport {
28
29 class MessageportInstance : public common::ParsedInstance {
30  public:
31   MessageportInstance();
32   virtual ~MessageportInstance();
33
34  private:
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);
44 };
45
46 }  // namespace messageport
47 }  // namespace extension
48
49 #endif  // MESSAGEPORT_MESSAGEPORT_INSTANCE_H_