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

Side by Side Diff: chrome/browser/local_discovery/privet_constants.cc

Issue 61643021: If a job fails when sending a PDF, retry with a PWG raster (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/local_discovery/privet_constants.h" 5 #include "chrome/browser/local_discovery/privet_constants.h"
6 6
7 namespace local_discovery { 7 namespace local_discovery {
8 8
9 const char kPrivetKeyError[] = "error"; 9 const char kPrivetKeyError[] = "error";
10 const char kPrivetInfoKeyToken[] = "x-privet-token"; 10 const char kPrivetInfoKeyToken[] = "x-privet-token";
11 const char kPrivetInfoKeyAPIList[] = "api"; 11 const char kPrivetInfoKeyAPIList[] = "api";
12 const char kPrivetInfoKeyID[] = "id"; 12 const char kPrivetInfoKeyID[] = "id";
13 const char kPrivetKeyDeviceID[] = "device_id"; 13 const char kPrivetKeyDeviceID[] = "device_id";
14 const char kPrivetKeyClaimURL[] = "claim_url"; 14 const char kPrivetKeyClaimURL[] = "claim_url";
15 const char kPrivetKeyClaimToken[] = "token"; 15 const char kPrivetKeyClaimToken[] = "token";
16 const char kPrivetKeyTimeout[] = "timeout"; 16 const char kPrivetKeyTimeout[] = "timeout";
17 17
18 const char kPrivetActionNameInfo[] = "info"; 18 const char kPrivetActionNameInfo[] = "info";
19 19
20 const char kPrivetInfoPath[] = "/privet/info"; 20 const char kPrivetInfoPath[] = "/privet/info";
21 const char kPrivetRegisterPath[] = "/privet/register"; 21 const char kPrivetRegisterPath[] = "/privet/register";
22 const char kPrivetCapabilitiesPath[] = "/privet/capabilities"; 22 const char kPrivetCapabilitiesPath[] = "/privet/capabilities";
23 const char kPrivetSubmitdocPath[] = "/privet/printer/submitdoc"; 23 const char kPrivetSubmitdocPath[] = "/privet/printer/submitdoc";
24 const char kPrivetCreatejobPath[] = "/privet/printer/createjob"; 24 const char kPrivetCreatejobPath[] = "/privet/printer/createjob";
25 25
26 const char kPrivetErrorDeviceBusy[] = "device_busy"; 26 const char kPrivetErrorDeviceBusy[] = "device_busy";
27 const char kPrivetErrorPrinterBusy[] = "printer_busy"; 27 const char kPrivetErrorPrinterBusy[] = "printer_busy";
28 const char kPrivetErrorInvalidPrintJob[] = "invalid_print_job"; 28 const char kPrivetErrorInvalidPrintJob[] = "invalid_print_job";
29 const char kPrivetErrorInvalidDocumentType[] = "invalid_document_type";
29 const char kPrivetErrorPendingUserAction[] = "pending_user_action"; 30 const char kPrivetErrorPendingUserAction[] = "pending_user_action";
30 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token"; 31 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token";
31 const char kPrivetErrorTimeout[] = "confirmation_timeout"; 32 const char kPrivetErrorTimeout[] = "confirmation_timeout";
32 const char kPrivetErrorCancel[] = "user_cancel"; 33 const char kPrivetErrorCancel[] = "user_cancel";
33 34
34 const char kPrivetActionStart[] = "start"; 35 const char kPrivetActionStart[] = "start";
35 const char kPrivetActionGetClaimToken[] = "getClaimToken"; 36 const char kPrivetActionGetClaimToken[] = "getClaimToken";
36 const char kPrivetActionComplete[] = "complete"; 37 const char kPrivetActionComplete[] = "complete";
37 const char kPrivetActionCancel[] = "cancel"; 38 const char kPrivetActionCancel[] = "cancel";
38 39
39 const char kPrivetDefaultDeviceType[] = "_privet._tcp.local"; 40 const char kPrivetDefaultDeviceType[] = "_privet._tcp.local";
40 const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local"; 41 const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local";
41 const char kPrivetSubtypePrinter[] = "_printer"; 42 const char kPrivetSubtypePrinter[] = "_printer";
42 43
43 const char kPrivetTxtKeyName[] = "ty"; 44 const char kPrivetTxtKeyName[] = "ty";
44 const char kPrivetTxtKeyDescription[] = "note"; 45 const char kPrivetTxtKeyDescription[] = "note";
45 const char kPrivetTxtKeyURL[] = "url"; 46 const char kPrivetTxtKeyURL[] = "url";
46 const char kPrivetTxtKeyType[] = "type"; 47 const char kPrivetTxtKeyType[] = "type";
47 const char kPrivetTxtKeyID[] = "id"; 48 const char kPrivetTxtKeyID[] = "id";
48 const char kPrivetTxtKeyConnectionState[] = "cs"; 49 const char kPrivetTxtKeyConnectionState[] = "cs";
49 50
50 const char kPrivetConnectionStatusOnline[] = "online"; 51 const char kPrivetConnectionStatusOnline[] = "online";
51 const char kPrivetConnectionStatusOffline[] = "offline"; 52 const char kPrivetConnectionStatusOffline[] = "offline";
52 const char kPrivetConnectionStatusConnecting[] = "connecting"; 53 const char kPrivetConnectionStatusConnecting[] = "connecting";
53 const char kPrivetConnectionStatusNotConfigured[] = "not-configured"; 54 const char kPrivetConnectionStatusNotConfigured[] = "not-configured";
54 55
55 } // namespace local_discovery 56 } // namespace local_discovery
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/privet_constants.h ('k') | chrome/browser/local_discovery/privet_http_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698