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

Side by Side Diff: chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.h

Issue 2403773002: Remove stl_util's STLDeleteContainerPointers from autofill. (Closed)
Patch Set: rebase Created 4 years, 2 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 CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_
6 #define CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_ 6 #define CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceDelegateTest, 106 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceDelegateTest,
107 RetryBackoff); 107 RetryBackoff);
108 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceDelegateTest, 108 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceDelegateTest,
109 CanonicalizeAccountId); 109 CanonicalizeAccountId);
110 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceDelegateTest, 110 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceDelegateTest,
111 CanonAndNonCanonAccountId); 111 CanonAndNonCanonAccountId);
112 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceDelegateTest, 112 FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceDelegateTest,
113 ShutdownService); 113 ShutdownService);
114 114
115 // WebDataServiceConsumer implementation: 115 // WebDataServiceConsumer implementation:
116 void OnWebDataServiceRequestDone(WebDataServiceBase::Handle handle, 116 void OnWebDataServiceRequestDone(
117 const WDTypedResult* result) override; 117 WebDataServiceBase::Handle handle,
118 std::unique_ptr<WDTypedResult> result) override;
118 119
119 // Loads credentials into in memory stucture. 120 // Loads credentials into in memory stucture.
120 void LoadAllCredentialsIntoMemory( 121 void LoadAllCredentialsIntoMemory(
121 const std::map<std::string, std::string>& db_tokens); 122 const std::map<std::string, std::string>& db_tokens);
122 123
123 // Persists credentials for |account_id|. Enables overriding for 124 // Persists credentials for |account_id|. Enables overriding for
124 // testing purposes, or other cases, when accessing the DB is not desired. 125 // testing purposes, or other cases, when accessing the DB is not desired.
125 void PersistCredentials(const std::string& account_id, 126 void PersistCredentials(const std::string& account_id,
126 const std::string& refresh_token); 127 const std::string& refresh_token);
127 128
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 GoogleServiceAuthError backoff_error_; 163 GoogleServiceAuthError backoff_error_;
163 164
164 SigninClient* client_; 165 SigninClient* client_;
165 SigninErrorController* signin_error_controller_; 166 SigninErrorController* signin_error_controller_;
166 AccountTrackerService* account_tracker_service_; 167 AccountTrackerService* account_tracker_service_;
167 168
168 DISALLOW_COPY_AND_ASSIGN(MutableProfileOAuth2TokenServiceDelegate); 169 DISALLOW_COPY_AND_ASSIGN(MutableProfileOAuth2TokenServiceDelegate);
169 }; 170 };
170 171
171 #endif // CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H _ 172 #endif // CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_DELEGATE_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698