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

Unified Diff: trunk/src/content/renderer/pepper/pepper_browser_connection.cc

Issue 22903002: Revert 216744 "Pepper: Move FileRef to the "new" resource proxy." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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: trunk/src/content/renderer/pepper/pepper_browser_connection.cc
===================================================================
--- trunk/src/content/renderer/pepper/pepper_browser_connection.cc (revision 217031)
+++ trunk/src/content/renderer/pepper/pepper_browser_connection.cc (working copy)
@@ -34,10 +34,9 @@
IPC_BEGIN_MESSAGE_MAP(PepperBrowserConnection, msg)
IPC_MESSAGE_HANDLER(PpapiHostMsg_CreateResourceHostFromHostReply,
OnMsgCreateResourceHostFromHostReply)
- IPC_MESSAGE_HANDLER(PpapiHostMsg_FileRef_GetInfoForRendererReply,
- OnMsgFileRefGetInfoReply)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
+
return handled;
}
@@ -102,7 +101,10 @@
void PepperBrowserConnection::OnMsgFileRefGetInfoReply(
int32_t sequence_number,
- const std::vector<ppapi::FileRefDetailedInfo>& infos) {
+ const std::vector<PP_Resource>& resources,
+ const std::vector<PP_FileSystemType>& types,
+ const std::vector<std::string>& file_system_url_specs,
+ const std::vector<base::FilePath>& external_paths) {
// Check that the message is destined for the plugin this object is associated
// with.
std::map<int32_t, FileRefGetInfoCallback>::iterator it =
@@ -110,7 +112,7 @@
if (it != get_info_map_.end()) {
FileRefGetInfoCallback callback = it->second;
get_info_map_.erase(it);
- callback.Run(infos);
+ callback.Run(resources, types, file_system_url_specs, external_paths);
} else {
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698