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_HISTORY_SHORTCUTS_BACKEND_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_SHORTCUTS_BACKEND_FACTORY_H_ |
6 #define CHROME_BROWSER_HISTORY_SHORTCUTS_BACKEND_FACTORY_H_ | 6 #define CHROME_BROWSER_HISTORY_SHORTCUTS_BACKEND_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "chrome/browser/profiles/refcounted_profile_keyed_service_factory.h" | 10 #include "chrome/browser/profiles/refcounted_profile_keyed_service_factory.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 private: | 39 private: |
40 friend struct DefaultSingletonTraits<ShortcutsBackendFactory>; | 40 friend struct DefaultSingletonTraits<ShortcutsBackendFactory>; |
41 | 41 |
42 ShortcutsBackendFactory(); | 42 ShortcutsBackendFactory(); |
43 virtual ~ShortcutsBackendFactory(); | 43 virtual ~ShortcutsBackendFactory(); |
44 | 44 |
45 // ProfileKeyedServiceFactory: | 45 // ProfileKeyedServiceFactory: |
46 virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor( | 46 virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor( |
47 Profile* profile) const OVERRIDE; | 47 Profile* profile) const OVERRIDE; |
48 virtual bool ServiceIsNULLWhileTesting() OVERRIDE; | 48 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; |
49 }; | 49 }; |
50 | 50 |
51 #endif // CHROME_BROWSER_HISTORY_SHORTCUTS_BACKEND_FACTORY_H_ | 51 #endif // CHROME_BROWSER_HISTORY_SHORTCUTS_BACKEND_FACTORY_H_ |
OLD | NEW |