OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_SESSIONS_SESSION_SERVICE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_FACTORY_H_ |
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_FACTORY_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/sessions/session_service.h" | 10 #include "chrome/browser/sessions/session_service.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #endif | 52 #endif |
53 | 53 |
54 static SessionServiceFactory* GetInstance(); | 54 static SessionServiceFactory* GetInstance(); |
55 | 55 |
56 private: | 56 private: |
57 friend struct DefaultSingletonTraits<SessionServiceFactory>; | 57 friend struct DefaultSingletonTraits<SessionServiceFactory>; |
58 FRIEND_TEST_ALL_PREFIXES(SessionCrashedInfoBarDelegateUnitTest, | 58 FRIEND_TEST_ALL_PREFIXES(SessionCrashedInfoBarDelegateUnitTest, |
59 DetachingTabWithCrashedInfoBar); | 59 DetachingTabWithCrashedInfoBar); |
60 | 60 |
61 SessionServiceFactory(); | 61 SessionServiceFactory(); |
62 virtual ~SessionServiceFactory(); | 62 ~SessionServiceFactory() override; |
63 | 63 |
64 // BrowserContextKeyedServiceFactory: | 64 // BrowserContextKeyedServiceFactory: |
65 virtual KeyedService* BuildServiceInstanceFor( | 65 KeyedService* BuildServiceInstanceFor( |
66 content::BrowserContext* profile) const override; | 66 content::BrowserContext* profile) const override; |
67 virtual bool ServiceIsCreatedWithBrowserContext() const override; | 67 bool ServiceIsCreatedWithBrowserContext() const override; |
68 virtual bool ServiceIsNULLWhileTesting() const override; | 68 bool ServiceIsNULLWhileTesting() const override; |
69 }; | 69 }; |
70 | 70 |
71 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_FACTORY_H_ | 71 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_FACTORY_H_ |
OLD | NEW |