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

Side by Side Diff: chrome/browser/android/physical_web/physical_web_data_source_android.h

Issue 2403423005: Expose Physical Web metadata to native clients over JNI (Closed)
Patch Set: rebase Created 4 years, 2 months 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 CHROME_BROWSER_ANDROID_PHYSICAL_WEB_PHYSICAL_WEB_DATA_SOURCE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_PHYSICAL_WEB_PHYSICAL_WEB_DATA_SOURCE_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_PHYSICAL_WEB_PHYSICAL_WEB_DATA_SOURCE_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_PHYSICAL_WEB_PHYSICAL_WEB_DATA_SOURCE_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 16 matching lines...) Expand all
27 void StartDiscovery(bool network_request_enabled) override; 27 void StartDiscovery(bool network_request_enabled) override;
28 void StopDiscovery() override; 28 void StopDiscovery() override;
29 29
30 std::unique_ptr<base::ListValue> GetMetadata() override; 30 std::unique_ptr<base::ListValue> GetMetadata() override;
31 bool HasUnresolvedDiscoveries() override; 31 bool HasUnresolvedDiscoveries() override;
32 32
33 private: 33 private:
34 // A reference to the Java UrlManager singleton. 34 // A reference to the Java UrlManager singleton.
35 base::android::ScopedJavaGlobalRef<jobject> url_manager_; 35 base::android::ScopedJavaGlobalRef<jobject> url_manager_;
36 36
37 // Cached field IDs.
38 jfieldID url_infos_fid_;
39 jfieldID pws_results_fid_;
40 jfieldID url_fid_;
41 jfieldID distance_fid_;
42 jfieldID scan_timestamp_fid_;
43 jfieldID site_url_fid_;
44 jfieldID icon_url_fid_;
45 jfieldID title_fid_;
46 jfieldID description_fid_;
47 jfieldID group_id_fid_;
48
37 DISALLOW_COPY_AND_ASSIGN(PhysicalWebDataSourceAndroid); 49 DISALLOW_COPY_AND_ASSIGN(PhysicalWebDataSourceAndroid);
38 }; 50 };
39 51
40 #endif // CHROME_BROWSER_ANDROID_PHYSICAL_WEB_PHYSICAL_WEB_DATA_SOURCE_ANDROID_ H_ 52 #endif // CHROME_BROWSER_ANDROID_PHYSICAL_WEB_PHYSICAL_WEB_DATA_SOURCE_ANDROID_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698