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

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

Issue 2443313002: Add more tests to arc_navigation_throttle.cc (Closed)
Patch Set: 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 COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_ 5 #ifndef COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_
6 #define COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_ 6 #define COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 static mojom::IntentHelperInstance* GetIntentHelperInstanceWithErrorCode( 81 static mojom::IntentHelperInstance* GetIntentHelperInstanceWithErrorCode(
82 const std::string& method_name_for_logging, 82 const std::string& method_name_for_logging,
83 uint32_t min_instance_version, 83 uint32_t min_instance_version,
84 GetResult* out_error_code); 84 GetResult* out_error_code);
85 85
86 // Does the same as above without asking for the error code. 86 // Does the same as above without asking for the error code.
87 static mojom::IntentHelperInstance* GetIntentHelperInstance( 87 static mojom::IntentHelperInstance* GetIntentHelperInstance(
88 const std::string& method_name_for_logging, 88 const std::string& method_name_for_logging,
89 uint32_t min_instance_version); 89 uint32_t min_instance_version);
90 90
91 static constexpr char kArcIntentHelperPackageName[] =
Luis Héctor Chávez 2016/10/24 20:24:34 would this cause an ODR violation?
Yusuke Sato 2016/10/24 22:27:16 does it? I thought if the variable is odr-used, a
92 "org.chromium.arc.intent_helper";
93
91 private: 94 private:
92 mojo::Binding<mojom::IntentHelperHost> binding_; 95 mojo::Binding<mojom::IntentHelperHost> binding_;
93 scoped_refptr<ActivityIconLoader> icon_loader_; 96 scoped_refptr<ActivityIconLoader> icon_loader_;
94 scoped_refptr<LocalActivityResolver> activity_resolver_; 97 scoped_refptr<LocalActivityResolver> activity_resolver_;
95 98
96 base::ThreadChecker thread_checker_; 99 base::ThreadChecker thread_checker_;
97 100
98 DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridge); 101 DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridge);
99 }; 102 };
100 103
101 } // namespace arc 104 } // namespace arc
102 105
103 #endif // COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_ 106 #endif // COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698