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/browser/history/web_history_service.h" | 5 #include "chrome/browser/history/web_history_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/signin/oauth2_token_service.h" | 14 #include "chrome/browser/signin/oauth2_token_service.h" |
15 #include "chrome/browser/signin/profile_oauth2_token_service.h" | 15 #include "chrome/browser/signin/profile_oauth2_token_service.h" |
16 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 16 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
17 #include "google_apis/gaia/gaia_urls.h" | 17 #include "google_apis/gaia/gaia_urls.h" |
18 #include "google_apis/gaia/google_service_auth_error.h" | 18 #include "google_apis/gaia/google_service_auth_error.h" |
19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
20 #include "net/base/load_flags.h" | 20 #include "net/base/load_flags.h" |
21 #include "net/base/url_util.h" | 21 #include "net/base/url_util.h" |
22 #include "net/http/http_status_code.h" | 22 #include "net/http/http_status_code.h" |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 scoped_ptr<DictionaryValue> response_value; | 389 scoped_ptr<DictionaryValue> response_value; |
390 if (success) { | 390 if (success) { |
391 response_value = ReadResponse(static_cast<RequestImpl*>(request)); | 391 response_value = ReadResponse(static_cast<RequestImpl*>(request)); |
392 if (response_value) | 392 if (response_value) |
393 response_value->GetString("version_info", &server_version_info_); | 393 response_value->GetString("version_info", &server_version_info_); |
394 } | 394 } |
395 callback.Run(request, response_value.get() && success); | 395 callback.Run(request, response_value.get() && success); |
396 } | 396 } |
397 | 397 |
398 } // namespace history | 398 } // namespace history |
OLD | NEW |