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

Side by Side Diff: components/signin/core/browser/gaia_cookie_manager_service.h

Issue 1117703002: Adjust URLFetcher::Create API so that object is returned as scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded Pass() calls Created 5 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Simulate a timeout for tests. 121 // Simulate a timeout for tests.
122 void TimeoutForTests(); 122 void TimeoutForTests();
123 123
124 private: 124 private:
125 // Overridden from GaiaAuthConsumer. 125 // Overridden from GaiaAuthConsumer.
126 void OnGetCheckConnectionInfoSuccess(const std::string& data) override; 126 void OnGetCheckConnectionInfoSuccess(const std::string& data) override;
127 void OnGetCheckConnectionInfoError( 127 void OnGetCheckConnectionInfoError(
128 const GoogleServiceAuthError& error) override; 128 const GoogleServiceAuthError& error) override;
129 129
130 // Creates and initializes a URL fetcher for doing a connection check. 130 // Creates and initializes a URL fetcher for doing a connection check.
131 net::URLFetcher* CreateFetcher(const GURL& url); 131 scoped_ptr<net::URLFetcher> CreateFetcher(const GURL& url);
132 132
133 // Overridden from URLFetcherDelgate. 133 // Overridden from URLFetcherDelgate.
134 void OnURLFetchComplete(const net::URLFetcher* source) override; 134 void OnURLFetchComplete(const net::URLFetcher* source) override;
135 135
136 // Any fetches still ongoing after this call are considered timed out. 136 // Any fetches still ongoing after this call are considered timed out.
137 void Timeout(); 137 void Timeout();
138 138
139 void CleanupTransientState(); 139 void CleanupTransientState();
140 140
141 void GetCheckConnectionInfoCompleted(bool succeeded); 141 void GetCheckConnectionInfoCompleted(bool succeeded);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 268
269 std::vector<std::pair<std::string, bool> > listed_accounts_; 269 std::vector<std::pair<std::string, bool> > listed_accounts_;
270 270
271 bool list_accounts_fetched_once_; 271 bool list_accounts_fetched_once_;
272 scoped_ptr<net::URLFetcher> logout_url_request_; 272 scoped_ptr<net::URLFetcher> logout_url_request_;
273 273
274 DISALLOW_COPY_AND_ASSIGN(GaiaCookieManagerService); 274 DISALLOW_COPY_AND_ASSIGN(GaiaCookieManagerService);
275 }; 275 };
276 276
277 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H 277 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H
OLDNEW
« no previous file with comments | « components/search_provider_logos/logo_tracker.cc ('k') | components/signin/core/browser/gaia_cookie_manager_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698