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

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

Issue 2498223002: arc: enable use_new_wrapper_types for intent_helper.mojom (Closed)
Patch Set: rebase Created 4 years, 1 month 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
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 11
11 #include "components/arc/common/intent_helper.mojom.h" 12 #include "components/arc/common/intent_helper.mojom.h"
12 #include "mojo/public/cpp/bindings/array.h"
13 #include "ui/base/page_transition_types.h" 13 #include "ui/base/page_transition_types.h"
14 14
15 class GURL; 15 class GURL;
16 16
17 namespace arc { 17 namespace arc {
18 18
19 // An enum returned from GetAction function. This is visible for testing. 19 // An enum returned from GetAction function. This is visible for testing.
20 enum class GetActionResult { 20 enum class GetActionResult {
21 // ARC cannot handle the |original_url|, and the URL does not have a fallback 21 // ARC cannot handle the |original_url|, and the URL does not have a fallback
22 // http(s) URL. Chrome should show the "Google Chrome OS can't open the page" 22 // http(s) URL. Chrome should show the "Google Chrome OS can't open the page"
(...skipping 17 matching lines...) Expand all
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 bool ShouldIgnoreNavigationForTesting(ui::PageTransition page_transition); 46 bool ShouldIgnoreNavigationForTesting(ui::PageTransition page_transition);
47 47
48 GetActionResult GetActionForTesting( 48 GetActionResult GetActionForTesting(
49 const GURL& original_url, 49 const GURL& original_url,
50 const mojo::Array<mojom::IntentHandlerInfoPtr>& handlers, 50 const std::vector<mojom::IntentHandlerInfoPtr>& handlers,
51 size_t selected_app_index, 51 size_t selected_app_index,
52 std::pair<GURL, std::string>* out_url_and_package); 52 std::pair<GURL, std::string>* out_url_and_package);
53 53
54 GURL GetUrlToNavigateOnDeactivateForTesting( 54 GURL GetUrlToNavigateOnDeactivateForTesting(
55 const mojo::Array<mojom::IntentHandlerInfoPtr>& handlers); 55 const std::vector<mojom::IntentHandlerInfoPtr>& handlers);
56 56
57 } // namespace arc 57 } // namespace arc
58 58
59 #endif // CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALO G_H_ 59 #endif // CHROME_BROWSER_CHROMEOS_ARC_INTENT_HELPER_ARC_EXTERNAL_PROTOCOL_DIALO G_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698