OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |