OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 // AuthWatcher watches authentication events and user open and close | 5 // AuthWatcher watches authentication events and user open and close |
6 // events and accordingly opens and closes shares. | 6 // events and accordingly opens and closes shares. |
7 | 7 |
8 #ifndef CHROME_BROWSER_SYNC_ENGINE_AUTH_WATCHER_H_ | 8 #ifndef CHROME_BROWSER_SYNC_ENGINE_AUTH_WATCHER_H_ |
9 #define CHROME_BROWSER_SYNC_ENGINE_AUTH_WATCHER_H_ | 9 #define CHROME_BROWSER_SYNC_ENGINE_AUTH_WATCHER_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <map> | 12 #include <map> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/atomicops.h" | |
16 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
17 #include "base/message_loop_proxy.h" | 16 #include "base/message_loop_proxy.h" |
18 #include "base/ref_counted.h" | 17 #include "base/ref_counted.h" |
19 #include "base/scoped_ptr.h" | 18 #include "base/scoped_ptr.h" |
20 #include "base/thread.h" | 19 #include "base/thread.h" |
21 #include "chrome/browser/sync/protocol/service_constants.h" | 20 #include "chrome/browser/sync/protocol/service_constants.h" |
22 #include "chrome/browser/sync/util/sync_types.h" | 21 #include "chrome/browser/sync/util/sync_types.h" |
23 #include "chrome/common/deprecated/event_sys.h" | 22 #include "chrome/common/deprecated/event_sys.h" |
24 #include "chrome/common/net/gaia/gaia_authenticator.h" | 23 #include "chrome/common/net/gaia/gaia_authenticator.h" |
25 | 24 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 base::Thread auth_backend_thread_; | 215 base::Thread auth_backend_thread_; |
217 scoped_refptr<base::MessageLoopProxy> loop_proxy_; | 216 scoped_refptr<base::MessageLoopProxy> loop_proxy_; |
218 | 217 |
219 AuthWatcherEvent::AuthenticationTrigger current_attempt_trigger_; | 218 AuthWatcherEvent::AuthenticationTrigger current_attempt_trigger_; |
220 DISALLOW_COPY_AND_ASSIGN(AuthWatcher); | 219 DISALLOW_COPY_AND_ASSIGN(AuthWatcher); |
221 }; | 220 }; |
222 | 221 |
223 } // namespace browser_sync | 222 } // namespace browser_sync |
224 | 223 |
225 #endif // CHROME_BROWSER_SYNC_ENGINE_AUTH_WATCHER_H_ | 224 #endif // CHROME_BROWSER_SYNC_ENGINE_AUTH_WATCHER_H_ |
OLD | NEW |