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/google_apis/drive_api_requests.h" | 5 #include "google_apis/drive/drive_api_requests.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "base/task_runner_util.h" | 12 #include "base/task_runner_util.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/google_apis/drive_api_parser.h" | 14 #include "google_apis/drive/drive_api_parser.h" |
15 #include "chrome/browser/google_apis/request_sender.h" | 15 #include "google_apis/drive/request_sender.h" |
16 #include "chrome/browser/google_apis/request_util.h" | 16 #include "google_apis/drive/request_util.h" |
17 #include "chrome/browser/google_apis/time_util.h" | 17 #include "google_apis/drive/time_util.h" |
18 #include "net/base/url_util.h" | 18 #include "net/base/url_util.h" |
19 | 19 |
20 namespace google_apis { | 20 namespace google_apis { |
21 namespace { | 21 namespace { |
22 | 22 |
23 const char kContentTypeApplicationJson[] = "application/json"; | 23 const char kContentTypeApplicationJson[] = "application/json"; |
24 const char kParentLinkKind[] = "drive#fileLink"; | 24 const char kParentLinkKind[] = "drive#fileLink"; |
25 | 25 |
26 // Parses the JSON value to a resource typed |T| and runs |callback| on the UI | 26 // Parses the JSON value to a resource typed |T| and runs |callback| on the UI |
27 // thread once parsing is done. | 27 // thread once parsing is done. |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 progress_callback, | 706 progress_callback, |
707 url_generator.GenerateDownloadFileUrl(resource_id), | 707 url_generator.GenerateDownloadFileUrl(resource_id), |
708 output_file_path) { | 708 output_file_path) { |
709 } | 709 } |
710 | 710 |
711 DownloadFileRequest::~DownloadFileRequest() { | 711 DownloadFileRequest::~DownloadFileRequest() { |
712 } | 712 } |
713 | 713 |
714 } // namespace drive | 714 } // namespace drive |
715 } // namespace google_apis | 715 } // namespace google_apis |
OLD | NEW |