blob: 860b66ec85fc866ff7f41fb735252a6542e0b03c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// 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.
#include "google_apis/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;
}
GaiaAuthConsumer::ClientOAuthResult::ClientOAuthResult()
: expires_in_secs(0) {}
GaiaAuthConsumer::ClientOAuthResult::ClientOAuthResult(
const std::string& new_refresh_token,
const std::string& new_access_token,
int new_expires_in_secs)
: refresh_token(new_refresh_token),
access_token(new_access_token),
expires_in_secs(new_expires_in_secs) {}
GaiaAuthConsumer::ClientOAuthResult::~ClientOAuthResult() {}
bool GaiaAuthConsumer::ClientOAuthResult::operator==(
const ClientOAuthResult &b) const {
return refresh_token == b.refresh_token &&
access_token == b.access_token &&
expires_in_secs == b.expires_in_secs;
}
|