| 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 #include "chrome/common/net/gaia/oauth2_mint_token_flow.h" | 5 #include "chrome/common/net/gaia/oauth2_mint_token_flow.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 19 #include "chrome/common/net/gaia/gaia_urls.h" | 19 #include "chrome/common/net/gaia/gaia_urls.h" |
| 20 #include "chrome/common/net/gaia/google_service_auth_error.h" | 20 #include "chrome/common/net/gaia/google_service_auth_error.h" |
| 21 #include "content/public/common/url_fetcher.h" | 21 #include "content/public/common/url_fetcher.h" |
| 22 #include "net/base/escape.h" | 22 #include "net/base/escape.h" |
| 23 #include "net/url_request/url_request_context_getter.h" | 23 #include "net/url_request/url_request_context_getter.h" |
| 24 #include "net/url_request/url_request_status.h" | 24 #include "net/url_request/url_request_status.h" |
| 25 | 25 |
| 26 using content::URLFetcher; | 26 using net::URLFetcher; |
| 27 using net::URLRequestContextGetter; | 27 using net::URLRequestContextGetter; |
| 28 using net::URLRequestStatus; | 28 using net::URLRequestStatus; |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 static const char kForceValueFalse[] = "false"; | 32 static const char kForceValueFalse[] = "false"; |
| 33 static const char kForceValueTrue[] = "true"; | 33 static const char kForceValueTrue[] = "true"; |
| 34 static const char kResponseTypeValueNone[] = "none"; | 34 static const char kResponseTypeValueNone[] = "none"; |
| 35 static const char kResponseTypeValueToken[] = "token"; | 35 static const char kResponseTypeValueToken[] = "token"; |
| 36 | 36 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 Tokenize(detail, kDetailSeparators, &entry.details); | 263 Tokenize(detail, kDetailSeparators, &entry.details); |
| 264 issue_advice->push_back(entry); | 264 issue_advice->push_back(entry); |
| 265 } | 265 } |
| 266 | 266 |
| 267 if (!success) | 267 if (!success) |
| 268 issue_advice->clear(); | 268 issue_advice->clear(); |
| 269 | 269 |
| 270 return success; | 270 return success; |
| 271 } | 271 } |
| OLD | NEW |