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

Side by Side Diff: components/signin/ios/browser/account_consistency_service.h

Issue 2239773002: Annotates functions returning retained objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 4 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
« no previous file with comments | « no previous file | ios/chrome/browser/signin/gaia_auth_fetcher_ios_private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_SIGNIN_IOS_BROWSER_ACCOUNT_CONSISTENCY_SERVICE_H_ 5 #ifndef COMPONENTS_SIGNIN_IOS_BROWSER_ACCOUNT_CONSISTENCY_SERVICE_H_
6 #define COMPONENTS_SIGNIN_IOS_BROWSER_ACCOUNT_CONSISTENCY_SERVICE_H_ 6 #define COMPONENTS_SIGNIN_IOS_BROWSER_ACCOUNT_CONSISTENCY_SERVICE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Applies the pending CHROME_CONNECTED cookie requests one by one. 108 // Applies the pending CHROME_CONNECTED cookie requests one by one.
109 void ApplyCookieRequests(); 109 void ApplyCookieRequests();
110 110
111 // Called when the current CHROME_CONNECTED cookie request is done. 111 // Called when the current CHROME_CONNECTED cookie request is done.
112 void FinishedApplyingCookieRequest(bool success); 112 void FinishedApplyingCookieRequest(bool success);
113 113
114 // Returns the cached WKWebView if it exists, or creates one if necessary. 114 // Returns the cached WKWebView if it exists, or creates one if necessary.
115 // Can return nil if the browser state is not active. 115 // Can return nil if the browser state is not active.
116 WKWebView* GetWKWebView(); 116 WKWebView* GetWKWebView();
117 // Actually creates a WKWebView. Virtual for testing. 117 // Actually creates a WKWebView. Virtual for testing.
118 virtual WKWebView* CreateWKWebView(); 118 virtual WKWebView* CreateWKWebView() NS_RETURNS_RETAINED;
119 // Stops any page loading in the WKWebView currently in use and releases it. 119 // Stops any page loading in the WKWebView currently in use and releases it.
120 void ResetWKWebView(); 120 void ResetWKWebView();
121 121
122 // Returns whether the CHROME_CONNECTED cookie should be added to |domain|. 122 // Returns whether the CHROME_CONNECTED cookie should be added to |domain|.
123 // If the cookie is already on |domain|, this function will return false 123 // If the cookie is already on |domain|, this function will return false
124 // unless |force_update_if_too_old| is true. In this case, it will return true 124 // unless |force_update_if_too_old| is true. In this case, it will return true
125 // if the cookie is considered to be too old. 125 // if the cookie is considered to be too old.
126 bool ShouldAddChromeConnectedCookieToDomain(const std::string& domain, 126 bool ShouldAddChromeConnectedCookieToDomain(const std::string& domain,
127 bool force_update_if_too_old); 127 bool force_update_if_too_old);
128 128
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 // Handlers reacting on GAIA responses with the X-Chrome-Manage-Accounts 186 // Handlers reacting on GAIA responses with the X-Chrome-Manage-Accounts
187 // header set. 187 // header set.
188 std::map<web::WebState*, std::unique_ptr<web::WebStatePolicyDecider>> 188 std::map<web::WebState*, std::unique_ptr<web::WebStatePolicyDecider>>
189 web_state_handlers_; 189 web_state_handlers_;
190 190
191 DISALLOW_COPY_AND_ASSIGN(AccountConsistencyService); 191 DISALLOW_COPY_AND_ASSIGN(AccountConsistencyService);
192 }; 192 };
193 193
194 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_ACCOUNT_CONSISTENCY_SERVICE_H_ 194 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_ACCOUNT_CONSISTENCY_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/signin/gaia_auth_fetcher_ios_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698