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

Side by Side Diff: chrome/browser/google_apis/gdata_wapi_url_generator.cc

Issue 12412020: drive: Include "include-shared=true" for including shared resources in feeds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 9 months 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 "chrome/browser/google_apis/gdata_wapi_url_generator.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "net/base/escape.h" 10 #include "net/base/escape.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 // static 77 // static
78 GURL GDataWapiUrlGenerator::AddFeedUrlParams( 78 GURL GDataWapiUrlGenerator::AddFeedUrlParams(
79 const GURL& url, 79 const GURL& url,
80 int num_items_to_fetch, 80 int num_items_to_fetch,
81 int changestamp, 81 int changestamp,
82 const std::string& search_string) { 82 const std::string& search_string) {
83 GURL result = AddStandardUrlParams(url); 83 GURL result = AddStandardUrlParams(url);
84 result = net::AppendOrReplaceQueryParameter(result, "showfolders", "true"); 84 result = net::AppendOrReplaceQueryParameter(result, "showfolders", "true");
85 result = net::AppendOrReplaceQueryParameter(result, "include-shared", "true");
85 result = net::AppendOrReplaceQueryParameter( 86 result = net::AppendOrReplaceQueryParameter(
86 result, 87 result,
87 "max-results", 88 "max-results",
88 base::StringPrintf("%d", num_items_to_fetch)); 89 base::StringPrintf("%d", num_items_to_fetch));
89 result = net::AppendOrReplaceQueryParameter( 90 result = net::AppendOrReplaceQueryParameter(
90 result, "include-installed-apps", "true"); 91 result, "include-installed-apps", "true");
91 92
92 if (changestamp) { 93 if (changestamp) {
93 result = net::AppendQueryParameter(result, 94 result = net::AppendQueryParameter(result,
94 "start-index", 95 "start-index",
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool include_installed_apps) const { 205 bool include_installed_apps) const {
205 GURL result = AddStandardUrlParams(base_url_.Resolve(kAccountMetadataURL)); 206 GURL result = AddStandardUrlParams(base_url_.Resolve(kAccountMetadataURL));
206 if (include_installed_apps) { 207 if (include_installed_apps) {
207 result = net::AppendOrReplaceQueryParameter( 208 result = net::AppendOrReplaceQueryParameter(
208 result, "include-installed-apps", "true"); 209 result, "include-installed-apps", "true");
209 } 210 }
210 return result; 211 return result;
211 } 212 }
212 213
213 } // namespace google_apis 214 } // namespace google_apis
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698