Chromium Code Reviews| Index: chrome/browser/ui/webui/identity_internals/identity_internals.mojom |
| diff --git a/chrome/browser/ui/webui/identity_internals/identity_internals.mojom b/chrome/browser/ui/webui/identity_internals/identity_internals.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5cc968aa8855e5901bc2e39da05846bb8ffce87f |
| --- /dev/null |
| +++ b/chrome/browser/ui/webui/identity_internals/identity_internals.mojom |
| @@ -0,0 +1,23 @@ |
| +// 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. |
| + |
| +struct IdentityTokenMojo { |
| + string access_token; |
| + string extension_name; |
| + string extension_id; |
| + string token_status; |
| + string expiration_time; |
| + string[] scopes; |
| +}; |
| + |
| +[Client=InternalsPage] |
| +interface IdentityInternalsHandlerMojo { |
| + GetTokens(); |
| + RevokeToken(string extension_id, string access_token); |
| +}; |
| + |
| +interface InternalsPage { |
| + GetTokensDone(IdentityTokenMojo[] tokens); // was returnTokens |
|
darin (slow to review)
2014/07/04 14:27:06
perhaps these should be modeled as callbacks?
Get
|
| + RevokeTokenDone(string access_token); // was tokenRevokeDone |
| +}; |