Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: google_apis/drive/drive_api_requests.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_requests.h ('k') | google_apis/drive/drive_api_requests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698