OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_FAMILY_INFO_FETCHER_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_FAMILY_INFO_FETCHER_H_ |
6 #define CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_FAMILY_INFO_FETCHER_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_FAMILY_INFO_FETCHER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 std::string name; | 48 std::string name; |
49 }; | 49 }; |
50 struct FamilyMember { | 50 struct FamilyMember { |
51 FamilyMember(); | 51 FamilyMember(); |
52 FamilyMember(const std::string& obfuscated_gaia_id, | 52 FamilyMember(const std::string& obfuscated_gaia_id, |
53 FamilyMemberRole role, | 53 FamilyMemberRole role, |
54 const std::string& display_name, | 54 const std::string& display_name, |
55 const std::string& email, | 55 const std::string& email, |
56 const std::string& profile_url, | 56 const std::string& profile_url, |
57 const std::string& profile_image_url); | 57 const std::string& profile_image_url); |
| 58 FamilyMember(const FamilyMember& other); |
58 ~FamilyMember(); | 59 ~FamilyMember(); |
59 std::string obfuscated_gaia_id; | 60 std::string obfuscated_gaia_id; |
60 FamilyMemberRole role; | 61 FamilyMemberRole role; |
61 // All of the following may be empty. | 62 // All of the following may be empty. |
62 std::string display_name; | 63 std::string display_name; |
63 std::string email; | 64 std::string email; |
64 std::string profile_url; | 65 std::string profile_url; |
65 std::string profile_image_url; | 66 std::string profile_image_url; |
66 }; | 67 }; |
67 | 68 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 scoped_ptr<OAuth2TokenService::Request> access_token_request_; | 124 scoped_ptr<OAuth2TokenService::Request> access_token_request_; |
124 std::string access_token_; | 125 std::string access_token_; |
125 bool access_token_expired_; | 126 bool access_token_expired_; |
126 scoped_ptr<net::URLFetcher> url_fetcher_; | 127 scoped_ptr<net::URLFetcher> url_fetcher_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(FamilyInfoFetcher); | 129 DISALLOW_COPY_AND_ASSIGN(FamilyInfoFetcher); |
129 }; | 130 }; |
130 | 131 |
131 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_FAMILY_INFO_FETCHER_H_ | 132 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_FAMILY_INFO_FETCHER_H_ |
132 | 133 |
OLD | NEW |