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_url_generator.h" | 5 #include "google_apis/drive/drive_api_url_generator.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "net/base/escape.h" | 10 #include "net/base/escape.h" |
11 #include "net/base/url_util.h" | 11 #include "net/base/url_util.h" |
12 | 12 |
13 namespace google_apis { | 13 namespace google_apis { |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 net::EscapePath(resource_id)); | 168 net::EscapePath(resource_id)); |
169 return AddResumableUploadParam(url); | 169 return AddResumableUploadParam(url); |
170 } | 170 } |
171 | 171 |
172 GURL DriveApiUrlGenerator::GenerateDownloadFileUrl( | 172 GURL DriveApiUrlGenerator::GenerateDownloadFileUrl( |
173 const std::string& resource_id) const { | 173 const std::string& resource_id) const { |
174 return base_download_url_.Resolve(net::EscapePath(resource_id)); | 174 return base_download_url_.Resolve(net::EscapePath(resource_id)); |
175 } | 175 } |
176 | 176 |
177 } // namespace google_apis | 177 } // namespace google_apis |
OLD | NEW |