| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/signin/profile_oauth2_token_service.h" | 5 #include "chrome/browser/signin/profile_oauth2_token_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/signin/signin_global_error.h" | 13 #include "chrome/browser/signin/signin_global_error.h" |
| 14 #include "chrome/browser/signin/signin_manager.h" | 14 #include "chrome/browser/signin/signin_manager.h" |
| 15 #include "chrome/browser/signin/signin_manager_factory.h" | 15 #include "chrome/browser/signin/signin_manager_factory.h" |
| 16 #include "chrome/browser/ui/global_error/global_error_service.h" | 16 #include "chrome/browser/ui/global_error/global_error_service.h" |
| 17 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 17 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
| 18 #include "content/public/browser/browser_thread.h" | |
| 19 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
| 20 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
| 21 #include "net/url_request/url_request_context_getter.h" | 20 #include "net/url_request/url_request_context_getter.h" |
| 22 | 21 |
| 23 ProfileOAuth2TokenService::ProfileOAuth2TokenService() | 22 ProfileOAuth2TokenService::ProfileOAuth2TokenService() |
| 24 : profile_(NULL) { | 23 : profile_(NULL) { |
| 25 } | 24 } |
| 26 | 25 |
| 27 ProfileOAuth2TokenService::~ProfileOAuth2TokenService() { | 26 ProfileOAuth2TokenService::~ProfileOAuth2TokenService() { |
| 28 DCHECK(!signin_global_error_.get()) << | 27 DCHECK(!signin_global_error_.get()) << |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 void ProfileOAuth2TokenService::UpdateCredentials( | 84 void ProfileOAuth2TokenService::UpdateCredentials( |
| 86 const std::string& account_id, | 85 const std::string& account_id, |
| 87 const std::string& refresh_token) { | 86 const std::string& refresh_token) { |
| 88 NOTREACHED(); | 87 NOTREACHED(); |
| 89 } | 88 } |
| 90 | 89 |
| 91 void ProfileOAuth2TokenService::RevokeAllCredentials() { | 90 void ProfileOAuth2TokenService::RevokeAllCredentials() { |
| 92 // Empty implementation by default. | 91 // Empty implementation by default. |
| 93 } | 92 } |
| 94 | 93 |
| OLD | NEW |