chore: replace absl::optional<T> with std::optional<T> (#40928)
* chore: replace absl::optional<T> with std::optional<T> * IWYU
This commit is contained in:
parent
fac964ac0d
commit
892c9d78a3
129 changed files with 419 additions and 397 deletions
|
@ -5,6 +5,7 @@
|
|||
#ifndef ELECTRON_SHELL_BROWSER_API_ELECTRON_API_SESSION_H_
|
||||
#define ELECTRON_SHELL_BROWSER_API_ELECTRON_API_SESSION_H_
|
||||
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -85,7 +86,7 @@ class Session : public gin::Wrappable<Session>,
|
|||
base::Value::Dict options = {});
|
||||
|
||||
// Gets the Session based on |path|.
|
||||
static absl::optional<gin::Handle<Session>> FromPath(
|
||||
static std::optional<gin::Handle<Session>> FromPath(
|
||||
v8::Isolate* isolate,
|
||||
const base::FilePath& path,
|
||||
base::Value::Dict options = {});
|
||||
|
@ -101,7 +102,7 @@ class Session : public gin::Wrappable<Session>,
|
|||
// Methods.
|
||||
v8::Local<v8::Promise> ResolveHost(
|
||||
std::string host,
|
||||
absl::optional<network::mojom::ResolveHostParametersPtr> params);
|
||||
std::optional<network::mojom::ResolveHostParametersPtr> params);
|
||||
v8::Local<v8::Promise> ResolveProxy(gin::Arguments* args);
|
||||
v8::Local<v8::Promise> GetCacheSize();
|
||||
v8::Local<v8::Promise> ClearCache();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue