| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_H_ | 5 #ifndef IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_H_ |
| 6 #define IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_H_ | 6 #define IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "google_apis/gaia/gaia_auth_fetcher.h" | 11 #include "google_apis/gaia/gaia_auth_fetcher.h" |
| 11 | 12 |
| 12 class GaiaAuthFetcherIOSBridge; | 13 class GaiaAuthFetcherIOSBridge; |
| 13 | 14 |
| 14 namespace web { | 15 namespace web { |
| 15 class BrowserState; | 16 class BrowserState; |
| 16 } | 17 } |
| 17 | 18 |
| 18 // Specialization of GaiaAuthFetcher on iOS. | 19 // Specialization of GaiaAuthFetcher on iOS. |
| 19 // | 20 // |
| (...skipping 30 matching lines...) Expand all Loading... |
| 50 void CreateAndStartGaiaFetcher(const std::string& body, | 51 void CreateAndStartGaiaFetcher(const std::string& body, |
| 51 const std::string& headers, | 52 const std::string& headers, |
| 52 const GURL& gaia_gurl, | 53 const GURL& gaia_gurl, |
| 53 int load_flags) override; | 54 int load_flags) override; |
| 54 void FetchComplete(const GURL& url, | 55 void FetchComplete(const GURL& url, |
| 55 const std::string& data, | 56 const std::string& data, |
| 56 const net::ResponseCookies& cookies, | 57 const net::ResponseCookies& cookies, |
| 57 const net::URLRequestStatus& status, | 58 const net::URLRequestStatus& status, |
| 58 int response_code); | 59 int response_code); |
| 59 | 60 |
| 60 scoped_ptr<GaiaAuthFetcherIOSBridge> bridge_; | 61 std::unique_ptr<GaiaAuthFetcherIOSBridge> bridge_; |
| 61 web::BrowserState* browser_state_; | 62 web::BrowserState* browser_state_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(GaiaAuthFetcherIOS); | 64 DISALLOW_COPY_AND_ASSIGN(GaiaAuthFetcherIOS); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 #endif // IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_H_ | 67 #endif // IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_H_ |
| OLD | NEW |