atom_api_net.h 812 B

1234567891011121314151617181920212223242526272829303132333435
  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 SHELL_BROWSER_API_ATOM_API_NET_H_
  5. #define SHELL_BROWSER_API_ATOM_API_NET_H_
  6. #include "shell/browser/api/event_emitter.h"
  7. namespace electron {
  8. namespace api {
  9. class Net : public mate::EventEmitter<Net> {
  10. public:
  11. static v8::Local<v8::Value> Create(v8::Isolate* isolate);
  12. static void BuildPrototype(v8::Isolate* isolate,
  13. v8::Local<v8::FunctionTemplate> prototype);
  14. v8::Local<v8::Value> URLLoader(v8::Isolate* isolate);
  15. protected:
  16. explicit Net(v8::Isolate* isolate);
  17. ~Net() override;
  18. private:
  19. DISALLOW_COPY_AND_ASSIGN(Net);
  20. };
  21. } // namespace api
  22. } // namespace electron
  23. #endif // SHELL_BROWSER_API_ATOM_API_NET_H_