| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CLOUD_PRINT_SERVICE_SERVICE_STATE_H_ | 5 #ifndef CLOUD_PRINT_SERVICE_SERVICE_STATE_H_ |
| 6 #define CLOUD_PRINT_SERVICE_SERVICE_STATE_H_ | 6 #define CLOUD_PRINT_SERVICE_SERVICE_STATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/file_path.h" | |
| 11 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/values.h" | 11 #include "base/values.h" |
| 13 | 12 |
| 14 class FilePath; | |
| 15 | |
| 16 // Manages Cloud Print part of Service State. | 13 // Manages Cloud Print part of Service State. |
| 17 class ServiceState { | 14 class ServiceState { |
| 18 public: | 15 public: |
| 19 ServiceState(); | 16 ServiceState(); |
| 20 virtual ~ServiceState(); | 17 virtual ~ServiceState(); |
| 21 | 18 |
| 22 void Reset(); | 19 void Reset(); |
| 23 | 20 |
| 24 // Initialize object from json. | 21 // Initialize object from json. |
| 25 bool FromString(const std::string& json); | 22 bool FromString(const std::string& json); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 std::string robot_email_; | 91 std::string robot_email_; |
| 95 std::string robot_token_; | 92 std::string robot_token_; |
| 96 std::string auth_token_; | 93 std::string auth_token_; |
| 97 std::string xmpp_auth_token_; | 94 std::string xmpp_auth_token_; |
| 98 | 95 |
| 99 DISALLOW_COPY_AND_ASSIGN(ServiceState); | 96 DISALLOW_COPY_AND_ASSIGN(ServiceState); |
| 100 }; | 97 }; |
| 101 | 98 |
| 102 #endif // CLOUD_PRINT_SERVICE_SERVICE_STATE_H_ | 99 #endif // CLOUD_PRINT_SERVICE_SERVICE_STATE_H_ |
| 103 | 100 |
| OLD | NEW |