mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: compile error in netlog (#18443)
This commit is contained in:
@@ -92,7 +92,7 @@ v8::Local<v8::Promise> NetLog::StartLogging(mate::Arguments* args) {
|
||||
|
||||
// TODO(deepak1556): Provide more flexibility to this module
|
||||
// by allowing customizations on the capturing options.
|
||||
auto capture_mode = network::mojom::NetLogCaptureMode::DEFAULT;
|
||||
auto capture_mode = net::NetLogCaptureMode::Default();
|
||||
auto max_file_size = network::mojom::NetLogExporter::kUnlimitedFileSize;
|
||||
|
||||
base::PostTaskAndReplyWithResult(
|
||||
@@ -105,11 +105,10 @@ v8::Local<v8::Promise> NetLog::StartLogging(mate::Arguments* args) {
|
||||
return handle;
|
||||
}
|
||||
|
||||
void NetLog::StartNetLogAfterCreateFile(
|
||||
network::mojom::NetLogCaptureMode capture_mode,
|
||||
uint64_t max_file_size,
|
||||
base::Value custom_constants,
|
||||
base::File output_file) {
|
||||
void NetLog::StartNetLogAfterCreateFile(net::NetLogCaptureMode capture_mode,
|
||||
uint64_t max_file_size,
|
||||
base::Value custom_constants,
|
||||
base::File output_file) {
|
||||
if (!net_log_exporter_) {
|
||||
// Theoretically the mojo pipe could have been closed by the time we get
|
||||
// here via the connection error handler. If so, the promise has already
|
||||
|
||||
@@ -41,11 +41,10 @@ class NetLog : public mate::TrackableObject<NetLog> {
|
||||
|
||||
void OnConnectionError();
|
||||
|
||||
void StartNetLogAfterCreateFile(
|
||||
network::mojom::NetLogCaptureMode capture_mode,
|
||||
uint64_t max_file_size,
|
||||
base::Value custom_constants,
|
||||
base::File output_file);
|
||||
void StartNetLogAfterCreateFile(net::NetLogCaptureMode capture_mode,
|
||||
uint64_t max_file_size,
|
||||
base::Value custom_constants,
|
||||
base::File output_file);
|
||||
void NetLogStarted(int32_t error);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user