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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.java

Issue 2746013009: Use NearbyPermissions.BLE for Physical Web (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/physicalweb/NearbySubscription.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 package org.chromium.chrome.browser.physicalweb; 5 package org.chromium.chrome.browser.physicalweb;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.os.Handler; 8 import android.os.Handler;
9 import android.os.Looper; 9 import android.os.Looper;
10 10
11 import com.google.android.gms.common.api.GoogleApiClient;
12 import com.google.android.gms.nearby.Nearby;
13 import com.google.android.gms.nearby.messages.Message; 11 import com.google.android.gms.nearby.messages.Message;
14 import com.google.android.gms.nearby.messages.MessageFilter; 12 import com.google.android.gms.nearby.messages.MessageFilter;
15 import com.google.android.gms.nearby.messages.MessageListener; 13 import com.google.android.gms.nearby.messages.MessageListener;
16 14
17 import org.chromium.base.Log; 15 import org.chromium.base.Log;
18 import org.chromium.chrome.browser.AppHooks; 16 import org.chromium.chrome.browser.AppHooks;
19 17
20 /** 18 /**
21 * The Client that harvests URLs from BLE signals. 19 * The Client that harvests URLs from BLE signals.
22 * This class is designed to scan URSs from Bluetooth Low Energy beacons. 20 * This class is designed to scan URSs from Bluetooth Low Energy beacons.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 /** 149 /**
152 * Get the URLs from a device within a message. 150 * Get the URLs from a device within a message.
153 * @param message The Nearby message. 151 * @param message The Nearby message.
154 * @return The URL contained in the message. 152 * @return The URL contained in the message.
155 */ 153 */
156 String getUrlFromMessage(Message message) { 154 String getUrlFromMessage(Message message) {
157 return null; 155 return null;
158 } 156 }
159 157
160 /** 158 /**
161 * Modify a GoogleApiClient.Builder as necessary for doing Physical Web scan ning.
162 * @param builder The builder to be modified.
163 * @return The Builder.
164 */
165 GoogleApiClient.Builder modifyGoogleApiClientBuilder(GoogleApiClient.Builder builder) {
166 return builder.addApi(Nearby.MESSAGES_API);
167 }
168
169 /**
170 * Modify a MessageFilter.Builder as necessary for doing Physical Web scanni ng. 159 * Modify a MessageFilter.Builder as necessary for doing Physical Web scanni ng.
171 * @param builder The builder to be modified. 160 * @param builder The builder to be modified.
172 * @return The Builder. 161 * @return The Builder.
173 */ 162 */
174 MessageFilter.Builder modifyMessageFilterBuilder(MessageFilter.Builder build er) { 163 MessageFilter.Builder modifyMessageFilterBuilder(MessageFilter.Builder build er) {
175 return builder.includeAllMyTypes(); 164 return builder.includeAllMyTypes();
176 } 165 }
177 } 166 }
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/physicalweb/NearbySubscription.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698