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/service/win/service_state.h

Issue 10540024: Apply early reverted r140703. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cloud_print/service/win/service.gyp ('k') | cloud_print/service/win/service_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/service/win/service_state.h
diff --git a/cloud_print/service/win/service_state.h b/cloud_print/service/win/service_state.h
deleted file mode 100644
index ef037bbfb884e3036b32b3b0aa9ce97eec52fca2..0000000000000000000000000000000000000000
--- a/cloud_print/service/win/service_state.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// Copyright (c) 2012 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_SERVICE_SERVICE_STATE_H_
-#define CLOUD_PRINT_SERVICE_SERVICE_STATE_H_
-
-#include <string>
-
-#include "base/file_path.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/values.h"
-
-class FilePath;
-
-// Manages Cloud Print part of Service State.
-class ServiceState {
- public:
- ServiceState();
- virtual ~ServiceState();
-
- void Reset();
-
- // Initialize object from json.
- bool FromString(const std::string& json);
-
- // Returns object state as json.
- std::string ToString();
-
- // Setups object using data provided by delegate.
- bool Configure(const std::string& email,
- const std::string& password,
- const std::string& proxy_id);
-
- // Returns authentication token provided by Google server.
- virtual std::string LoginToGoogle(const std::string& service,
- const std::string& email,
- const std::string& password);
-
- // Returns true of object state is valid.
- bool IsValid() const;
-
- std::string email() const {
- return email_;
- };
-
- std::string proxy_id() const {
- return proxy_id_;
- };
-
- std::string robot_email() const {
- return robot_email_;
- };
-
- std::string robot_token() const {
- return robot_token_;
- };
-
- std::string auth_token() const {
- return auth_token_;
- };
-
- std::string xmpp_auth_token() const {
- return xmpp_auth_token_;
- };
-
- void set_email(const std::string& value) {
- email_ = value;
- };
-
- void set_proxy_id(const std::string& value) {
- proxy_id_ = value;
- };
-
- void set_robot_email(const std::string& value) {
- robot_email_ = value;
- };
-
- void set_robot_token(const std::string& value) {
- robot_token_ = value;
- };
-
- void set_auth_token(const std::string& value) {
- auth_token_ = value;
- };
-
- void set_xmpp_auth_token(const std::string& value) {
- xmpp_auth_token_ = value;
- };
-
- private:
- std::string email_;
- std::string proxy_id_;
- std::string robot_email_;
- std::string robot_token_;
- std::string auth_token_;
- std::string xmpp_auth_token_;
-
- DISALLOW_COPY_AND_ASSIGN(ServiceState);
-};
-
-#endif // CLOUD_PRINT_SERVICE_SERVICE_STATE_H_
-
« no previous file with comments | « cloud_print/service/win/service.gyp ('k') | cloud_print/service/win/service_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698