| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 5 #include "ios/chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 9 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
| 10 #include "components/dom_distiller/core/article_entry.h" | 11 #include "components/dom_distiller/core/article_entry.h" |
| 11 #include "components/dom_distiller/core/distiller.h" | 12 #include "components/dom_distiller/core/distiller.h" |
| 12 #include "components/dom_distiller/core/dom_distiller_service.h" | 13 #include "components/dom_distiller/core/dom_distiller_service.h" |
| 13 #include "components/dom_distiller/core/dom_distiller_store.h" | 14 #include "components/dom_distiller/core/dom_distiller_store.h" |
| 14 #include "components/dom_distiller/ios/distiller_page_factory_ios.h" | 15 #include "components/dom_distiller/ios/distiller_page_factory_ios.h" |
| 15 #include "components/keyed_service/core/keyed_service.h" | 16 #include "components/keyed_service/core/keyed_service.h" |
| 16 #include "components/keyed_service/ios/browser_state_dependency_manager.h" | 17 #include "components/keyed_service/ios/browser_state_dependency_manager.h" |
| 17 #include "components/leveldb_proto/proto_database.h" | 18 #include "components/leveldb_proto/proto_database.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 distiller_page_factory.Pass(), distilled_page_prefs.Pass())); | 101 distiller_page_factory.Pass(), distilled_page_prefs.Pass())); |
| 101 } | 102 } |
| 102 | 103 |
| 103 web::BrowserState* DomDistillerServiceFactory::GetBrowserStateToUse( | 104 web::BrowserState* DomDistillerServiceFactory::GetBrowserStateToUse( |
| 104 web::BrowserState* context) const { | 105 web::BrowserState* context) const { |
| 105 // Makes normal profile and off-the-record profile use same service instance. | 106 // Makes normal profile and off-the-record profile use same service instance. |
| 106 return GetBrowserStateRedirectedInIncognito(context); | 107 return GetBrowserStateRedirectedInIncognito(context); |
| 107 } | 108 } |
| 108 | 109 |
| 109 } // namespace dom_distiller | 110 } // namespace dom_distiller |
| OLD | NEW |