2016-08-19 16:08:30 +00:00
|
|
|
// Copyright (c) 2016 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_RENDERER_API_ATOM_API_RENDERER_IPC_H_
|
|
|
|
#define ATOM_RENDERER_API_ATOM_API_RENDERER_IPC_H_
|
|
|
|
|
2018-08-24 15:30:37 +00:00
|
|
|
#include <string>
|
|
|
|
|
2016-08-19 16:08:30 +00:00
|
|
|
#include "base/values.h"
|
|
|
|
#include "native_mate/arguments.h"
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
namespace api {
|
|
|
|
|
|
|
|
void Send(mate::Arguments* args,
|
2018-08-24 15:30:37 +00:00
|
|
|
const std::string& channel,
|
2016-08-19 16:08:30 +00:00
|
|
|
const base::ListValue& arguments);
|
|
|
|
|
2018-06-13 07:38:31 +00:00
|
|
|
base::ListValue SendSync(mate::Arguments* args,
|
2018-08-24 15:30:37 +00:00
|
|
|
const std::string& channel,
|
2018-06-13 07:38:31 +00:00
|
|
|
const base::ListValue& arguments);
|
2016-08-19 16:08:30 +00:00
|
|
|
|
2018-08-24 21:14:39 +00:00
|
|
|
void SendTo(mate::Arguments* args,
|
2018-10-06 11:48:00 +00:00
|
|
|
bool internal,
|
2018-08-24 21:14:39 +00:00
|
|
|
bool send_to_all,
|
|
|
|
int32_t web_contents_id,
|
2018-08-24 22:30:10 +00:00
|
|
|
const std::string& channel,
|
2018-08-24 21:14:39 +00:00
|
|
|
const base::ListValue& arguments);
|
|
|
|
|
2016-08-19 16:08:30 +00:00
|
|
|
} // namespace api
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
|
|
|
#endif // ATOM_RENDERER_API_ATOM_API_RENDERER_IPC_H_
|