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

Unified Diff: cloud_print/gcp20/prototype/local_settings.h

Issue 22555003: GCP2.0 Device: Local settings workflow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cloud_print/gcp20/prototype/gcp20_device.gyp ('k') | cloud_print/gcp20/prototype/printer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/gcp20/prototype/local_settings.h
diff --git a/cloud_print/gcp20/prototype/local_settings.h b/cloud_print/gcp20/prototype/local_settings.h
new file mode 100644
index 0000000000000000000000000000000000000000..b2ec58f909a1f183eb031c99b61466cdc8bb804b
--- /dev/null
+++ b/cloud_print/gcp20/prototype/local_settings.h
@@ -0,0 +1,31 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CLOUD_PRINT_GCP20_PROTOTYPE_LOCAL_SETTINGS_H_
+#define CLOUD_PRINT_GCP20_PROTOTYPE_LOCAL_SETTINGS_H_
+
+// Contains local settings.
+struct LocalSettings {
+ enum State {
+ CURRENT,
+ PENDING,
+ PRINTER_DELETED,
+ };
+
+ LocalSettings()
+ : local_discovery(true),
+ access_token_enabled(false),
+ local_printing_enabled(false),
+ xmpp_timeout_value(300) {
+ }
+ ~LocalSettings() {}
+
+ bool local_discovery;
+ bool access_token_enabled;
+ bool local_printing_enabled;
+ int xmpp_timeout_value;
+};
+
+#endif // CLOUD_PRINT_GCP20_PROTOTYPE_LOCAL_SETTINGS_H_
+
« no previous file with comments | « cloud_print/gcp20/prototype/gcp20_device.gyp ('k') | cloud_print/gcp20/prototype/printer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698