OLD | NEW |
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_CHROMEOS_GDATA_GDATA_AUTH_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_AUTH_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_AUTH_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_AUTH_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/observer_list.h" | |
12 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/message_loop_proxy.h" |
| 14 #include "base/observer_list.h" |
14 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | 15 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
15 #include "chrome/browser/chromeos/gdata/gdata_params.h" | 16 #include "chrome/browser/chromeos/gdata/gdata_params.h" |
16 #include "chrome/common/net/gaia/oauth2_access_token_fetcher.h" | 17 #include "chrome/common/net/gaia/oauth2_access_token_fetcher.h" |
17 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
19 | 20 |
20 class Profile; | 21 class Profile; |
21 | 22 |
22 namespace gdata { | 23 namespace gdata { |
23 | 24 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 content::NotificationRegistrar registrar_; | 102 content::NotificationRegistrar registrar_; |
102 base::WeakPtrFactory<GDataAuthService> weak_ptr_factory_; | 103 base::WeakPtrFactory<GDataAuthService> weak_ptr_factory_; |
103 base::WeakPtr<GDataAuthService> weak_ptr_bound_to_ui_thread_; | 104 base::WeakPtr<GDataAuthService> weak_ptr_bound_to_ui_thread_; |
104 | 105 |
105 DISALLOW_COPY_AND_ASSIGN(GDataAuthService); | 106 DISALLOW_COPY_AND_ASSIGN(GDataAuthService); |
106 }; | 107 }; |
107 | 108 |
108 } // namespace gdata | 109 } // namespace gdata |
109 | 110 |
110 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_AUTH_SERVICE_H_ | 111 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_AUTH_SERVICE_H_ |
OLD | NEW |