Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_FACTORY_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "base/memory/singleton.h" | |
| 11 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | |
| 12 | |
| 13 class Profile; | |
| 14 | |
| 15 namespace chromeos { | |
| 16 | |
| 17 class SessionLengthLimiter; | |
| 18 class SessionLengthLimiterTest; | |
| 19 | |
| 20 class SessionLengthLimiterFactory : public ProfileKeyedServiceFactory { | |
| 21 public: | |
| 22 static SessionLengthLimiterFactory* GetInstance(); | |
| 23 | |
| 24 private: | |
| 25 friend struct DefaultSingletonTraits<SessionLengthLimiterFactory>; | |
| 26 friend class SessionLengthLimiterTest; | |
| 27 | |
| 28 SessionLengthLimiterFactory(); | |
| 29 virtual ~SessionLengthLimiterFactory(); | |
| 30 | |
| 31 // ProfileKeyedServiceFactory: | |
| 32 virtual ProfileKeyedService* BuildServiceInstanceFor( | |
| 33 Profile* profile) const OVERRIDE; | |
| 34 virtual void RegisterUserPrefs(PrefService* prefs) OVERRIDE; | |
| 35 virtual bool ServiceIsCreatedWithProfile() const OVERRIDE; | |
|
Mattias Nissler (ping if slow)
2012/12/12 10:12:57
That's interesting. In Chrome OS, there are at lea
bartfab (slow)
2012/12/13 16:22:48
Your are right. This did not work. I refactored th
| |
| 36 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(SessionLengthLimiterFactory); | |
| 39 }; | |
| 40 | |
| 41 } // namespace chromeos | |
| 42 | |
| 43 #endif // CHROME_BROWSER_CHROMEOS_SESSION_LENGTH_LIMITER_FACTORY_H_ | |
| OLD | NEW |