chromecast: Replace base::Optional and friends with absl counterparts
This replaces:
- base::Optional -> absl::optional
- include "base/optional.h"
->
include "third_party/abseil-cpp/absl/types/optional.h"
- base::nullopt -> absl::nullopt
- base::make_optional -> absl::make_optional
Bug: 1202909
Change-Id: Ie8970e16d42af39ae424c836d5f0c48c913dc7ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2897224
Auto-Submit: Anton Bikineev <[email protected]>
Commit-Queue: Peter Kasting <[email protected]>
Reviewed-by: Peter Kasting <[email protected]>
Owners-Override: Peter Kasting <[email protected]>
Cr-Commit-Position: refs/heads/master@{#883275}
diff --git a/chromecast/browser/cast_web_contents.h b/chromecast/browser/cast_web_contents.h
index 0e1d43c..3ec70ed 100644
--- a/chromecast/browser/cast_web_contents.h
+++ b/chromecast/browser/cast_web_contents.h
@@ -11,13 +11,13 @@
#include "base/callback.h"
#include "base/containers/flat_set.h"
#include "base/observer_list.h"
-#include "base/optional.h"
#include "base/process/process.h"
#include "chromecast/common/mojom/feature_manager.mojom.h"
#include "content/public/common/media_playback_renderer_type.mojom.h"
#include "mojo/public/cpp/bindings/generic_pending_receiver.h"
#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/interface_provider.h"
+#include "third_party/abseil-cpp/absl/types/optional.h"
#include "third_party/blink/public/common/messaging/web_message_port.h"
#include "ui/gfx/geometry/rect.h"
#include "url/gurl.h"
@@ -230,7 +230,7 @@
// Whether to provide a URL filter applied to network requests for the
// activity hosted by this CastWebContents.
// No filters implies no restrictions.
- base::Optional<std::vector<std::string>> url_filters = base::nullopt;
+ absl::optional<std::vector<std::string>> url_filters = absl::nullopt;
// Whether WebRTC peer connections are allowed to use legacy versions of the
// TLS/DTLS protocols.
bool webrtc_allow_legacy_tls_protocols = false;
@@ -273,7 +273,7 @@
virtual PageState page_state() const = 0;
// Returns the PID of the main frame process if valid.
- virtual base::Optional<pid_t> GetMainFrameRenderProcessPid() const = 0;
+ virtual absl::optional<pid_t> GetMainFrameRenderProcessPid() const = 0;
// ===========================================================================
// Initialization and Setup