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

Unified Diff: content/public/browser/web_ui_data_source.h

Issue 2391073005: WebUIDataSource::AddInteger (like AddBoolean/AddString) (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_ui_data_source.h
diff --git a/content/public/browser/web_ui_data_source.h b/content/public/browser/web_ui_data_source.h
index 04ddab5104a6efb816c348cbbcb0041d4ae3c2b7..29559ff5810620162071ba4d2f7b9270a30011cb 100644
--- a/content/public/browser/web_ui_data_source.h
+++ b/content/public/browser/web_ui_data_source.h
@@ -47,6 +47,9 @@ class WebUIDataSource {
// Adds a boolean keyed to its name to our dictionary.
virtual void AddBoolean(const std::string& name, bool value) = 0;
+ // Adds an integer keyed to its name to our dictionary.
+ virtual void AddInteger(const std::string& name, int value) = 0;
+
// Sets the path which will return the JSON strings.
virtual void SetJsonPath(const std::string& path) = 0;

Powered by Google App Engine
This is Rietveld 408576698