| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALOG_H
_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALOG_H
_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALOG_H
_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALOG_H
_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // Shows ARC version of the dialog. Returns true if ARC is supported, running, | 38 // Shows ARC version of the dialog. Returns true if ARC is supported, running, |
| 39 // and in a context where it is allowed to handle external protocol. | 39 // and in a context where it is allowed to handle external protocol. |
| 40 bool RunArcExternalProtocolDialog(const GURL& url, | 40 bool RunArcExternalProtocolDialog(const GURL& url, |
| 41 int render_process_host_id, | 41 int render_process_host_id, |
| 42 int routing_id, | 42 int routing_id, |
| 43 ui::PageTransition page_transition, | 43 ui::PageTransition page_transition, |
| 44 bool has_user_gesture); | 44 bool has_user_gesture); |
| 45 | 45 |
| 46 GetActionResult GetActionForTesting( | 46 GetActionResult GetActionForTesting( |
| 47 const GURL& original_url, | 47 const GURL& original_url, |
| 48 bool always_ask_user, |
| 48 const std::vector<mojom::IntentHandlerInfoPtr>& handlers, | 49 const std::vector<mojom::IntentHandlerInfoPtr>& handlers, |
| 49 size_t selected_app_index, | 50 size_t selected_app_index, |
| 50 std::pair<GURL, std::string>* out_url_and_package); | 51 std::pair<GURL, std::string>* out_url_and_package); |
| 51 | 52 |
| 52 GURL GetUrlToNavigateOnDeactivateForTesting( | 53 GURL GetUrlToNavigateOnDeactivateForTesting( |
| 53 const std::vector<mojom::IntentHandlerInfoPtr>& handlers); | 54 const std::vector<mojom::IntentHandlerInfoPtr>& handlers); |
| 54 | 55 |
| 56 bool IsSafeToRedirectToArcWithoutUserConfirmationForTesting( |
| 57 const GURL& url, |
| 58 ui::PageTransition page_transition, |
| 59 const GURL& last_url, |
| 60 ui::PageTransition last_page_transition); |
| 61 |
| 55 } // namespace arc | 62 } // namespace arc |
| 56 | 63 |
| 57 #endif // CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALO
G_H_ | 64 #endif // CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALO
G_H_ |
| OLD | NEW |