summaryrefslogtreecommitdiffstats
path: root/chrome/common/net/gaia
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-27 18:51:01 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-27 18:51:01 +0000
commitd2f05d07a90cf5c5bad814b603175acaefa254b5 (patch)
tree8e5e8d7724b8b505d418ea01277bc3f305d16182 /chrome/common/net/gaia
parentc3dd6dad0308d941cad3d9e72787177875d065b6 (diff)
downloadchromium_src-d2f05d07a90cf5c5bad814b603175acaefa254b5.zip
chromium_src-d2f05d07a90cf5c5bad814b603175acaefa254b5.tar.gz
chromium_src-d2f05d07a90cf5c5bad814b603175acaefa254b5.tar.bz2
Part 1 of repairing regressions to my old clang check plugins so Nico can
deploy the clang plugins to the waterfall/trybots. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6366019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/net/gaia')
-rw-r--r--chrome/common/net/gaia/gaia_auth_consumer.cc31
-rw-r--r--chrome/common/net/gaia/gaia_auth_consumer.h26
2 files changed, 39 insertions, 18 deletions
diff --git a/chrome/common/net/gaia/gaia_auth_consumer.cc b/chrome/common/net/gaia/gaia_auth_consumer.cc
new file mode 100644
index 0000000..7c47b60d
--- /dev/null
+++ b/chrome/common/net/gaia/gaia_auth_consumer.cc
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 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.
+
+#include "chrome/common/net/gaia/gaia_auth_consumer.h"
+
+GaiaAuthConsumer::ClientLoginResult::ClientLoginResult()
+ : two_factor(false) {
+}
+
+GaiaAuthConsumer::ClientLoginResult::ClientLoginResult(
+ const std::string& new_sid,
+ const std::string& new_lsid,
+ const std::string& new_token,
+ const std::string& new_data)
+ : sid(new_sid),
+ lsid(new_lsid),
+ token(new_token),
+ data(new_data),
+ two_factor(false) {}
+
+GaiaAuthConsumer::ClientLoginResult::~ClientLoginResult() {}
+
+bool GaiaAuthConsumer::ClientLoginResult::operator==(
+ const ClientLoginResult &b) const {
+ return sid == b.sid &&
+ lsid == b.lsid &&
+ token == b.token &&
+ data == b.data &&
+ two_factor == b.two_factor;
+}
diff --git a/chrome/common/net/gaia/gaia_auth_consumer.h b/chrome/common/net/gaia/gaia_auth_consumer.h
index d498e6c..4d6c37d 100644
--- a/chrome/common/net/gaia/gaia_auth_consumer.h
+++ b/chrome/common/net/gaia/gaia_auth_consumer.h
@@ -15,24 +15,14 @@ class GoogleServiceAuthError;
class GaiaAuthConsumer {
public:
struct ClientLoginResult {
- inline ClientLoginResult() : two_factor(false) {}
- inline ClientLoginResult(const std::string& new_sid,
- const std::string& new_lsid,
- const std::string& new_token,
- const std::string& new_data)
- : sid(new_sid),
- lsid(new_lsid),
- token(new_token),
- data(new_data),
- two_factor(false) {}
-
- inline bool operator==(const ClientLoginResult &b) const {
- return sid == b.sid &&
- lsid == b.lsid &&
- token == b.token &&
- data == b.data &&
- two_factor == b.two_factor;
- }
+ ClientLoginResult();
+ ClientLoginResult(const std::string& new_sid,
+ const std::string& new_lsid,
+ const std::string& new_token,
+ const std::string& new_data);
+ ~ClientLoginResult();
+
+ bool operator==(const ClientLoginResult &b) const;
std::string sid;
std::string lsid;