atom_api_renderer_ipc.h 884 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (c) 2016 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_RENDERER_API_ATOM_API_RENDERER_IPC_H_
  5. #define ATOM_RENDERER_API_ATOM_API_RENDERER_IPC_H_
  6. #include "base/values.h"
  7. #include "native_mate/arguments.h"
  8. namespace atom {
  9. namespace api {
  10. void Send(mate::Arguments* args,
  11. const base::string16& channel,
  12. const base::ListValue& arguments);
  13. base::string16 SendSync(mate::Arguments* args,
  14. const base::string16& channel,
  15. const base::ListValue& arguments);
  16. void Initialize(v8::Local<v8::Object> exports,
  17. v8::Local<v8::Value> unused,
  18. v8::Local<v8::Context> context,
  19. void* priv);
  20. } // namespace api
  21. } // namespace atom
  22. #endif // ATOM_RENDERER_API_ATOM_API_RENDERER_IPC_H_