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

Side by Side Diff: google_apis/drive/gdata_wapi_url_generator.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/gdata_wapi_url_generator.h" 5 #include "google_apis/drive/gdata_wapi_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 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace google_apis { 14 namespace google_apis {
15 namespace { 15 namespace {
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 GURL GDataWapiUrlGenerator::GenerateDownloadFileUrl( 241 GURL GDataWapiUrlGenerator::GenerateDownloadFileUrl(
242 const std::string& resource_id) const { 242 const std::string& resource_id) const {
243 // Strip the file type prefix before the colon character. 243 // Strip the file type prefix before the colon character.
244 size_t colon = resource_id.find(':'); 244 size_t colon = resource_id.find(':');
245 return base_download_url_.Resolve(net::EscapePath( 245 return base_download_url_.Resolve(net::EscapePath(
246 colon == std::string::npos ? resource_id 246 colon == std::string::npos ? resource_id
247 : resource_id.substr(colon + 1))); 247 : resource_id.substr(colon + 1)));
248 } 248 }
249 249
250 } // namespace google_apis 250 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/gdata_wapi_url_generator.h ('k') | google_apis/drive/gdata_wapi_url_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698