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

Side by Side Diff: components/dom_distiller/content/browser/distiller_ui_handle.h

Issue 1386043002: Open distiller UI setting through JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing file Created 5 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CONTENT_BROWSER_EXTERNAL_FEEDBACK_REPORTER_H_ 5 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_
6 #define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_EXTERNAL_FEEDBACK_REPORTER_H_ 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 namespace dom_distiller { 12 namespace dom_distiller {
13 13
14 // ExternalFeedbackReporter handles reporting distillation quality through an 14 // ExternalFeedbackReporter handles reporting distillation quality through an
15 // external source. 15 // external source.
16 class ExternalFeedbackReporter { 16 class DistillerUIHandle {
17 public: 17 public:
18 ExternalFeedbackReporter() {} 18 DistillerUIHandle() {}
19 virtual ~ExternalFeedbackReporter() {} 19 virtual ~DistillerUIHandle() {}
20 20
21 // Start an external form to record user feedback. 21 // Start an external form to record user feedback.
22 virtual void ReportExternalFeedback(content::WebContents* web_contents, 22 virtual void ReportExternalFeedback(content::WebContents* web_contents,
23 const GURL& url, 23 const GURL& url,
24 const bool good) = 0; 24 const bool good) = 0;
25 25
26 // Open the UI settings for dom distiller.
27 virtual void OpenSettings(content::WebContents* web_contents) = 0;
28
26 private: 29 private:
27 DISALLOW_COPY_AND_ASSIGN(ExternalFeedbackReporter); 30 DISALLOW_COPY_AND_ASSIGN(DistillerUIHandle);
28 }; 31 };
29 32
30 } // namespace dom_distiller 33 } // namespace dom_distiller
31 34
32 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_EXTERNAL_FEEDBACK_REPORTER_H _ 35 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLER_UI_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698