Chromium Code Reviews

Unified Diff: chrome/service/cloud_print/cloud_print_helpers.h

Issue 4165013: Re-landing issue 4202006 (http://codereview.chromium.org/4202006/show) which ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/service/cloud_print/cloud_print_consts.cc ('k') | chrome/service/cloud_print/cloud_print_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_helpers.h
===================================================================
--- chrome/service/cloud_print/cloud_print_helpers.h (revision 64444)
+++ chrome/service/cloud_print/cloud_print_helpers.h (working copy)
@@ -40,28 +40,7 @@
// Returns the response as a dictionary value.
static bool ParseResponseJSON(const std::string& response_data,
bool* succeeded, DictionaryValue** response_dict);
- // Sets up common parameters for a cloud print request
- // (such as the GAIA auth token in the request headers, the request context
- // etc).
- static void PrepCloudPrintRequest(URLFetcher* request,
- const std::string& auth_token);
- // Strictly speaking, this helper method is not specific to cloud printing.
- // It handles the logic to retry tasks when the server returns an error.
- // The parameters are as below:
- // |error_count| Contains the current number of consecutive failed attempts.
- // This method increments it (in/out)
- // |max_retry_count| Number of retries before giving up. -1 implies no limit.
- // |max_retry_interval| Maximum amount of time (in ms) we are willing to
- // wait between retries. -1 implies no limit.
- // |base_retry_interval| Starting value of the retry interval. This
- // method progressively increases the interval on each retry.
- // |task_to_retry| The task to be retried.
- // |task_on_give_up| Task to be performed when we give up. This is only
- // valid when max_retry_count is not -1. It can be NULL.
- static void HandleServerError(int* error_count, int max_retry_count,
- int64 max_retry_interval,
- int64 base_retry_interval,
- Task* task_to_retry, Task* task_on_give_up);
+
// Prepares one value as part of a multi-part upload request.
static void AddMultipartValueForUpload(
const std::string& value_name, const std::string& value,
« no previous file with comments | « chrome/service/cloud_print/cloud_print_consts.cc ('k') | chrome/service/cloud_print/cloud_print_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine