Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Side by Side Diff: chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.h

Issue 2556903002: Allow an external URL with FROM_API qualifier to be forwarded to ARC (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698