Chromium Code Reviews| Index: components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/gcd/InstanceCredential.java |
| diff --git a/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/gcd/InstanceCredential.java b/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/gcd/InstanceCredential.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ea1a56dd426e271b433e95eef058c80ae637d3a4 |
| --- /dev/null |
| +++ b/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/gcd/InstanceCredential.java |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.components.devtools_bridge.gcd; |
| + |
| +/** |
| + * Information what GCD provides when instance has registered. Instance id |
|
mnaganov (inactive)
2014/10/30 18:18:21
nit: Information provided by GCD when ...
SeRya
2014/10/31 07:40:16
Done.
|
| + * could be used for: |
|
mnaganov (inactive)
2014/10/30 18:18:21
nit: can be used
SeRya
2014/10/31 07:40:16
Done.
|
| + * 1. Making sure incoming messages are addressed to the instance. |
| + * 2. It needed when sending command results to GCD. |
| + * 3. For device unregistration. |
| + * |
| + * The Secret supposed to be used to authenticate the instance with OAuthClient |
| + * (it has no user credentials). |
| + */ |
| +public final class InstanceCredential { |
| + public final String id; |
| + public final String secret; |
| + |
| + public InstanceCredential(String id, String secret) { |
| + assert id != null; |
| + assert secret != null; |
| + |
| + this.id = id; |
| + this.secret = secret; |
| + } |
| +} |