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

Side by Side Diff: chrome/service/cloud_print/cloud_print_helpers.h

Issue 6245005: Code to send diagnostic messages about cloud print proxy. Currently diagnosti... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fixed build errors yet again Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 const std::string& proxy_id); 28 const std::string& proxy_id);
29 static GURL GetUrlForJobFetch(const GURL& cloud_print_server_url, 29 static GURL GetUrlForJobFetch(const GURL& cloud_print_server_url,
30 const std::string& printer_id, 30 const std::string& printer_id,
31 const std::string& reason); 31 const std::string& reason);
32 static GURL GetUrlForJobStatusUpdate(const GURL& cloud_print_server_url, 32 static GURL GetUrlForJobStatusUpdate(const GURL& cloud_print_server_url,
33 const std::string& job_id, 33 const std::string& job_id,
34 cloud_print::PrintJobStatus status); 34 cloud_print::PrintJobStatus status);
35 static GURL GetUrlForJobStatusUpdate( 35 static GURL GetUrlForJobStatusUpdate(
36 const GURL& cloud_print_server_url, const std::string& job_id, 36 const GURL& cloud_print_server_url, const std::string& job_id,
37 const cloud_print::PrintJobDetails& details); 37 const cloud_print::PrintJobDetails& details);
38 static GURL GetUrlForUserMessage(const GURL& cloud_print_server_url,
39 const std::string& message_id);
40
38 // Parses the response data for any cloud print server request. The method 41 // Parses the response data for any cloud print server request. The method
39 // returns false if there was an error in parsing the JSON. The succeeded 42 // returns false if there was an error in parsing the JSON. The succeeded
40 // value returns the value of the "success" value in the response JSON. 43 // value returns the value of the "success" value in the response JSON.
41 // Returns the response as a dictionary value. 44 // Returns the response as a dictionary value.
42 static bool ParseResponseJSON(const std::string& response_data, 45 static bool ParseResponseJSON(const std::string& response_data,
43 bool* succeeded, DictionaryValue** response_dict); 46 bool* succeeded, DictionaryValue** response_dict);
44 47
45 // Prepares one value as part of a multi-part upload request. 48 // Prepares one value as part of a multi-part upload request.
46 static void AddMultipartValueForUpload( 49 static void AddMultipartValueForUpload(
47 const std::string& value_name, const std::string& value, 50 const std::string& value_name, const std::string& value,
(...skipping 11 matching lines...) Expand all
59 62
60 // Returns true is tags indicate a dry run (test) job. 63 // Returns true is tags indicate a dry run (test) job.
61 static bool IsDryRunJob(const std::vector<std::string>& tags); 64 static bool IsDryRunJob(const std::vector<std::string>& tags);
62 private: 65 private:
63 CloudPrintHelpers() { 66 CloudPrintHelpers() {
64 } 67 }
65 }; 68 };
66 69
67 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_ 70 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_
68 71
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698