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

Side by Side Diff: components/arc/test/fake_intent_helper_instance.h

Issue 2467213002: arc: Implement Read and GetFileSize for ARC content file system (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_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 26 matching lines...) Expand all
37 37
38 void clear_broadcasts() { broadcasts_.clear(); } 38 void clear_broadcasts() { broadcasts_.clear(); }
39 39
40 const std::vector<Broadcast>& broadcasts() const { return broadcasts_; } 40 const std::vector<Broadcast>& broadcasts() const { return broadcasts_; }
41 41
42 // mojom::IntentHelperInstance: 42 // mojom::IntentHelperInstance:
43 ~FakeIntentHelperInstance() override; 43 ~FakeIntentHelperInstance() override;
44 44
45 void AddPreferredPackage(const mojo::String& package_name) override; 45 void AddPreferredPackage(const mojo::String& package_name) override;
46 46
47 void GetFileSize(const mojo::String& url,
48 const GetFileSizeCallback& callback) override;
49
47 void HandleIntent(mojom::IntentInfoPtr intent, 50 void HandleIntent(mojom::IntentInfoPtr intent,
48 mojom::ActivityNamePtr activity) override; 51 mojom::ActivityNamePtr activity) override;
49 52
50 void HandleUrl(const mojo::String& url, 53 void HandleUrl(const mojo::String& url,
51 const mojo::String& package_name) override; 54 const mojo::String& package_name) override;
52 55
53 void HandleUrlList(mojo::Array<mojom::UrlWithMimeTypePtr> urls, 56 void HandleUrlList(mojo::Array<mojom::UrlWithMimeTypePtr> urls,
54 mojom::ActivityNamePtr activity, 57 mojom::ActivityNamePtr activity,
55 mojom::ActionType action) override; 58 mojom::ActionType action) override;
56 59
57 void Init(mojom::IntentHelperHostPtr host_ptr) override; 60 void Init(mojom::IntentHelperHostPtr host_ptr) override;
58 61
62 void OpenFileToRead(const mojo::String& url,
63 const OpenFileToReadCallback& callback) override;
64
59 void RequestActivityIcons( 65 void RequestActivityIcons(
60 mojo::Array<mojom::ActivityNamePtr> activities, 66 mojo::Array<mojom::ActivityNamePtr> activities,
61 ::arc::mojom::ScaleFactor scale_factor, 67 ::arc::mojom::ScaleFactor scale_factor,
62 const RequestActivityIconsCallback& callback) override; 68 const RequestActivityIconsCallback& callback) override;
63 69
64 void RequestIntentHandlerList( 70 void RequestIntentHandlerList(
65 mojom::IntentInfoPtr intent, 71 mojom::IntentInfoPtr intent,
66 const RequestIntentHandlerListCallback& callback) override; 72 const RequestIntentHandlerListCallback& callback) override;
67 73
68 void RequestUrlHandlerList( 74 void RequestUrlHandlerList(
(...skipping 11 matching lines...) Expand all
80 86
81 private: 87 private:
82 std::vector<Broadcast> broadcasts_; 88 std::vector<Broadcast> broadcasts_;
83 89
84 DISALLOW_COPY_AND_ASSIGN(FakeIntentHelperInstance); 90 DISALLOW_COPY_AND_ASSIGN(FakeIntentHelperInstance);
85 }; 91 };
86 92
87 } // namespace arc 93 } // namespace arc
88 94
89 #endif // COMPONENTS_ARC_TEST_FAKE_POLICY_INSTANCE_H_ 95 #endif // COMPONENTS_ARC_TEST_FAKE_POLICY_INSTANCE_H_
OLDNEW
« no previous file with comments | « components/arc/common/intent_helper.mojom ('k') | components/arc/test/fake_intent_helper_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698