Files
brave-core/browser/microsoft_edge_protocol_util.h
T
2021-08-24 16:31:26 +09:00

18 lines
749 B
C

/* Copyright (c) 2021 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef BRAVE_BROWSER_MICROSOFT_EDGE_PROTOCOL_UTIL_H_
#define BRAVE_BROWSER_MICROSOFT_EDGE_PROTOCOL_UTIL_H_
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "url/gurl.h"
// Returns url if |command_line_arg| is microsoft-edge protocol args and that
// args has link info. If args is not a valid url, returns nullopt.
absl::optional<GURL> GetURLFromMSEdgeProtocol(
base::WStringPiece command_line_arg);
#endif // BRAVE_BROWSER_MICROSOFT_EDGE_PROTOCOL_UTIL_H_