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

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

Issue 1553333002: Move cloud print specific files out of local_discovery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveprn
Patch Set: Created 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/local_discovery/privet_constants.h"
6
7 namespace local_discovery {
8
9 const char kPrivetKeyError[] = "error";
10 const char kPrivetInfoKeyToken[] = "x-privet-token";
11 const char kPrivetInfoKeyAPIList[] = "api";
12 const char kPrivetInfoKeyID[] = "id";
13 const char kPrivetKeyDeviceID[] = "device_id";
14 const char kPrivetKeyClaimURL[] = "claim_url";
15 const char kPrivetKeyClaimToken[] = "token";
16 const char kPrivetKeyTimeout[] = "timeout";
17
18 const char kPrivetActionNameInfo[] = "info";
19
20 const char kPrivetInfoPath[] = "/privet/info";
21 const char kPrivetRegisterPath[] = "/privet/register";
22 const char kPrivetCapabilitiesPath[] = "/privet/capabilities";
23 const char kPrivetSubmitdocPath[] = "/privet/printer/submitdoc";
24 const char kPrivetCreatejobPath[] = "/privet/printer/createjob";
25
26 const char kPrivetErrorDeviceBusy[] = "device_busy";
27 const char kPrivetErrorPrinterBusy[] = "printer_busy";
28 const char kPrivetErrorInvalidPrintJob[] = "invalid_print_job";
29 const char kPrivetErrorInvalidDocumentType[] = "invalid_document_type";
30 const char kPrivetErrorPendingUserAction[] = "pending_user_action";
31 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token";
32 const char kPrivetErrorTimeout[] = "confirmation_timeout";
33 const char kPrivetErrorCancel[] = "user_cancel";
34
35 const char kPrivetV3ErrorDeviceBusy[] = "deviceBusy";
36 const char kPrivetV3ErrorInvalidParams[] = "invalidParams";
37 const char kPrivetV3ErrorSetupUnavailable[] = "setupUnavailable";
38
39 const char kPrivetActionStart[] = "start";
40 const char kPrivetActionGetClaimToken[] = "getClaimToken";
41 const char kPrivetActionComplete[] = "complete";
42 const char kPrivetActionCancel[] = "cancel";
43
44 const char kPrivetDefaultDeviceType[] = "_privet._tcp.local";
45 const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local";
46
47 const char kPrivetTypePrinter[] = "printer";
48
49 const char kPrivetTxtKeyName[] = "ty";
50 const char kPrivetTxtKeyDescription[] = "note";
51 const char kPrivetTxtKeyURL[] = "url";
52 const char kPrivetTxtKeyVersion[] = "txtvers";
53 const char kPrivetTxtKeyType[] = "type";
54 const char kPrivetTxtKeyID[] = "id";
55 const char kPrivetTxtKeyConnectionState[] = "cs";
56 const char kPrivetTxtKeyGcdID[] = "gcd_id";
57 const char kPrivetTxtKeyDevicesClass[] = "class";
58
59 const char kPrivetConnectionStatusOnline[] = "online";
60 const char kPrivetConnectionStatusOffline[] = "offline";
61 const char kPrivetConnectionStatusConnecting[] = "connecting";
62 const char kPrivetConnectionStatusNotConfigured[] = "not-configured";
63
64 } // namespace local_discovery
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/privet_constants.h ('k') | chrome/browser/local_discovery/privet_device_lister.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698