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

Unified Diff: chrome/browser/ui/webui/plugins/plugins_handler.h

Issue 2481483002: Mojo C++ bindings: make chrome/browser/ui/webui mojom target use STL types. (Closed)
Patch Set: . Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/webui/plugins/BUILD.gn ('k') | chrome/browser/ui/webui/plugins/plugins_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/plugins/plugins_handler.h
diff --git a/chrome/browser/ui/webui/plugins/plugins_handler.h b/chrome/browser/ui/webui/plugins/plugins_handler.h
index 595578ac42fe1d7e9b3e791ff6bad30ec928fa2a..13bbaabc61da194ed9747631225abf5eb7dbf7cb 100644
--- a/chrome/browser/ui/webui/plugins/plugins_handler.h
+++ b/chrome/browser/ui/webui/plugins/plugins_handler.h
@@ -29,10 +29,9 @@ class PluginsPageHandler : public MojoWebUIHandler,
void GetPluginsData(const GetPluginsDataCallback& callback) override;
void GetShowDetails(const GetShowDetailsCallback& callback) override;
void SaveShowDetailsToPrefs(bool details_mode) override;
- void SetPluginAlwaysAllowed(const mojo::String& plugin,
- bool allowed) override;
- void SetPluginEnabled(const mojo::String& plugin_path, bool enable) override;
- void SetPluginGroupEnabled(const mojo::String& group_name,
+ void SetPluginAlwaysAllowed(const std::string& plugin, bool allowed) override;
+ void SetPluginEnabled(const std::string& plugin_path, bool enable) override;
+ void SetPluginGroupEnabled(const std::string& group_name,
bool enable) override;
void SetClientPage(mojom::PluginsPagePtr page) override;
@@ -42,7 +41,7 @@ class PluginsPageHandler : public MojoWebUIHandler,
const content::NotificationDetails& details) override;
private:
- mojo::Array<mojom::PluginDataPtr> GeneratePluginsData(
+ std::vector<mojom::PluginDataPtr> GeneratePluginsData(
const std::vector<content::WebPluginInfo>& plugins);
mojom::PluginFilePtr GeneratePluginFile(const content::WebPluginInfo& plugin,
@@ -62,7 +61,7 @@ class PluginsPageHandler : public MojoWebUIHandler,
// Detect a plugin group's enabled mode (one of enabledByUser, disabledByUser,
// enabledByPolicy, disabledByPolicy, managedByPolicy).
std::string GetPluginGroupEnabledMode(
- const mojo::Array<mojom::PluginFilePtr>& plugin_files,
+ const std::vector<mojom::PluginFilePtr>& plugin_files,
bool group_enabled) const;
// Called on the UI thread when the plugin info requested fom GetPluginsData
« no previous file with comments | « chrome/browser/ui/webui/plugins/BUILD.gn ('k') | chrome/browser/ui/webui/plugins/plugins_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698