chore: remove pre network service classes from shell/browser/net (#19644)
* refactor: rm IOThread class * chore: rm expose-net-observer-api.patch * chore: rm unused shell/browser/net/ classes * chore: mv CertVerifierClient to separate header * chore: rm url_request_context_getter references
This commit is contained in:
parent
9c7a216814
commit
eebea63bed
31 changed files with 137 additions and 2196 deletions
|
@ -20,8 +20,8 @@
|
|||
#include "net/cert/x509_certificate.h"
|
||||
#include "net/cert/x509_util.h"
|
||||
#include "net/http/http_response_headers.h"
|
||||
#include "net/url_request/url_request.h"
|
||||
#include "services/network/public/cpp/resource_request.h"
|
||||
#include "shell/browser/net/cert_verifier_client.h"
|
||||
#include "shell/common/native_mate_converters/gurl_converter.h"
|
||||
#include "shell/common/native_mate_converters/string16_converter.h"
|
||||
#include "shell/common/native_mate_converters/value_converter.h"
|
||||
|
@ -267,6 +267,18 @@ v8::Local<v8::Value> Converter<network::ResourceRequest>::ToV8(
|
|||
return dict.GetHandle();
|
||||
}
|
||||
|
||||
// static
|
||||
v8::Local<v8::Value> Converter<electron::VerifyRequestParams>::ToV8(
|
||||
v8::Isolate* isolate,
|
||||
electron::VerifyRequestParams val) {
|
||||
mate::Dictionary dict = mate::Dictionary::CreateEmpty(isolate);
|
||||
dict.Set("hostname", val.hostname);
|
||||
dict.Set("certificate", val.certificate);
|
||||
dict.Set("verificationResult", val.default_result);
|
||||
dict.Set("errorCode", val.error_code);
|
||||
return dict.GetHandle();
|
||||
}
|
||||
|
||||
} // namespace mate
|
||||
|
||||
namespace electron {
|
||||
|
|
|
@ -13,6 +13,10 @@ class DictionaryValue;
|
|||
class ListValue;
|
||||
} // namespace base
|
||||
|
||||
namespace electron {
|
||||
struct VerifyRequestParams;
|
||||
}
|
||||
|
||||
namespace net {
|
||||
class AuthChallengeInfo;
|
||||
class URLRequest;
|
||||
|
@ -65,6 +69,12 @@ struct Converter<network::ResourceRequest> {
|
|||
const network::ResourceRequest& val);
|
||||
};
|
||||
|
||||
template <>
|
||||
struct Converter<electron::VerifyRequestParams> {
|
||||
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
||||
electron::VerifyRequestParams val);
|
||||
};
|
||||
|
||||
} // namespace mate
|
||||
|
||||
namespace electron {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue