Index: chrome/browser/chromeos/arc/arc_external_protocol_dialog.h |
diff --git a/chrome/browser/chromeos/arc/arc_external_protocol_dialog.h b/chrome/browser/chromeos/arc/arc_external_protocol_dialog.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e2134903e774c03102dbe9c9bb05bfe16f60e7b3 |
--- /dev/null |
+++ b/chrome/browser/chromeos/arc/arc_external_protocol_dialog.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_EXTERNAL_PROTOCOL_DIALOG_H_ |
+#define CHROME_BROWSER_CHROMEOS_ARC_ARC_EXTERNAL_PROTOCOL_DIALOG_H_ |
+ |
+#include "ui/base/page_transition_types.h" |
+ |
+class GURL; |
+ |
+namespace arc { |
+ |
+// 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, |
+ int render_process_host_id, |
+ int routing_id, |
+ ui::PageTransition page_transition, |
+ bool has_user_gesture); |
+ |
+} // namespace arc |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_EXTERNAL_PROTOCOL_DIALOG_H_ |