| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef GOOGLE_APIS_GAIA_OAUTH2_MINT_TOKEN_FLOW_H_ | 5 #ifndef GOOGLE_APIS_GAIA_OAUTH2_MINT_TOKEN_FLOW_H_ |
| 6 #define GOOGLE_APIS_GAIA_OAUTH2_MINT_TOKEN_FLOW_H_ | 6 #define GOOGLE_APIS_GAIA_OAUTH2_MINT_TOKEN_FLOW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // - Detail 2.1 | 36 // - Detail 2.1 |
| 37 // - Detail 2.2 | 37 // - Detail 2.2 |
| 38 // - Detail 2.3 | 38 // - Detail 2.3 |
| 39 // * Description 3 | 39 // * Description 3 |
| 40 // - Detail 3.1 | 40 // - Detail 3.1 |
| 41 struct IssueAdviceInfoEntry { | 41 struct IssueAdviceInfoEntry { |
| 42 public: | 42 public: |
| 43 IssueAdviceInfoEntry(); | 43 IssueAdviceInfoEntry(); |
| 44 ~IssueAdviceInfoEntry(); | 44 ~IssueAdviceInfoEntry(); |
| 45 | 45 |
| 46 string16 description; | 46 base::string16 description; |
| 47 std::vector<string16> details; | 47 std::vector<base::string16> details; |
| 48 | 48 |
| 49 bool operator==(const IssueAdviceInfoEntry& rhs) const; | 49 bool operator==(const IssueAdviceInfoEntry& rhs) const; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 typedef std::vector<IssueAdviceInfoEntry> IssueAdviceInfo; | 52 typedef std::vector<IssueAdviceInfoEntry> IssueAdviceInfo; |
| 53 | 53 |
| 54 // This class implements the OAuth2 flow to Google to mint an OAuth2 | 54 // This class implements the OAuth2 flow to Google to mint an OAuth2 |
| 55 // token for the given client and the given set of scopes from the | 55 // token for the given client and the given set of scopes from the |
| 56 // OAuthLogin scoped "master" OAuth2 token for the user logged in to | 56 // OAuthLogin scoped "master" OAuth2 token for the user logged in to |
| 57 // Chrome. | 57 // Chrome. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 int* time_to_live); | 138 int* time_to_live); |
| 139 | 139 |
| 140 Delegate* delegate_; | 140 Delegate* delegate_; |
| 141 Parameters parameters_; | 141 Parameters parameters_; |
| 142 base::WeakPtrFactory<OAuth2MintTokenFlow> weak_factory_; | 142 base::WeakPtrFactory<OAuth2MintTokenFlow> weak_factory_; |
| 143 | 143 |
| 144 DISALLOW_COPY_AND_ASSIGN(OAuth2MintTokenFlow); | 144 DISALLOW_COPY_AND_ASSIGN(OAuth2MintTokenFlow); |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 #endif // GOOGLE_APIS_GAIA_OAUTH2_MINT_TOKEN_FLOW_H_ | 147 #endif // GOOGLE_APIS_GAIA_OAUTH2_MINT_TOKEN_FLOW_H_ |
| OLD | NEW |