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

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

Issue 7006005: Move UrlFetcher to content. I originally thought that it's only used by chrome code, but turns o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/service/cloud_print/cloud_print_helpers.h" 5 #include "chrome/service/cloud_print/cloud_print_helpers.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/md5.h" 8 #include "base/md5.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/stringprintf.h" 12 #include "base/stringprintf.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/service/cloud_print/cloud_print_consts.h" 16 #include "chrome/service/cloud_print/cloud_print_consts.h"
17 #include "chrome/common/net/url_fetcher.h"
18 #include "chrome/service/service_process.h" 17 #include "chrome/service/service_process.h"
18 #include "content/common/url_fetcher.h"
19 19
20 std::string StringFromJobStatus(cloud_print::PrintJobStatus status) { 20 std::string StringFromJobStatus(cloud_print::PrintJobStatus status) {
21 std::string ret; 21 std::string ret;
22 switch (status) { 22 switch (status) {
23 case cloud_print::PRINT_JOB_STATUS_IN_PROGRESS: 23 case cloud_print::PRINT_JOB_STATUS_IN_PROGRESS:
24 ret = "in_progress"; 24 ret = "in_progress";
25 break; 25 break;
26 case cloud_print::PRINT_JOB_STATUS_ERROR: 26 case cloud_print::PRINT_JOB_STATUS_ERROR:
27 ret = "error"; 27 ret = "error";
28 break; 28 break;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 258 }
259 259
260 bool CloudPrintHelpers::IsDryRunJob(const std::vector<std::string>& tags) { 260 bool CloudPrintHelpers::IsDryRunJob(const std::vector<std::string>& tags) {
261 std::vector<std::string>::const_iterator it; 261 std::vector<std::string>::const_iterator it;
262 for (it = tags.begin(); it != tags.end(); ++it) { 262 for (it = tags.begin(); it != tags.end(); ++it) {
263 if (*it == kTagDryRunFlag) 263 if (*it == kTagDryRunFlag)
264 return true; 264 return true;
265 } 265 }
266 return false; 266 return false;
267 } 267 }
OLDNEW
« no previous file with comments | « chrome/common/net/url_fetcher_unittest.cc ('k') | chrome/service/cloud_print/cloud_print_url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698