Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: components/dom_distiller/ios/distiller_page_factory_ios.h

Issue 936843002: Upstream iOS implementation of dom_distiller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web_controller_provider
Patch Set: Add blank lines Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/dom_distiller/ios/OWNERS ('k') | components/dom_distiller/ios/distiller_page_factory_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/ios/distiller_page_factory_ios.h
diff --git a/components/dom_distiller/ios/distiller_page_factory_ios.h b/components/dom_distiller/ios/distiller_page_factory_ios.h
new file mode 100644
index 0000000000000000000000000000000000000000..ae7f418d37b75e45776abe1e03163cd2763952d4
--- /dev/null
+++ b/components/dom_distiller/ios/distiller_page_factory_ios.h
@@ -0,0 +1,38 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_
+#define COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "components/dom_distiller/core/distiller_page.h"
+
+namespace web {
+class BrowserState;
+}
+
+namespace dom_distiller {
+
+class DistillerPageIOS;
+
+// DistillerPageFactoryIOS is an iOS-specific implementation of the
+// DistillerPageFactory interface allowing the creation of DistillerPage
+// instances.
+class DistillerPageFactoryIOS : public DistillerPageFactory {
+ public:
+ DistillerPageFactoryIOS(web::BrowserState* browser_state);
+
+ // Implementation of DistillerPageFactory:
+ scoped_ptr<DistillerPage> CreateDistillerPage(
+ const gfx::Size& view_size) const override;
+ scoped_ptr<DistillerPage> CreateDistillerPageWithHandle(
+ scoped_ptr<SourcePageHandle> handle) const override;
+
+ private:
+ web::BrowserState* browser_state_;
+};
+
+} // namespace dom_distiller
+
+#endif // COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_
« no previous file with comments | « components/dom_distiller/ios/OWNERS ('k') | components/dom_distiller/ios/distiller_page_factory_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698