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

Side by Side Diff: components/autofill/content/browser/wallet/wallet_service_url.h

Issue 123363002: rAc: don't open sign in continue url in new tab (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 class GURL; 10 class GURL;
(...skipping 14 matching lines...) Expand all
25 GURL GetSaveToWalletUrl(size_t user_index); 25 GURL GetSaveToWalletUrl(size_t user_index);
26 GURL GetPassiveAuthUrl(size_t user_index); 26 GURL GetPassiveAuthUrl(size_t user_index);
27 27
28 // URL to visit for presenting the user with a sign-in dialog. 28 // URL to visit for presenting the user with a sign-in dialog.
29 GURL GetSignInUrl(); 29 GURL GetSignInUrl();
30 30
31 // The the URL to use as a continue parameter in the sign-in URL. 31 // The the URL to use as a continue parameter in the sign-in URL.
32 // A redirect to this URL will occur once sign-in is complete. 32 // A redirect to this URL will occur once sign-in is complete.
33 GURL GetSignInContinueUrl(); 33 GURL GetSignInContinueUrl();
34 34
35 // Facilitates testing by setting the sign in continue URL to a mock address.
36 void SetUseTestingSignInContinueUrl();
37
35 // Returns true if |url| is an acceptable variant of the sign-in continue 38 // Returns true if |url| is an acceptable variant of the sign-in continue
36 // url. Can be used for detection of navigation to the continue url. If 39 // url. Can be used for detection of navigation to the continue url. If
37 // |url| is a sign-in url, |user_index| will also be filled in to indicate 40 // |url| is a sign-in url, |user_index| will also be filled in to indicate
38 // which user account just signed in. 41 // which user account just signed in.
39 bool IsSignInContinueUrl(const GURL& url, size_t* user_index); 42 bool IsSignInContinueUrl(const GURL& url, size_t* user_index);
40 43
41 // Returns whether |url| is related to sign-in. This is used to determine 44 // Returns whether |url| is related to sign-in. This is used to determine
42 // whether to open a new link from the Autofill dialog's sign-in webview. 45 // whether to open a new link from the Autofill dialog's sign-in webview.
43 bool IsSignInRelatedUrl(const GURL& url); 46 bool IsSignInRelatedUrl(const GURL& url);
44 47
45 // Whether calls to Online Wallet are hitting the production server rather than 48 // Whether calls to Online Wallet are hitting the production server rather than
46 // a sandbox or some malicious endpoint. 49 // a sandbox or some malicious endpoint.
47 bool IsUsingProd(); 50 bool IsUsingProd();
48 51
49 } // namespace wallet 52 } // namespace wallet
50 } // namespace autofill 53 } // namespace autofill
51 54
52 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_ 55 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SERVICE_URL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698