| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 void clear_broadcasts() { broadcasts_.clear(); } | 37 void clear_broadcasts() { broadcasts_.clear(); } |
| 38 | 38 |
| 39 const std::vector<Broadcast>& broadcasts() const { return broadcasts_; } | 39 const std::vector<Broadcast>& broadcasts() const { return broadcasts_; } |
| 40 | 40 |
| 41 // mojom::IntentHelperInstance: | 41 // mojom::IntentHelperInstance: |
| 42 ~FakeIntentHelperInstance() override; | 42 ~FakeIntentHelperInstance() override; |
| 43 | 43 |
| 44 void AddPreferredPackage(const std::string& package_name) override; | 44 void AddPreferredPackage(const std::string& package_name) override; |
| 45 | 45 |
| 46 void GetFileSize(const std::string& url, | 46 void GetFileSizeDeprecated( |
| 47 const GetFileSizeCallback& callback) override; | 47 const std::string& url, |
| 48 const GetFileSizeDeprecatedCallback& callback) override; |
| 48 | 49 |
| 49 void HandleIntent(mojom::IntentInfoPtr intent, | 50 void HandleIntent(mojom::IntentInfoPtr intent, |
| 50 mojom::ActivityNamePtr activity) override; | 51 mojom::ActivityNamePtr activity) override; |
| 51 | 52 |
| 52 void HandleUrl(const std::string& url, | 53 void HandleUrl(const std::string& url, |
| 53 const std::string& package_name) override; | 54 const std::string& package_name) override; |
| 54 | 55 |
| 55 void HandleUrlList(std::vector<mojom::UrlWithMimeTypePtr> urls, | 56 void HandleUrlList(std::vector<mojom::UrlWithMimeTypePtr> urls, |
| 56 mojom::ActivityNamePtr activity, | 57 mojom::ActivityNamePtr activity, |
| 57 mojom::ActionType action) override; | 58 mojom::ActionType action) override; |
| 58 | 59 |
| 59 void Init(mojom::IntentHelperHostPtr host_ptr) override; | 60 void Init(mojom::IntentHelperHostPtr host_ptr) override; |
| 60 | 61 |
| 61 void OpenFileToRead(const std::string& url, | 62 void OpenFileToReadDeprecated( |
| 62 const OpenFileToReadCallback& callback) override; | 63 const std::string& url, |
| 64 const OpenFileToReadDeprecatedCallback& callback) override; |
| 63 | 65 |
| 64 void RequestActivityIcons( | 66 void RequestActivityIcons( |
| 65 std::vector<mojom::ActivityNamePtr> activities, | 67 std::vector<mojom::ActivityNamePtr> activities, |
| 66 ::arc::mojom::ScaleFactor scale_factor, | 68 ::arc::mojom::ScaleFactor scale_factor, |
| 67 const RequestActivityIconsCallback& callback) override; | 69 const RequestActivityIconsCallback& callback) override; |
| 68 | 70 |
| 69 void RequestIntentHandlerList( | 71 void RequestIntentHandlerList( |
| 70 mojom::IntentInfoPtr intent, | 72 mojom::IntentInfoPtr intent, |
| 71 const RequestIntentHandlerListCallback& callback) override; | 73 const RequestIntentHandlerListCallback& callback) override; |
| 72 | 74 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 85 | 87 |
| 86 private: | 88 private: |
| 87 std::vector<Broadcast> broadcasts_; | 89 std::vector<Broadcast> broadcasts_; |
| 88 | 90 |
| 89 DISALLOW_COPY_AND_ASSIGN(FakeIntentHelperInstance); | 91 DISALLOW_COPY_AND_ASSIGN(FakeIntentHelperInstance); |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 } // namespace arc | 94 } // namespace arc |
| 93 | 95 |
| 94 #endif // COMPONENTS_ARC_TEST_FAKE_INTENT_HELPER_INSTANCE_H_ | 96 #endif // COMPONENTS_ARC_TEST_FAKE_INTENT_HELPER_INSTANCE_H_ |
| OLD | NEW |