// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_DOM_DISTILLER_CORE_DISTILLER_PAGE_H_ #define COMPONENTS_DOM_DISTILLER_CORE_DISTILLER_PAGE_H_ #include <memory> #include <string> #include "base/functional/callback.h" #include "base/values.h" #include "third_party/dom_distiller_js/dom_distiller.pb.h" #include "ui/gfx/geometry/size.h" #include "url/gurl.h" namespace dom_distiller { class SourcePageHandle { … }; // Injects JavaScript into a page, and uses it to extract and return long-form // content. The class can be reused to load and distill multiple pages, // following the state transitions described along with the class's states. // Constructing a DistillerPage should be cheap, as some of the instances can be // thrown away without ever being used. class DistillerPage { … }; // Factory for generating a |DistillerPage|. class DistillerPageFactory { … }; } // namespace dom_distiller #endif // COMPONENTS_DOM_DISTILLER_CORE_DISTILLER_PAGE_H_