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 GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_ | 5 #ifndef GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_ |
6 #define GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_ | 6 #define GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
13 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
14 #include "google_apis/drive/auth_service_interface.h" | 15 #include "google_apis/drive/auth_service_interface.h" |
15 #include "google_apis/gaia/oauth2_token_service.h" | 16 #include "google_apis/gaia/oauth2_token_service.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 class URLRequestContextGetter; | 19 class URLRequestContextGetter; |
19 } | 20 } |
20 | 21 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // Note: This should remain the last member so it'll be destroyed and | 76 // Note: This should remain the last member so it'll be destroyed and |
76 // invalidate its weak pointers before any other members are destroyed. | 77 // invalidate its weak pointers before any other members are destroyed. |
77 base::WeakPtrFactory<AuthService> weak_ptr_factory_; | 78 base::WeakPtrFactory<AuthService> weak_ptr_factory_; |
78 | 79 |
79 DISALLOW_COPY_AND_ASSIGN(AuthService); | 80 DISALLOW_COPY_AND_ASSIGN(AuthService); |
80 }; | 81 }; |
81 | 82 |
82 } // namespace google_apis | 83 } // namespace google_apis |
83 | 84 |
84 #endif // GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_ | 85 #endif // GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_ |
OLD | NEW |