| 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 <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 #include <vector> | 10 #include <vector> |
| 10 | 11 |
| 11 #include "base/callback.h" | 12 #include "base/callback.h" |
| 12 #include "base/macros.h" | 13 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "google_apis/gaia/oauth2_token_service.h" | 14 #include "google_apis/gaia/oauth2_token_service.h" |
| 15 #include "net/url_request/url_fetcher.h" | 15 #include "net/url_request/url_fetcher.h" |
| 16 #include "net/url_request/url_fetcher_delegate.h" | 16 #include "net/url_request/url_fetcher_delegate.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class DictionaryValue; | 19 class DictionaryValue; |
| 20 class ListValue; | 20 class ListValue; |
| 21 class Time; | 21 class Time; |
| 22 } | 22 } |
| 23 | 23 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void FamilyProfileFetched(const std::string& response); | 114 void FamilyProfileFetched(const std::string& response); |
| 115 void FamilyMembersFetched(const std::string& response); | 115 void FamilyMembersFetched(const std::string& response); |
| 116 | 116 |
| 117 Consumer* consumer_; | 117 Consumer* consumer_; |
| 118 const std::string account_id_; | 118 const std::string account_id_; |
| 119 OAuth2TokenService* token_service_; | 119 OAuth2TokenService* token_service_; |
| 120 net::URLRequestContextGetter* request_context_; | 120 net::URLRequestContextGetter* request_context_; |
| 121 | 121 |
| 122 std::string request_suffix_; | 122 std::string request_suffix_; |
| 123 net::URLFetcher::RequestType request_type_; | 123 net::URLFetcher::RequestType request_type_; |
| 124 scoped_ptr<OAuth2TokenService::Request> access_token_request_; | 124 std::unique_ptr<OAuth2TokenService::Request> access_token_request_; |
| 125 std::string access_token_; | 125 std::string access_token_; |
| 126 bool access_token_expired_; | 126 bool access_token_expired_; |
| 127 scoped_ptr<net::URLFetcher> url_fetcher_; | 127 std::unique_ptr<net::URLFetcher> url_fetcher_; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(FamilyInfoFetcher); | 129 DISALLOW_COPY_AND_ASSIGN(FamilyInfoFetcher); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_FAMILY_INFO_FETCHER_H_ | 132 #endif // CHROME_BROWSER_SUPERVISED_USER_CHILD_ACCOUNTS_FAMILY_INFO_FETCHER_H_ |
| 133 | 133 |
| OLD | NEW |