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

Side by Side Diff: chrome/browser/dom_distiller/lazy_dom_distiller_service.h

Issue 1575473002: Improve syncing between dom distiller and the print preview request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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 CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_
6 #define CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_ 6 #define CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/dom_distiller/core/dom_distiller_service.h" 9 #include "components/dom_distiller/core/dom_distiller_service.h"
10 #include "components/dom_distiller/core/task_tracker.h" 10 #include "components/dom_distiller/core/task_tracker.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 bool HasEntry(const std::string& entry_id) override; 42 bool HasEntry(const std::string& entry_id) override;
43 std::string GetUrlForEntry(const std::string& entry_id) override; 43 std::string GetUrlForEntry(const std::string& entry_id) override;
44 std::vector<ArticleEntry> GetEntries() const override; 44 std::vector<ArticleEntry> GetEntries() const override;
45 scoped_ptr<ArticleEntry> RemoveEntry(const std::string& entry_id) override; 45 scoped_ptr<ArticleEntry> RemoveEntry(const std::string& entry_id) override;
46 scoped_ptr<ViewerHandle> ViewEntry(ViewRequestDelegate* delegate, 46 scoped_ptr<ViewerHandle> ViewEntry(ViewRequestDelegate* delegate,
47 scoped_ptr<DistillerPage> distiller_page, 47 scoped_ptr<DistillerPage> distiller_page,
48 const std::string& entry_id) override; 48 const std::string& entry_id) override;
49 scoped_ptr<ViewerHandle> ViewUrl(ViewRequestDelegate* delegate, 49 scoped_ptr<ViewerHandle> ViewUrl(ViewRequestDelegate* delegate,
50 scoped_ptr<DistillerPage> distiller_page, 50 scoped_ptr<DistillerPage> distiller_page,
51 const GURL& url) override; 51 const GURL& url) override;
52 scoped_ptr<ViewerHandle> AddViewRequestDelegate(ViewRequestDelegate* delegate,
53 const GURL& url) override;
52 scoped_ptr<DistillerPage> CreateDefaultDistillerPage( 54 scoped_ptr<DistillerPage> CreateDefaultDistillerPage(
53 const gfx::Size& render_view_size) override; 55 const gfx::Size& render_view_size) override;
54 scoped_ptr<DistillerPage> CreateDefaultDistillerPageWithHandle( 56 scoped_ptr<DistillerPage> CreateDefaultDistillerPageWithHandle(
55 scoped_ptr<SourcePageHandle> handle) override; 57 scoped_ptr<SourcePageHandle> handle) override;
56 void AddObserver(DomDistillerObserver* observer) override; 58 void AddObserver(DomDistillerObserver* observer) override;
57 void RemoveObserver(DomDistillerObserver* observer) override; 59 void RemoveObserver(DomDistillerObserver* observer) override;
58 DistilledPagePrefs* GetDistilledPagePrefs() override; 60 DistilledPagePrefs* GetDistilledPagePrefs() override;
59 61
60 private: 62 private:
61 // Accessor method for the backing service instance. 63 // Accessor method for the backing service instance.
(...skipping 13 matching lines...) Expand all
75 77
76 // Used to track when the profile is shut down. 78 // Used to track when the profile is shut down.
77 content::NotificationRegistrar registrar_; 79 content::NotificationRegistrar registrar_;
78 80
79 DISALLOW_COPY_AND_ASSIGN(LazyDomDistillerService); 81 DISALLOW_COPY_AND_ASSIGN(LazyDomDistillerService);
80 }; 82 };
81 83
82 } // namespace dom_distiller 84 } // namespace dom_distiller
83 85
84 #endif // CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_ 86 #endif // CHROME_BROWSER_DOM_DISTILLER_LAZY_DOM_DISTILLER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698