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

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

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // when the picture status is PICTURE_SUCCESS. 80 // when the picture status is PICTURE_SUCCESS.
81 virtual std::string GetProfilePictureURL() const; 81 virtual std::string GetProfilePictureURL() const;
82 82
83 private: 83 private:
84 friend class ProfileDownloaderTest; 84 friend class ProfileDownloaderTest;
85 FRIEND_TEST_ALL_PREFIXES(ProfileDownloaderTest, ParseData); 85 FRIEND_TEST_ALL_PREFIXES(ProfileDownloaderTest, ParseData);
86 FRIEND_TEST_ALL_PREFIXES(ProfileDownloaderTest, DefaultURL); 86 FRIEND_TEST_ALL_PREFIXES(ProfileDownloaderTest, DefaultURL);
87 87
88 // gaia::GaiaOAuthClient::Delegate implementation. 88 // gaia::GaiaOAuthClient::Delegate implementation.
89 virtual void OnGetUserInfoResponse( 89 virtual void OnGetUserInfoResponse(
90 scoped_ptr<base::DictionaryValue> user_info) OVERRIDE; 90 scoped_ptr<base::DictionaryValue> user_info) override;
91 virtual void OnOAuthError() OVERRIDE; 91 virtual void OnOAuthError() override;
92 virtual void OnNetworkError(int response_code) OVERRIDE; 92 virtual void OnNetworkError(int response_code) override;
93 93
94 // Overriden from net::URLFetcherDelegate: 94 // Overriden from net::URLFetcherDelegate:
95 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; 95 virtual void OnURLFetchComplete(const net::URLFetcher* source) override;
96 96
97 // Overriden from ImageDecoder::Delegate: 97 // Overriden from ImageDecoder::Delegate:
98 virtual void OnImageDecoded(const ImageDecoder* decoder, 98 virtual void OnImageDecoded(const ImageDecoder* decoder,
99 const SkBitmap& decoded_image) OVERRIDE; 99 const SkBitmap& decoded_image) override;
100 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE; 100 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) override;
101 101
102 // Overriden from OAuth2TokenService::Observer: 102 // Overriden from OAuth2TokenService::Observer:
103 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; 103 virtual void OnRefreshTokenAvailable(const std::string& account_id) override;
104 104
105 // Overriden from OAuth2TokenService::Consumer: 105 // Overriden from OAuth2TokenService::Consumer:
106 virtual void OnGetTokenSuccess(const OAuth2TokenService::Request* request, 106 virtual void OnGetTokenSuccess(const OAuth2TokenService::Request* request,
107 const std::string& access_token, 107 const std::string& access_token,
108 const base::Time& expiration_time) OVERRIDE; 108 const base::Time& expiration_time) override;
109 virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request, 109 virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request,
110 const GoogleServiceAuthError& error) OVERRIDE; 110 const GoogleServiceAuthError& error) override;
111 111
112 // Parses the entry response and gets the name, profile image URL and locale. 112 // Parses the entry response and gets the name, profile image URL and locale.
113 // |data| should be the JSON formatted data return by the response. 113 // |data| should be the JSON formatted data return by the response.
114 // Returns false to indicate a parsing error. 114 // Returns false to indicate a parsing error.
115 static bool ParseProfileJSON(base::DictionaryValue* root_dictionary, 115 static bool ParseProfileJSON(base::DictionaryValue* root_dictionary,
116 base::string16* full_name, 116 base::string16* full_name,
117 base::string16* given_name, 117 base::string16* given_name,
118 std::string* url, 118 std::string* url,
119 int image_size, 119 int image_size,
120 std::string* profile_locale, 120 std::string* profile_locale,
(...skipping 22 matching lines...) Expand all
143 base::string16 profile_given_name_; 143 base::string16 profile_given_name_;
144 std::string profile_locale_; 144 std::string profile_locale_;
145 SkBitmap profile_picture_; 145 SkBitmap profile_picture_;
146 PictureStatus picture_status_; 146 PictureStatus picture_status_;
147 std::string picture_url_; 147 std::string picture_url_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(ProfileDownloader); 149 DISALLOW_COPY_AND_ASSIGN(ProfileDownloader);
150 }; 150 };
151 151
152 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_H_ 152 #endif // CHROME_BROWSER_PROFILES_PROFILE_DOWNLOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_destroyer_unittest.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698