Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: ios/chrome/browser/signin/gaia_auth_fetcher_ios.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/signin/fake_signin_manager_builder.cc ('k') | ios/chrome/browser/signin/gaia_auth_fetcher_ios_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698