| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> | |
| 13 #include <string> | 12 #include <string> |
| 14 | 13 |
| 15 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 16 #include "base/message_loop_proxy.h" | 15 #include "base/message_loop_proxy.h" |
| 17 #include "base/ref_counted.h" | 16 #include "base/ref_counted.h" |
| 18 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
| 19 #include "base/thread.h" | 18 #include "base/thread.h" |
| 20 #include "chrome/browser/sync/protocol/service_constants.h" | 19 #include "chrome/browser/sync/protocol/service_constants.h" |
| 21 #include "chrome/common/deprecated/event_sys.h" | 20 #include "chrome/common/deprecated/event_sys.h" |
| 22 #include "chrome/common/net/gaia/gaia_authenticator.h" | 21 #include "chrome/common/net/gaia/gaia_authenticator.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 base::Thread auth_backend_thread_; | 213 base::Thread auth_backend_thread_; |
| 215 scoped_refptr<base::MessageLoopProxy> loop_proxy_; | 214 scoped_refptr<base::MessageLoopProxy> loop_proxy_; |
| 216 | 215 |
| 217 AuthWatcherEvent::AuthenticationTrigger current_attempt_trigger_; | 216 AuthWatcherEvent::AuthenticationTrigger current_attempt_trigger_; |
| 218 DISALLOW_COPY_AND_ASSIGN(AuthWatcher); | 217 DISALLOW_COPY_AND_ASSIGN(AuthWatcher); |
| 219 }; | 218 }; |
| 220 | 219 |
| 221 } // namespace browser_sync | 220 } // namespace browser_sync |
| 222 | 221 |
| 223 #endif // CHROME_BROWSER_SYNC_ENGINE_AUTH_WATCHER_H_ | 222 #endif // CHROME_BROWSER_SYNC_ENGINE_AUTH_WATCHER_H_ |
| OLD | NEW |