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

Unified Diff: components/dom_distiller/content/renderer/distiller_native_javascript.h

Issue 1265843005: Refactor feedback to use native JS object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@js-mojo-combine
Patch Set: impl comments Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/content/renderer/distiller_native_javascript.h
diff --git a/components/dom_distiller/content/renderer/distiller_native_javascript.h b/components/dom_distiller/content/renderer/distiller_native_javascript.h
index 180ef9fcb08e26ed93db4792e169d890ea0a758c..6914df2c38c7331f6eeb8f3304a50078d95c07e8 100644
--- a/components/dom_distiller/content/renderer/distiller_native_javascript.h
+++ b/components/dom_distiller/content/renderer/distiller_native_javascript.h
@@ -25,10 +25,16 @@ class DistillerNativeJavaScript {
void AddJavaScriptObjectToFrame(v8::Local<v8::Context> context);
private:
+ // Make sure the mojo service is connected.
+ void EnsureServiceConnected();
+
// Native code for "distiller.echo" in JavaScript. This simply returns the
// provided string.
std::string DistillerEcho(const std::string& message);
+ // Send feedback about distillation quality.
+ void DistillerSendFeedback(bool good);
+
content::RenderFrame* render_frame_;
DistillerJavaScriptServicePtr distiller_js_service_;
};

Powered by Google App Engine
This is Rietveld 408576698