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 CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_FACTORY_H_ |
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_FACTORY_H_ | 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_FACTORY_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "components/signin/core/browser/signin_tracker.h" | 10 #include "components/signin/core/browser/signin_tracker.h" |
10 | 11 |
11 class Profile; | 12 class Profile; |
12 | 13 |
13 class SigninTrackerFactory { | 14 class SigninTrackerFactory { |
14 public: | 15 public: |
15 virtual ~SigninTrackerFactory(); | 16 virtual ~SigninTrackerFactory(); |
16 | 17 |
17 // Creates a SigninTracker instance that tracks signin for |profile| on | 18 // Creates a SigninTracker instance that tracks signin for |profile| on |
18 // behalf of |observer|. | 19 // behalf of |observer|. |
19 static scoped_ptr<SigninTracker> CreateForProfile( | 20 static scoped_ptr<SigninTracker> CreateForProfile( |
20 Profile* profile, | 21 Profile* profile, |
21 SigninTracker::Observer* observer); | 22 SigninTracker::Observer* observer); |
22 | 23 |
23 private: | 24 private: |
24 SigninTrackerFactory(); | 25 SigninTrackerFactory(); |
25 | 26 |
26 DISALLOW_COPY_AND_ASSIGN(SigninTrackerFactory); | 27 DISALLOW_COPY_AND_ASSIGN(SigninTrackerFactory); |
27 }; | 28 }; |
28 | 29 |
29 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_FACTORY_H_ | 30 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_FACTORY_H_ |
OLD | NEW |