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

Side by Side Diff: chrome/browser/profiles/gaia_info_update_service.h

Issue 8746002: Use OAuth2 refresh token to download GAIA info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: correct branch Created 9 years 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_
6 #define CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ 6 #define CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // Updates the GAIA info for the profile associated with this instance. 24 // Updates the GAIA info for the profile associated with this instance.
25 void Update(); 25 void Update();
26 26
27 // Checks if downloading GAIA info for the given profile is allowed. 27 // Checks if downloading GAIA info for the given profile is allowed.
28 static bool ShouldUseGAIAProfileInfo(Profile* profile); 28 static bool ShouldUseGAIAProfileInfo(Profile* profile);
29 29
30 // ProfileDownloaderDelegate: 30 // ProfileDownloaderDelegate:
31 virtual int GetDesiredImageSideLength() OVERRIDE; 31 virtual int GetDesiredImageSideLength() OVERRIDE;
32 virtual Profile* GetBrowserProfile() OVERRIDE; 32 virtual Profile* GetBrowserProfile() OVERRIDE;
33 virtual bool GetShouldUseOAuthRefreshToken() OVERRIDE;
33 virtual void OnDownloadComplete(ProfileDownloader* downloader, 34 virtual void OnDownloadComplete(ProfileDownloader* downloader,
34 bool success) OVERRIDE; 35 bool success) OVERRIDE;
35 36
36 private: 37 private:
37 Profile* profile_; 38 Profile* profile_;
38 scoped_ptr<ProfileDownloader> profile_image_downloader_; 39 scoped_ptr<ProfileDownloader> profile_image_downloader_;
39 40
40 DISALLOW_COPY_AND_ASSIGN(GAIAInfoUpdateService); 41 DISALLOW_COPY_AND_ASSIGN(GAIAInfoUpdateService);
41 }; 42 };
42 43
43 #endif // CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ 44 #endif // CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698