OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DOM_DISTILLER_DOM_DISTILLER_SERVICE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_DOM_DISTILLER_DOM_DISTILLER_SERVICE_FACTORY_H_ |
6 #define CHROME_BROWSER_DOM_DISTILLER_DOM_DISTILLER_SERVICE_FACTORY_H_ | 6 #define CHROME_BROWSER_DOM_DISTILLER_DOM_DISTILLER_SERVICE_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "components/dom_distiller/core/distilled_page_prefs.h" | 9 #include "components/dom_distiller/core/distilled_page_prefs.h" |
10 #include "components/dom_distiller/core/dom_distiller_service.h" | 10 #include "components/dom_distiller/core/dom_distiller_service.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 static DomDistillerContextKeyedService* GetForBrowserContext( | 38 static DomDistillerContextKeyedService* GetForBrowserContext( |
39 content::BrowserContext* context); | 39 content::BrowserContext* context); |
40 | 40 |
41 private: | 41 private: |
42 friend struct DefaultSingletonTraits<DomDistillerServiceFactory>; | 42 friend struct DefaultSingletonTraits<DomDistillerServiceFactory>; |
43 | 43 |
44 DomDistillerServiceFactory(); | 44 DomDistillerServiceFactory(); |
45 virtual ~DomDistillerServiceFactory(); | 45 virtual ~DomDistillerServiceFactory(); |
46 | 46 |
47 virtual KeyedService* BuildServiceInstanceFor( | 47 virtual KeyedService* BuildServiceInstanceFor( |
48 content::BrowserContext* context) const OVERRIDE; | 48 content::BrowserContext* context) const override; |
49 | 49 |
50 virtual content::BrowserContext* GetBrowserContextToUse( | 50 virtual content::BrowserContext* GetBrowserContextToUse( |
51 content::BrowserContext* context) const OVERRIDE; | 51 content::BrowserContext* context) const override; |
52 }; | 52 }; |
53 | 53 |
54 } // namespace dom_distiller | 54 } // namespace dom_distiller |
55 | 55 |
56 #endif // CHROME_BROWSER_DOM_DISTILLER_DOM_DISTILLER_SERVICE_FACTORY_H_ | 56 #endif // CHROME_BROWSER_DOM_DISTILLER_DOM_DISTILLER_SERVICE_FACTORY_H_ |
OLD | NEW |