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

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

Issue 2176373007: Use Nearby to background scan for URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make some variables private static final Created 4 years, 4 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 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 8
9 import com.google.android.gms.common.api.GoogleApiClient; 9 import com.google.android.gms.common.api.GoogleApiClient;
10 import com.google.android.gms.nearby.Nearby; 10 import com.google.android.gms.nearby.Nearby;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 /** 108 /**
109 * Create a MessageListener that listens during a foreground scan. 109 * Create a MessageListener that listens during a foreground scan.
110 * @return the MessageListener. 110 * @return the MessageListener.
111 */ 111 */
112 MessageListener createForegroundMessageListener() { 112 MessageListener createForegroundMessageListener() {
113 return new ForegroundMessageListener(); 113 return new ForegroundMessageListener();
114 } 114 }
115 115
116 /** 116 /**
117 * Get the URLs from a device within a message.
118 * @param message The Nearby message.
119 * @return The URL contained in the message.
120 */
121 String getUrlFromMessage(Message message) {
122 return null;
123 }
124
125 /**
117 * Modify a GoogleApiClient.Builder as necessary for doing Physical Web scan ning. 126 * Modify a GoogleApiClient.Builder as necessary for doing Physical Web scan ning.
118 * @param builder The builder to be modified. 127 * @param builder The builder to be modified.
119 * @return The Builder. 128 * @return The Builder.
120 */ 129 */
121 GoogleApiClient.Builder modifyGoogleApiClientBuilder(GoogleApiClient.Builder builder) { 130 GoogleApiClient.Builder modifyGoogleApiClientBuilder(GoogleApiClient.Builder builder) {
122 return builder.addApi(Nearby.MESSAGES_API); 131 return builder.addApi(Nearby.MESSAGES_API);
123 } 132 }
124 133
125 /** 134 /**
126 * Modify a MessageFilter.Builder as necessary for doing Physical Web scanni ng. 135 * Modify a MessageFilter.Builder as necessary for doing Physical Web scanni ng.
127 * @param builder The builder to be modified. 136 * @param builder The builder to be modified.
128 * @return The Builder. 137 * @return The Builder.
129 */ 138 */
130 MessageFilter.Builder modifyMessageFilterBuilder(MessageFilter.Builder build er) { 139 MessageFilter.Builder modifyMessageFilterBuilder(MessageFilter.Builder build er) {
131 return builder.includeAllMyTypes(); 140 return builder.includeAllMyTypes();
132 } 141 }
133 } 142 }
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java ('k') | chrome/android/java_sources.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698