| Index: chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.h
|
| diff --git a/chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.h b/chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.h
|
| index 7ef7eb1b1e5188c4b1ee42f829f65ff62772721d..1983473a14d2286010fc08387ff76441d9050ac5 100644
|
| --- a/chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.h
|
| +++ b/chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.h
|
| @@ -5,12 +5,24 @@
|
| #ifndef CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALOG_H_
|
| #define CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALOG_H_
|
|
|
| +#include <string>
|
| +#include <utility>
|
| +
|
| +#include "components/arc/common/intent_helper.mojom.h"
|
| +#include "mojo/public/cpp/bindings/array.h"
|
| #include "ui/base/page_transition_types.h"
|
|
|
| class GURL;
|
|
|
| namespace arc {
|
|
|
| +enum class GetActionResult {
|
| + SHOW_CHROME_OS_DIALOG,
|
| + OPEN_URL_IN_CHROME,
|
| + HANDLE_URL_IN_ARC,
|
| + ASK_USER,
|
| +};
|
| +
|
| // Shows ARC version of the dialog. Returns true if ARC is supported, running,
|
| // and in a context where it is allowed to handle external protocol.
|
| bool RunArcExternalProtocolDialog(const GURL& url,
|
| @@ -19,6 +31,12 @@ bool RunArcExternalProtocolDialog(const GURL& url,
|
| ui::PageTransition page_transition,
|
| bool has_user_gesture);
|
|
|
| +GetActionResult GetActionForTesting(
|
| + const GURL& original_url,
|
| + const mojo::Array<mojom::IntentHandlerInfoPtr>& handlers,
|
| + size_t selected_app_index,
|
| + std::pair<GURL, std::string>* out_url_and_package);
|
| +
|
| } // namespace arc
|
|
|
| #endif // CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALOG_H_
|
|
|