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 #include "chrome/browser/chromeos/arc/arc_external_protocol_dialog.h" | 5 #include "chrome/browser/chromeos/arc/ui/arc_external_protocol_dialog.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "chrome/browser/chromeos/arc/arc_navigation_throttle.h" | 15 #include "chrome/browser/chromeos/arc/ui/arc_navigation_throttle.h" |
16 #include "chrome/browser/chromeos/external_protocol_dialog.h" | 16 #include "chrome/browser/chromeos/external_protocol_dialog.h" |
17 #include "chrome/browser/tab_contents/tab_util.h" | 17 #include "chrome/browser/tab_contents/tab_util.h" |
18 #include "chrome/browser/ui/browser_dialogs.h" | 18 #include "chrome/browser/ui/browser_dialogs.h" |
19 #include "components/arc/arc_bridge_service.h" | 19 #include "components/arc/arc_bridge_service.h" |
20 #include "components/arc/arc_service_manager.h" | 20 #include "components/arc/arc_service_manager.h" |
21 #include "components/arc/intent_helper/activity_icon_loader.h" | 21 #include "components/arc/intent_helper/activity_icon_loader.h" |
22 #include "components/arc/intent_helper/arc_intent_helper_bridge.h" | 22 #include "components/arc/intent_helper/arc_intent_helper_bridge.h" |
23 #include "components/arc/intent_helper/page_transition_util.h" | 23 #include "components/arc/intent_helper/page_transition_util.h" |
24 #include "content/public/browser/browser_context.h" | 24 #include "content/public/browser/browser_context.h" |
25 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 // Show ARC version of the dialog, which is IntentPickerBubbleView. To show | 212 // Show ARC version of the dialog, which is IntentPickerBubbleView. To show |
213 // the bubble view, we need to ask ARC for a handler list first. | 213 // the bubble view, we need to ask ARC for a handler list first. |
214 instance->RequestUrlHandlerList( | 214 instance->RequestUrlHandlerList( |
215 url.spec(), | 215 url.spec(), |
216 base::Bind(OnUrlHandlerList, render_process_host_id, routing_id, url)); | 216 base::Bind(OnUrlHandlerList, render_process_host_id, routing_id, url)); |
217 return true; | 217 return true; |
218 } | 218 } |
219 | 219 |
220 } // namespace arc | 220 } // namespace arc |
OLD | NEW |