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

Side by Side Diff: components/arc/intent_helper/arc_intent_helper_bridge.cc

Issue 2078683002: Add handler and mojo interface to accept android intent filters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up version numbers after sync. Created 4 years, 6 months 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 #include "components/arc/intent_helper/arc_intent_helper_bridge.h" 5 #include "components/arc/intent_helper/arc_intent_helper_bridge.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/desktop_background/user_wallpaper_delegate.h" 9 #include "ash/desktop_background/user_wallpaper_delegate.h"
10 #include "ash/new_window_delegate.h" 10 #include "ash/new_window_delegate.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 mojo::Array<mojom::UrlHandlerInfoPtr> handlers) { 88 mojo::Array<mojom::UrlHandlerInfoPtr> handlers) {
89 mojo::Array<mojom::UrlHandlerInfoPtr> handlers_filtered; 89 mojo::Array<mojom::UrlHandlerInfoPtr> handlers_filtered;
90 for (auto& handler : handlers) { 90 for (auto& handler : handlers) {
91 if (IsIntentHelperPackage(handler->package_name.get())) 91 if (IsIntentHelperPackage(handler->package_name.get()))
92 continue; 92 continue;
93 handlers_filtered.push_back(std::move(handler)); 93 handlers_filtered.push_back(std::move(handler));
94 } 94 }
95 return handlers_filtered; 95 return handlers_filtered;
96 } 96 }
97 97
98 void ArcIntentHelperBridge::OnIntentFiltersUpdated(
99 mojo::Array<mojom::IntentFilterPtr> filters) {
100 // TODO(29248657): Store the filters and implement matching.
Luis Héctor Chávez 2016/06/16 22:45:20 In the past, we've required having an implementati
Yusuke Sato 2016/06/16 23:42:18 What we could do I think is to remember |filters|
zentaro 2016/06/17 21:42:25 Done.
101 }
102
98 } // namespace arc 103 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698