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/chromeos/gdata/operations_base.h" | 5 #include "chrome/browser/chromeos/gdata/operations_base.h" |
6 | 6 |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/common/net/gaia/gaia_urls.h" | |
14 #include "chrome/common/net/gaia/google_service_auth_error.h" | |
15 #include "chrome/common/net/gaia/oauth2_access_token_fetcher.h" | |
16 #include "chrome/common/net/url_util.h" | 13 #include "chrome/common/net/url_util.h" |
17 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "google_apis/gaia/gaia_urls.h" |
| 16 #include "google_apis/gaia/google_service_auth_error.h" |
| 17 #include "google_apis/gaia/oauth2_access_token_fetcher.h" |
18 #include "net/base/load_flags.h" | 18 #include "net/base/load_flags.h" |
19 #include "net/http/http_util.h" | 19 #include "net/http/http_util.h" |
20 #include "net/url_request/url_fetcher.h" | 20 #include "net/url_request/url_fetcher.h" |
21 #include "net/url_request/url_request_status.h" | 21 #include "net/url_request/url_request_status.h" |
22 | 22 |
23 using content::BrowserThread; | 23 using content::BrowserThread; |
24 using net::URLFetcher; | 24 using net::URLFetcher; |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 } | 417 } |
418 | 418 |
419 void GetDataOperation::RunCallback(GDataErrorCode fetch_error_code, | 419 void GetDataOperation::RunCallback(GDataErrorCode fetch_error_code, |
420 scoped_ptr<base::Value> value) { | 420 scoped_ptr<base::Value> value) { |
421 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 421 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
422 if (!callback_.is_null()) | 422 if (!callback_.is_null()) |
423 callback_.Run(fetch_error_code, value.Pass()); | 423 callback_.Run(fetch_error_code, value.Pass()); |
424 } | 424 } |
425 | 425 |
426 } // namespace gdata | 426 } // namespace gdata |
OLD | NEW |