OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_COOKIE_CHANGED_SUBSCRIPTION_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_COOKIE_CHANGED_SUBSCRIPTION_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_COOKIE_CHANGED_SUBSCRIPTION_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_COOKIE_CHANGED_SUBSCRIPTION_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
9 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
10 #include "components/signin/core/browser/signin_client.h" | 11 #include "components/signin/core/browser/signin_client.h" |
11 #include "net/url_request/url_request_context_getter.h" | 12 #include "net/url_request/url_request_context_getter.h" |
12 | 13 |
13 // The subscription for a cookie changed events. This class lives on the | 14 // The subscription for a cookie changed events. This class lives on the |
14 // main thread. | 15 // main thread. |
15 class SigninCookieChangedSubscription | 16 class SigninCookieChangedSubscription |
16 : public SigninClient::CookieChangedSubscription, | 17 : public SigninClient::CookieChangedSubscription, |
17 public base::SupportsWeakPtr<SigninCookieChangedSubscription> { | 18 public base::SupportsWeakPtr<SigninCookieChangedSubscription> { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 69 |
69 // Callback to be run on cookie changed events. | 70 // Callback to be run on cookie changed events. |
70 net::CookieStore::CookieChangedCallback callback_; | 71 net::CookieStore::CookieChangedCallback callback_; |
71 | 72 |
72 base::ThreadChecker thread_checker_; | 73 base::ThreadChecker thread_checker_; |
73 | 74 |
74 DISALLOW_COPY_AND_ASSIGN(SigninCookieChangedSubscription); | 75 DISALLOW_COPY_AND_ASSIGN(SigninCookieChangedSubscription); |
75 }; | 76 }; |
76 | 77 |
77 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_COOKIE_CHANGED_SUBSCRIPTION_H_ | 78 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_COOKIE_CHANGED_SUBSCRIPTION_H_ |
OLD | NEW |