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

Side by Side Diff: components/dom_distiller/core/viewer.h

Issue 341563002: Theme Preferences for Distilled Pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implmented CSS Classes, rebased CSS, added Javascript for instantaneous changes Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_
6 #define COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ 6 #define COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 14
15 namespace dom_distiller { 15 namespace dom_distiller {
16 16
17 class DistilledArticleProto; 17 class DistilledArticleProto;
18 class DistilledPageProto; 18 class DistilledPageProto;
19 class DomDistillerServiceInterface; 19 class DomDistillerServiceInterface;
20 class ReaderModePrefs;
nyquist 2014/06/26 20:39:59 I don't think this is needed anymore.
smaslo 2014/06/27 18:33:18 I added the header file because I need the enum de
20 class ViewerHandle; 21 class ViewerHandle;
21 class ViewRequestDelegate; 22 class ViewRequestDelegate;
22 23
23 namespace viewer { 24 namespace viewer {
24 25
25 // Returns a full HTML page based on the given |article_proto|. This is supposed 26 // Returns a full HTML page based on the given |article_proto|. This is supposed
26 // to be displayed to the end user. The returned HTML should be considered 27 // to be displayed to the end user. The returned HTML should be considered
27 // unsafe, so callers must ensure rendering it does not compromise Chrome. 28 // unsafe, so callers must ensure rendering it does not compromise Chrome.
28 const std::string GetUnsafeArticleHtml( 29 const std::string GetUnsafeArticleHtml(
29 const DistilledArticleProto* article_proto); 30 const DistilledArticleProto* article_proto);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 scoped_ptr<ViewerHandle> CreateViewRequest( 65 scoped_ptr<ViewerHandle> CreateViewRequest(
65 DomDistillerServiceInterface* dom_distiller_service, 66 DomDistillerServiceInterface* dom_distiller_service,
66 const std::string& path, 67 const std::string& path,
67 ViewRequestDelegate* view_request_delegate); 68 ViewRequestDelegate* view_request_delegate);
68 69
69 } // namespace viewer 70 } // namespace viewer
70 71
71 } // namespace dom_distiller 72 } // namespace dom_distiller
72 73
73 #endif // COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_ 74 #endif // COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698