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 b5cc6d577ba502ead6457bcb4b3162bca8653bf2..ca4c9e89e4f7d89be47e4ec3f7df8773243b3efb 100644 |
--- a/content/public/browser/web_ui_data_source.h |
+++ b/content/public/browser/web_ui_data_source.h |
@@ -25,6 +25,14 @@ class WebUIDataSource { |
CONTENT_EXPORT static WebUIDataSource* Create(const std::string& source_name); |
+#if defined(USE_MOJO) |
+ // Adds the necessary resources for mojo bindings returning the |
+ // WebUIDataSource that handles the resources. Callers do not own the return |
+ // value. |
+ CONTENT_EXPORT static WebUIDataSource* AddMojoDataSource( |
+ BrowserContext* browser_context); |
+#endif |
+ |
// Adds a WebUI data source to |browser_context|. |
CONTENT_EXPORT static void Add(BrowserContext* browser_context, |
WebUIDataSource* source); |