Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / android / dom_distiller / external_feedback_reporter_android.h
bloba88d8260d609db03ffd23e0fe8979473e07ed0f6
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_ANDROID_DOM_DISTILLER_EXTERNAL_FEEDBACK_REPORTER_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_DOM_DISTILLER_EXTERNAL_FEEDBACK_REPORTER_ANDROID_H_
8 #include "components/dom_distiller/content/browser/external_feedback_reporter.h"
9 #include "content/public/browser/web_contents.h"
11 namespace dom_distiller {
13 namespace android {
15 class ExternalFeedbackReporterAndroid : public ExternalFeedbackReporter {
16 public:
17 ExternalFeedbackReporterAndroid() {}
18 ~ExternalFeedbackReporterAndroid() override {}
20 // ExternalFeedbackReporter implementation.
21 void ReportExternalFeedback(content::WebContents* web_contents,
22 const GURL& url,
23 const bool good) override;
25 private:
26 DISALLOW_COPY_AND_ASSIGN(ExternalFeedbackReporterAndroid);
29 // Registers the FeedbackReporter's native methods through JNI.
30 bool RegisterFeedbackReporter(JNIEnv* env);
32 } // namespace android
34 } // namespace dom_distiller
36 #endif // CHROME_BROWSER_ANDROID_DOM_DISTILLER_EXTERNAL_FEEDBACK_REPORTER_ANDROID_H_