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 #include "components/dom_distiller/content/dom_distiller_service_factory.h" | 5 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
6 | 6 |
7 #include "base/threading/sequenced_worker_pool.h" | 7 #include "base/threading/sequenced_worker_pool.h" |
8 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 8 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
9 #include "components/dom_distiller/content/distiller_page_web_contents.h" | 9 #include "components/dom_distiller/content/distiller_page_web_contents.h" |
10 #include "components/dom_distiller/core/distiller.h" | 10 #include "components/dom_distiller/core/distiller.h" |
11 #include "components/dom_distiller/core/dom_distiller_store.h" | 11 #include "components/dom_distiller/core/dom_distiller_store.h" |
12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 | 14 |
15 namespace dom_distiller { | 15 namespace dom_distiller { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 distiller_url_fetcher_factory.Pass())); | 65 distiller_url_fetcher_factory.Pass())); |
66 return new DomDistillerContextKeyedService( | 66 return new DomDistillerContextKeyedService( |
67 dom_distiller_store.PassAs<DomDistillerStoreInterface>(), | 67 dom_distiller_store.PassAs<DomDistillerStoreInterface>(), |
68 distiller_factory.Pass()); | 68 distiller_factory.Pass()); |
69 | 69 |
70 } | 70 } |
71 | 71 |
72 content::BrowserContext* DomDistillerServiceFactory::GetBrowserContextToUse( | 72 content::BrowserContext* DomDistillerServiceFactory::GetBrowserContextToUse( |
73 content::BrowserContext* context) const { | 73 content::BrowserContext* context) const { |
74 // TODO(cjhopman): Do we want this to be | 74 // TODO(cjhopman): Do we want this to be |
75 // GetBrowserContextRedirectedInIncognito? If so, find some way to use that in | 75 // GetBrowserContextRedirectedInIncognito? |
76 // components/. | |
77 return context; | 76 return context; |
78 } | 77 } |
79 | 78 |
80 } // namespace apps | 79 } // namespace dom_distiller |
OLD | NEW |