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

Side by Side Diff: chrome/browser/extensions/api/identity/gaia_web_auth_flow.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/extensions/api/identity/extension_token_key.h" 9 #include "chrome/browser/extensions/api/identity/extension_token_key.h"
10 #include "chrome/browser/extensions/api/identity/web_auth_flow.h" 10 #include "chrome/browser/extensions/api/identity/web_auth_flow.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void OnUbertokenFailure(const GoogleServiceAuthError& error) override; 74 void OnUbertokenFailure(const GoogleServiceAuthError& error) override;
75 75
76 // WebAuthFlow::Delegate implementation. 76 // WebAuthFlow::Delegate implementation.
77 void OnAuthFlowFailure(WebAuthFlow::Failure failure) override; 77 void OnAuthFlowFailure(WebAuthFlow::Failure failure) override;
78 void OnAuthFlowURLChange(const GURL& redirect_url) override; 78 void OnAuthFlowURLChange(const GURL& redirect_url) override;
79 void OnAuthFlowTitleChange(const std::string& title) override; 79 void OnAuthFlowTitleChange(const std::string& title) override;
80 80
81 private: 81 private:
82 // Creates a WebAuthFlow, which will navigate to |url|. Can override 82 // Creates a WebAuthFlow, which will navigate to |url|. Can override
83 // for testing. Used to kick off the MergeSession (step #2). 83 // for testing. Used to kick off the MergeSession (step #2).
84 virtual scoped_ptr<WebAuthFlow> CreateWebAuthFlow(GURL url); 84 virtual std::unique_ptr<WebAuthFlow> CreateWebAuthFlow(GURL url);
85 85
86 Delegate* delegate_; 86 Delegate* delegate_;
87 Profile* profile_; 87 Profile* profile_;
88 std::string account_id_; 88 std::string account_id_;
89 std::string redirect_scheme_; 89 std::string redirect_scheme_;
90 std::string redirect_path_prefix_; 90 std::string redirect_path_prefix_;
91 GURL auth_url_; 91 GURL auth_url_;
92 scoped_ptr<UbertokenFetcher> ubertoken_fetcher_; 92 std::unique_ptr<UbertokenFetcher> ubertoken_fetcher_;
93 scoped_ptr<WebAuthFlow> web_flow_; 93 std::unique_ptr<WebAuthFlow> web_flow_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(GaiaWebAuthFlow); 95 DISALLOW_COPY_AND_ASSIGN(GaiaWebAuthFlow);
96 }; 96 };
97 97
98 } // namespace extensions 98 } // namespace extensions
99 99
100 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_ 100 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698