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

Unified Diff: components/dom_distiller/core/distiller_page.h

Issue 286583002: Pull DomDistillerOptions up to the DistillerFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: :/ Created 6 years, 7 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/core/distiller.cc ('k') | components/dom_distiller/core/distiller_page.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/distiller_page.h
diff --git a/components/dom_distiller/core/distiller_page.h b/components/dom_distiller/core/distiller_page.h
index a30d5e79d67e2f71f0ec41ce3ea23d820799188b..429a676540baeac2d434850e6dac6032f219bdb8 100644
--- a/components/dom_distiller/core/distiller_page.h
+++ b/components/dom_distiller/core/distiller_page.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/values.h"
+#include "third_party/dom_distiller_js/dom_distiller.pb.h"
#include "url/gurl.h"
namespace dom_distiller {
@@ -44,9 +45,11 @@ class DistillerPage {
// Loads a URL. |OnDistillationDone| is called when the load completes or
// fails. May be called when the distiller is idle. Callers can assume that,
- // for a given |url|, any DistillerPage implementation will extract the same
- // content.
- void DistillPage(const GURL& url, const DistillerPageCallback& callback);
+ // for a given |url| and |options|, any DistillerPage implementation will
+ // extract the same content.
+ void DistillPage(const GURL& url,
+ const dom_distiller::proto::DomDistillerOptions options,
+ const DistillerPageCallback& callback);
// Called when the JavaScript execution completes. |page_url| is the url of
// the distilled page. |value| contains data returned by the script.
« no previous file with comments | « components/dom_distiller/core/distiller.cc ('k') | components/dom_distiller/core/distiller_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698