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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_operations.cc

Issue 10827098: Update the number of fetched files more frequently. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update the number of fetched files more frequently. Created 8 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/chromeos/gdata/gdata_operations.h" 5 #include "chrome/browser/chromeos/gdata/gdata_operations.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/chromeos/gdata/gdata_util.h" 10 #include "chrome/browser/chromeos/gdata/gdata_util.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const char kGetContactsUpdatedMinParam[] = "updated-min"; 62 const char kGetContactsUpdatedMinParam[] = "updated-min";
63 63
64 const char kUploadContentRange[] = "Content-Range: bytes "; 64 const char kUploadContentRange[] = "Content-Range: bytes ";
65 const char kUploadContentType[] = "X-Upload-Content-Type: "; 65 const char kUploadContentType[] = "X-Upload-Content-Type: ";
66 const char kUploadContentLength[] = "X-Upload-Content-Length: "; 66 const char kUploadContentLength[] = "X-Upload-Content-Length: ";
67 67
68 #ifndef NDEBUG 68 #ifndef NDEBUG
69 // Use smaller 'page' size while debugging to ensure we hit feed reload 69 // Use smaller 'page' size while debugging to ensure we hit feed reload
70 // almost always. Be careful not to use something too small on account that 70 // almost always. Be careful not to use something too small on account that
71 // have many items because server side 503 error might kick in. 71 // have many items because server side 503 error might kick in.
72 const int kMaxDocumentsPerFeed = 1000; 72 const int kMaxDocumentsPerFeed = 500;
73 #else 73 #else
74 const int kMaxDocumentsPerFeed = 1000; 74 const int kMaxDocumentsPerFeed = 500;
75 #endif 75 #endif
76 76
77 const char kFeedField[] = "feed"; 77 const char kFeedField[] = "feed";
78 78
79 // Templates for file uploading. 79 // Templates for file uploading.
80 const char kUploadParamConvertKey[] = "convert"; 80 const char kUploadParamConvertKey[] = "convert";
81 const char kUploadParamConvertValue[] = "false"; 81 const char kUploadParamConvertValue[] = "false";
82 const char kUploadResponseLocation[] = "location"; 82 const char kUploadResponseLocation[] = "location";
83 const char kUploadResponseRange[] = "range"; 83 const char kUploadResponseRange[] = "range";
84 84
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 OnProcessURLFetchResultsComplete(code == HTTP_SUCCESS); 941 OnProcessURLFetchResultsComplete(code == HTTP_SUCCESS);
942 } 942 }
943 943
944 void GetContactPhotoOperation::RunCallbackOnPrematureFailure( 944 void GetContactPhotoOperation::RunCallbackOnPrematureFailure(
945 GDataErrorCode code) { 945 GDataErrorCode code) {
946 scoped_ptr<std::string> data(new std::string); 946 scoped_ptr<std::string> data(new std::string);
947 callback_.Run(code, data.Pass()); 947 callback_.Run(code, data.Pass());
948 } 948 }
949 949
950 } // namespace gdata 950 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698