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

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

Issue 8742008: ChromeOS: Use OAuth2 refresh token to download GAIA info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_PROFILE_DOWNLOADER_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool GetProfileNickNameAndImageURL(const std::string& data, 69 bool GetProfileNickNameAndImageURL(const std::string& data,
70 string16* nick_name, 70 string16* nick_name,
71 std::string* url) const; 71 std::string* url) const;
72 72
73 // Returns true if the image url is url of the default profile picture. 73 // Returns true if the image url is url of the default profile picture.
74 bool IsDefaultProfileImageURL(const std::string& url) const; 74 bool IsDefaultProfileImageURL(const std::string& url) const;
75 75
76 // Issues the first request to get user profile image. 76 // Issues the first request to get user profile image.
77 void StartFetchingImage(); 77 void StartFetchingImage();
78 78
79 // Gets the authorization header.
80 const char* GetAuthorizationHeader() const;
81
82 ProfileDownloaderDelegate* delegate_; 79 ProfileDownloaderDelegate* delegate_;
83 std::string auth_token_; 80 std::string auth_token_;
84 scoped_ptr<content::URLFetcher> user_entry_fetcher_; 81 scoped_ptr<content::URLFetcher> user_entry_fetcher_;
85 scoped_ptr<content::URLFetcher> profile_image_fetcher_; 82 scoped_ptr<content::URLFetcher> profile_image_fetcher_;
86 scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_; 83 scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_;
87 content::NotificationRegistrar registrar_; 84 content::NotificationRegistrar registrar_;
88 string16 profile_full_name_; 85 string16 profile_full_name_;
89 SkBitmap profile_picture_; 86 SkBitmap profile_picture_;
90 87
91 DISALLOW_COPY_AND_ASSIGN(ProfileDownloader); 88 DISALLOW_COPY_AND_ASSIGN(ProfileDownloader);
92 }; 89 };
93 90
94 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_H_ 91 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698