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

Unified Diff: content/renderer/pepper/url_response_info_util.cc

Issue 730603002: PPAPI: Refactor renderer side of browser host creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 6 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 | « content/renderer/pepper/resource_converter.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/url_response_info_util.cc
diff --git a/content/renderer/pepper/url_response_info_util.cc b/content/renderer/pepper/url_response_info_util.cc
index 2636e19c7e8484f549c0dd5d8150b6f7807585d3..aa55dae0f5d9ea291fb931d1c763dbdab631c8bc 100644
--- a/content/renderer/pepper/url_response_info_util.cc
+++ b/content/renderer/pepper/url_response_info_util.cc
@@ -45,16 +45,17 @@ class HeaderFlattener : public WebHTTPHeaderVisitor {
bool IsRedirect(int32_t status) { return status >= 300 && status <= 399; }
-void DidCreateResourceHosts(const ppapi::URLResponseInfoData& in_data,
- const base::FilePath& external_path,
- int renderer_pending_host_id,
- const DataFromWebURLResponseCallback& callback,
- const std::vector<int>& browser_pending_host_ids) {
- DCHECK_EQ(1U, browser_pending_host_ids.size());
+void DidCreateResourceHosts(
+ const ppapi::URLResponseInfoData& in_data,
+ const base::FilePath& external_path,
+ int renderer_pending_host_id,
+ const DataFromWebURLResponseCallback& callback,
+ const ppapi::proxy::CompletedBrowserResourceHosts& browser_hosts) {
+ DCHECK_EQ(1U, browser_hosts.host_ids.size());
int browser_pending_host_id = 0;
- if (browser_pending_host_ids.size() == 1)
- browser_pending_host_id = browser_pending_host_ids[0];
+ if (browser_hosts.host_ids.size() == 1)
+ browser_pending_host_id = browser_hosts.host_ids[0];
ppapi::URLResponseInfoData data = in_data;
« no previous file with comments | « content/renderer/pepper/resource_converter.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698