1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ash / components / arc / net / browser_url_opener.h [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_COMPONENTS_ARC_NET_BROWSER_URL_OPENER_H_
#define ASH_COMPONENTS_ARC_NET_BROWSER_URL_OPENER_H_
#include "url/gurl.h"
namespace arc {
// Delegate class to open URLs through Chrome browser.
class BrowserUrlOpener {
public:
BrowserUrlOpener();
BrowserUrlOpener(const BrowserUrlOpener&) = delete;
BrowserUrlOpener& operator=(const BrowserUrlOpener&) = delete;
virtual ~BrowserUrlOpener();
// Get the singleton instance of this class.
static BrowserUrlOpener* Get();
// Opens the specified `url` in a new browser tab.
virtual void OpenUrl(GURL url) = 0;
};
} // namespace arc
#endif // ASH_COMPONENTS_ARC_NET_BROWSER_URL_OPENER_H_