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

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

Issue 2270063005: Add support for time based deletion of browsing data on iOS (Closed)
Patch Set: Updated comment in AccountConsistencyService Created 4 years, 3 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/browsing_data/browsing_data_remover_helper.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // cookie is already on |domain|, this function will do nothing unless 71 // cookie is already on |domain|, this function will do nothing unless
72 // |force_update_if_too_old| is true. In this case, the cookie will be 72 // |force_update_if_too_old| is true. In this case, the cookie will be
73 // refreshed if it is considered too old. 73 // refreshed if it is considered too old.
74 void AddChromeConnectedCookieToDomain(const std::string& domain, 74 void AddChromeConnectedCookieToDomain(const std::string& domain,
75 bool force_update_if_too_old); 75 bool force_update_if_too_old);
76 76
77 // Enqueues a request to remove the CHROME_CONNECTED cookie to |domain|. 77 // Enqueues a request to remove the CHROME_CONNECTED cookie to |domain|.
78 // Does nothing if the cookie is not set on |domain|. 78 // Does nothing if the cookie is not set on |domain|.
79 void RemoveChromeConnectedCookieFromDomain(const std::string& domain); 79 void RemoveChromeConnectedCookieFromDomain(const std::string& domain);
80 80
81 // Notifies the AccountConsistencyService that browsing data has been removed. 81 // Notifies the AccountConsistencyService that browsing data has been removed
82 // for any time period.
82 void OnBrowsingDataRemoved(); 83 void OnBrowsingDataRemoved();
83 84
84 private: 85 private:
85 friend class AccountConsistencyServiceTest; 86 friend class AccountConsistencyServiceTest;
86 87
87 // The type of a cookie request. 88 // The type of a cookie request.
88 enum CookieRequestType { 89 enum CookieRequestType {
89 ADD_CHROME_CONNECTED_COOKIE, 90 ADD_CHROME_CONNECTED_COOKIE,
90 REMOVE_CHROME_CONNECTED_COOKIE 91 REMOVE_CHROME_CONNECTED_COOKIE
91 }; 92 };
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 186
186 // Handlers reacting on GAIA responses with the X-Chrome-Manage-Accounts 187 // Handlers reacting on GAIA responses with the X-Chrome-Manage-Accounts
187 // header set. 188 // header set.
188 std::map<web::WebState*, std::unique_ptr<web::WebStatePolicyDecider>> 189 std::map<web::WebState*, std::unique_ptr<web::WebStatePolicyDecider>>
189 web_state_handlers_; 190 web_state_handlers_;
190 191
191 DISALLOW_COPY_AND_ASSIGN(AccountConsistencyService); 192 DISALLOW_COPY_AND_ASSIGN(AccountConsistencyService);
192 }; 193 };
193 194
194 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_ACCOUNT_CONSISTENCY_SERVICE_H_ 195 #endif // COMPONENTS_SIGNIN_IOS_BROWSER_ACCOUNT_CONSISTENCY_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/browsing_data/browsing_data_remover_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698