| 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 #ifndef COMPONENTS_ARC_TEST_FAKE_INTENT_HELPER_INSTANCE_H_ | 5 #ifndef COMPONENTS_ARC_TEST_FAKE_INTENT_HELPER_INSTANCE_H_ |
| 6 #define COMPONENTS_ARC_TEST_FAKE_INTENT_HELPER_INSTANCE_H_ | 6 #define COMPONENTS_ARC_TEST_FAKE_INTENT_HELPER_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 void AddPreferredPackage(const mojo::String& package_name) override; | 45 void AddPreferredPackage(const mojo::String& package_name) override; |
| 46 | 46 |
| 47 void HandleUrl(const mojo::String& url, | 47 void HandleUrl(const mojo::String& url, |
| 48 const mojo::String& package_name) override; | 48 const mojo::String& package_name) override; |
| 49 | 49 |
| 50 void HandleUrlList(mojo::Array<mojom::UrlWithMimeTypePtr> urls, | 50 void HandleUrlList(mojo::Array<mojom::UrlWithMimeTypePtr> urls, |
| 51 mojom::ActivityNamePtr activity, | 51 mojom::ActivityNamePtr activity, |
| 52 mojom::ActionType action) override; | 52 mojom::ActionType action) override; |
| 53 | 53 |
| 54 void HandleUrlListDeprecated(mojo::Array<mojom::UrlWithMimeTypePtr> urls, | |
| 55 const mojo::String& package_name, | |
| 56 mojom::ActionType action) override; | |
| 57 | |
| 58 void Init(mojom::IntentHelperHostPtr host_ptr) override; | 54 void Init(mojom::IntentHelperHostPtr host_ptr) override; |
| 59 | 55 |
| 60 void RequestActivityIcons( | 56 void RequestActivityIcons( |
| 61 mojo::Array<mojom::ActivityNamePtr> activities, | 57 mojo::Array<mojom::ActivityNamePtr> activities, |
| 62 ::arc::mojom::ScaleFactor scale_factor, | 58 ::arc::mojom::ScaleFactor scale_factor, |
| 63 const RequestActivityIconsCallback& callback) override; | 59 const RequestActivityIconsCallback& callback) override; |
| 64 | 60 |
| 65 void RequestUrlHandlerList( | 61 void RequestUrlHandlerList( |
| 66 const mojo::String& url, | 62 const mojo::String& url, |
| 67 const RequestUrlHandlerListCallback& callback) override; | 63 const RequestUrlHandlerListCallback& callback) override; |
| 68 | 64 |
| 69 void RequestUrlListHandlerList( | 65 void RequestUrlListHandlerList( |
| 70 mojo::Array<mojom::UrlWithMimeTypePtr> urls, | 66 mojo::Array<mojom::UrlWithMimeTypePtr> urls, |
| 71 const RequestUrlListHandlerListCallback& callback) override; | 67 const RequestUrlListHandlerListCallback& callback) override; |
| 72 | 68 |
| 73 void SendBroadcast(const mojo::String& action, | 69 void SendBroadcast(const mojo::String& action, |
| 74 const mojo::String& package_name, | 70 const mojo::String& package_name, |
| 75 const mojo::String& cls, | 71 const mojo::String& cls, |
| 76 const mojo::String& extras) override; | 72 const mojo::String& extras) override; |
| 77 | 73 |
| 78 private: | 74 private: |
| 79 std::vector<Broadcast> broadcasts_; | 75 std::vector<Broadcast> broadcasts_; |
| 80 | 76 |
| 81 DISALLOW_COPY_AND_ASSIGN(FakeIntentHelperInstance); | 77 DISALLOW_COPY_AND_ASSIGN(FakeIntentHelperInstance); |
| 82 }; | 78 }; |
| 83 | 79 |
| 84 } // namespace arc | 80 } // namespace arc |
| 85 | 81 |
| 86 #endif // COMPONENTS_ARC_TEST_FAKE_POLICY_INSTANCE_H_ | 82 #endif // COMPONENTS_ARC_TEST_FAKE_POLICY_INSTANCE_H_ |
| OLD | NEW |