2016-10-25 12:41:01 +02:00
|
|
|
// Copyright (c) 2016 GitHub, Inc.
|
2016-09-15 15:59:40 +02:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2020-02-04 12:19:40 -08:00
|
|
|
#ifndef SHELL_BROWSER_API_ELECTRON_API_NET_H_
|
|
|
|
#define SHELL_BROWSER_API_ELECTRON_API_NET_H_
|
2016-09-15 15:59:40 +02:00
|
|
|
|
2019-12-05 18:46:34 +09:00
|
|
|
#include "shell/common/gin_helper/wrappable.h"
|
2016-09-15 15:59:40 +02:00
|
|
|
|
2019-06-19 14:23:04 -07:00
|
|
|
namespace electron {
|
2016-09-15 15:59:40 +02:00
|
|
|
|
|
|
|
namespace api {
|
|
|
|
|
2019-12-05 18:46:34 +09:00
|
|
|
class Net : public gin_helper::Wrappable<Net> {
|
2016-09-29 11:31:08 +02:00
|
|
|
public:
|
2016-09-15 15:59:40 +02:00
|
|
|
static v8::Local<v8::Value> Create(v8::Isolate* isolate);
|
|
|
|
|
|
|
|
static void BuildPrototype(v8::Isolate* isolate,
|
|
|
|
v8::Local<v8::FunctionTemplate> prototype);
|
|
|
|
|
2019-11-26 17:01:13 -08:00
|
|
|
v8::Local<v8::Value> URLLoader(v8::Isolate* isolate);
|
2016-10-14 11:50:47 +02:00
|
|
|
|
2016-09-29 11:31:08 +02:00
|
|
|
protected:
|
|
|
|
explicit Net(v8::Isolate* isolate);
|
2016-09-15 15:59:40 +02:00
|
|
|
~Net() override;
|
|
|
|
|
2016-09-29 11:31:08 +02:00
|
|
|
private:
|
2016-09-15 15:59:40 +02:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(Net);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace api
|
|
|
|
|
2019-06-19 14:23:04 -07:00
|
|
|
} // namespace electron
|
2016-09-15 15:59:40 +02:00
|
|
|
|
2020-02-04 12:19:40 -08:00
|
|
|
#endif // SHELL_BROWSER_API_ELECTRON_API_NET_H_
|