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

Unified Diff: chrome/common/net/gaia/oauth2_access_token_consumer.h

Issue 10383262: RefCounted types should not have public destructors, delegate cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make win bot happy Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/net/gaia/gaia_oauth_client.h ('k') | chrome/common/net/gaia/oauth2_mint_token_flow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/gaia/oauth2_access_token_consumer.h
diff --git a/chrome/common/net/gaia/oauth2_access_token_consumer.h b/chrome/common/net/gaia/oauth2_access_token_consumer.h
index cf7eb343a7f70cef24b2c10bafd7b728150790be..02998243359065d66a31f9f636a46522ccbaf9e2 100644
--- a/chrome/common/net/gaia/oauth2_access_token_consumer.h
+++ b/chrome/common/net/gaia/oauth2_access_token_consumer.h
@@ -14,10 +14,11 @@ class GoogleServiceAuthError;
// OAuth2AccessTokenFetcher can return results.
class OAuth2AccessTokenConsumer {
public:
- virtual ~OAuth2AccessTokenConsumer() {}
-
virtual void OnGetTokenSuccess(const std::string& access_token) {}
virtual void OnGetTokenFailure(const GoogleServiceAuthError& error) {}
+
+ protected:
+ virtual ~OAuth2AccessTokenConsumer() {}
};
#endif // CHROME_COMMON_NET_GAIA_OAUTH2_ACCESS_TOKEN_CONSUMER_H_
« no previous file with comments | « chrome/common/net/gaia/gaia_oauth_client.h ('k') | chrome/common/net/gaia/oauth2_mint_token_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698