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

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

Issue 2528893003: [PhysicalWeb] Add physical_web namespace. (Closed)
Patch Set: Created 4 years 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 27 matching lines...) Expand all
38 // caller. Call only once. 38 // caller. Call only once.
39 std::unique_ptr<base::ListValue> GetMetadataList(); 39 std::unique_ptr<base::ListValue> GetMetadataList();
40 40
41 private: 41 private:
42 std::unique_ptr<base::ListValue> metadata_list_; 42 std::unique_ptr<base::ListValue> metadata_list_;
43 bool accessed_once_; 43 bool accessed_once_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(PhysicalWebCollection); 45 DISALLOW_COPY_AND_ASSIGN(PhysicalWebCollection);
46 }; 46 };
47 47
48 class PhysicalWebDataSourceAndroid : public PhysicalWebDataSourceImpl { 48 class PhysicalWebDataSourceAndroid
49 : public physical_web::PhysicalWebDataSourceImpl {
49 public: 50 public:
50 PhysicalWebDataSourceAndroid(); 51 PhysicalWebDataSourceAndroid();
51 ~PhysicalWebDataSourceAndroid() override; 52 ~PhysicalWebDataSourceAndroid() override;
52 53
53 static bool RegisterPhysicalWebDataSource(JNIEnv* env); 54 static bool RegisterPhysicalWebDataSource(JNIEnv* env);
54 55
55 void Initialize(); 56 void Initialize();
56 57
57 void StartDiscovery(bool network_request_enabled) override; 58 void StartDiscovery(bool network_request_enabled) override;
58 void StopDiscovery() override; 59 void StopDiscovery() override;
(...skipping 13 matching lines...) Expand all
72 jdouble distance_estimate); 73 jdouble distance_estimate);
73 74
74 private: 75 private:
75 // A reference to the Java UrlManager singleton. 76 // A reference to the Java UrlManager singleton.
76 base::android::ScopedJavaGlobalRef<jobject> url_manager_; 77 base::android::ScopedJavaGlobalRef<jobject> url_manager_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(PhysicalWebDataSourceAndroid); 79 DISALLOW_COPY_AND_ASSIGN(PhysicalWebDataSourceAndroid);
79 }; 80 };
80 81
81 #endif // CHROME_BROWSER_ANDROID_PHYSICAL_WEB_PHYSICAL_WEB_DATA_SOURCE_ANDROID_ H_ 82 #endif // CHROME_BROWSER_ANDROID_PHYSICAL_WEB_PHYSICAL_WEB_DATA_SOURCE_ANDROID_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698