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

Side by Side Diff: chrome/android/java_staging/src/org/chromium/chrome/browser/gcore/ChromeGoogleApiClient.java

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.gcore;
6
7 /**
8 * Client used to communicate with GmsCore using Google API. Meant to be
9 * used in a synchronous way with {@link ConnectedTask}.
10 */
11 public interface ChromeGoogleApiClient {
12 /**
13 * Connects the GMS Core client.
14 * Does nothing if the client is already connected.
15 * @param timeoutMillis after which connection is considered unsuccessful
16 * @return whether connection was successful
17 */
18 boolean connectWithTimeout(long timeoutMillis);
19
20 /**
21 * Disconnects client.
22 * Can be safely called on disconnected clients. It will then just clear the queued calls
23 * submitted since the last disconnection.
24 */
25 void disconnect();
26
27 /**
28 * Checks if Google Play Services are available.
29 */
30 boolean isGooglePlayServicesAvailable();
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698