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" |
11 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 11 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 12 #include "components/keyed_service/core/keyed_service.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 class BrowserContext; | 15 class BrowserContext; |
15 } // namespace content | 16 } // namespace content |
16 | 17 |
17 namespace dom_distiller { | 18 namespace dom_distiller { |
18 | 19 |
19 // A simple wrapper for DomDistillerService to expose it as a | 20 // A simple wrapper for DomDistillerService to expose it as a |
20 // KeyedService. | 21 // KeyedService. |
21 class DomDistillerContextKeyedService : public KeyedService, | 22 class DomDistillerContextKeyedService : public KeyedService, |
(...skipping 25 matching lines...) Expand all Loading... |
47 virtual KeyedService* BuildServiceInstanceFor( | 48 virtual KeyedService* BuildServiceInstanceFor( |
48 content::BrowserContext* context) const override; | 49 content::BrowserContext* context) const override; |
49 | 50 |
50 virtual content::BrowserContext* GetBrowserContextToUse( | 51 virtual content::BrowserContext* GetBrowserContextToUse( |
51 content::BrowserContext* context) const override; | 52 content::BrowserContext* context) const override; |
52 }; | 53 }; |
53 | 54 |
54 } // namespace dom_distiller | 55 } // namespace dom_distiller |
55 | 56 |
56 #endif // CHROME_BROWSER_DOM_DISTILLER_DOM_DISTILLER_SERVICE_FACTORY_H_ | 57 #endif // CHROME_BROWSER_DOM_DISTILLER_DOM_DISTILLER_SERVICE_FACTORY_H_ |
OLD | NEW |