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

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

Issue 8742008: ChromeOS: Use OAuth2 refresh token to download GAIA info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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
« no previous file with comments | « chrome/browser/profiles/profile_downloader.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PROFILE_DOWNLOADER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 virtual int GetDesiredImageSideLength() const = 0; 25 virtual int GetDesiredImageSideLength() const = 0;
26 26
27 // Returns the cached URL. If the cache URL matches the new image URL 27 // Returns the cached URL. If the cache URL matches the new image URL
28 // the image will not be downloaded. Return an empty string when there is no 28 // the image will not be downloaded. Return an empty string when there is no
29 // cached URL. 29 // cached URL.
30 virtual std::string GetCachedPictureURL() const = 0; 30 virtual std::string GetCachedPictureURL() const = 0;
31 31
32 // Returns the browser profile associated with this download request. 32 // Returns the browser profile associated with this download request.
33 virtual Profile* GetBrowserProfile() = 0; 33 virtual Profile* GetBrowserProfile() = 0;
34 34
35 // Whether we should use an OAuth refresh token or the Picasa token from
36 // ClientLogin. The latter is currently used in ChromeOS.
37 virtual bool ShouldUseOAuthRefreshToken() const = 0;
38
39 // Called when the download is complete. On success delegate should query 35 // Called when the download is complete. On success delegate should query
40 // the downloader for values. 36 // the downloader for values.
41 virtual void OnDownloadComplete(ProfileDownloader* downloader, 37 virtual void OnDownloadComplete(ProfileDownloader* downloader,
42 bool success) = 0; 38 bool success) = 0;
43 }; 39 };
44 40
45 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_ 41 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_downloader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698