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

Side by Side Diff: components/arc/intent_helper/local_activity_resolver.h

Issue 2556463003: Use mojo typemaps to simplify arc::IntentFilter::IntentFilter() (reland) (Closed)
Patch Set: Rebased 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
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 COMPONENTS_ARC_INTENT_HELPER_LOCAL_ACTIVITY_RESOLVER_H_ 5 #ifndef COMPONENTS_ARC_INTENT_HELPER_LOCAL_ACTIVITY_RESOLVER_H_
6 #define COMPONENTS_ARC_INTENT_HELPER_LOCAL_ACTIVITY_RESOLVER_H_ 6 #define COMPONENTS_ARC_INTENT_HELPER_LOCAL_ACTIVITY_RESOLVER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // Returns true when |url| can only be handled by Chrome. Otherwise, which is 23 // Returns true when |url| can only be handled by Chrome. Otherwise, which is
24 // when there might be one or more ARC apps that can handle |url|, returns 24 // when there might be one or more ARC apps that can handle |url|, returns
25 // false. This function synchronously checks the |url| without making any IPC 25 // false. This function synchronously checks the |url| without making any IPC
26 // to ARC side. Note that this function only supports http and https. If url's 26 // to ARC side. Note that this function only supports http and https. If url's
27 // scheme is neither http nor https, the function immediately returns true 27 // scheme is neither http nor https, the function immediately returns true
28 // without checking the filters. 28 // without checking the filters.
29 bool ShouldChromeHandleUrl(const GURL& url); 29 bool ShouldChromeHandleUrl(const GURL& url);
30 30
31 // Called when the list of intent filters on ARC side is updated. 31 // Called when the list of intent filters on ARC side is updated.
32 void UpdateIntentFilters(std::vector<mojom::IntentFilterPtr> intent_filters); 32 void UpdateIntentFilters(std::vector<IntentFilter> intent_filters);
33 33
34 private: 34 private:
35 friend class base::RefCounted<LocalActivityResolver>; 35 friend class base::RefCounted<LocalActivityResolver>;
36 ~LocalActivityResolver(); 36 ~LocalActivityResolver();
37 37
38 // List of intent filters from Android. Used to determine if Chrome should 38 // List of intent filters from Android. Used to determine if Chrome should
39 // handle a URL without handing off to Android. 39 // handle a URL without handing off to Android.
40 std::vector<IntentFilter> intent_filters_; 40 std::vector<IntentFilter> intent_filters_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(LocalActivityResolver); 42 DISALLOW_COPY_AND_ASSIGN(LocalActivityResolver);
43 }; 43 };
44 44
45 } // namespace arc 45 } // namespace arc
46 46
47 #endif // COMPONENTS_ARC_INTENT_HELPER_LOCAL_ACTIVITY_RESOLVER_H_ 47 #endif // COMPONENTS_ARC_INTENT_HELPER_LOCAL_ACTIVITY_RESOLVER_H_
OLDNEW
« no previous file with comments | « components/arc/intent_helper/intent_filter_unittest.cc ('k') | components/arc/intent_helper/local_activity_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698