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

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

Issue 225903006: PPAPI: Run clang_format.py on content/renderer/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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
« no previous file with comments | « content/renderer/pepper/url_request_info_util.cc ('k') | content/renderer/pepper/v8_var_converter.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 9df65348fb305ecd29e39fbda4ef13cca59e0bcc..2636e19c7e8484f549c0dd5d8150b6f7807585d3 100644
--- a/content/renderer/pepper/url_response_info_util.cc
+++ b/content/renderer/pepper/url_response_info_util.cc
@@ -43,9 +43,7 @@ class HeaderFlattener : public WebHTTPHeaderVisitor {
std::string buffer_;
};
-bool IsRedirect(int32_t status) {
- return status >= 300 && status <= 399;
-}
+bool IsRedirect(int32_t status) { return status >= 300 && status <= 399; }
void DidCreateResourceHosts(const ppapi::URLResponseInfoData& in_data,
const base::FilePath& external_path,
@@ -60,11 +58,11 @@ void DidCreateResourceHosts(const ppapi::URLResponseInfoData& in_data,
ppapi::URLResponseInfoData data = in_data;
- data.body_as_file_ref = ppapi::MakeExternalFileRefCreateInfo(
- external_path,
- std::string(),
- browser_pending_host_id,
- renderer_pending_host_id);
+ data.body_as_file_ref =
+ ppapi::MakeExternalFileRefCreateInfo(external_path,
+ std::string(),
+ browser_pending_host_id,
+ renderer_pending_host_id);
callback.Run(data);
}
@@ -79,8 +77,8 @@ void DataFromWebURLResponse(RendererPpapiHostImpl* host_impl,
data.status_code = response.httpStatusCode();
data.status_text = response.httpStatusText().utf8();
if (IsRedirect(data.status_code)) {
- data.redirect_url = response.httpHeaderField(
- WebString::fromUTF8("Location")).utf8();
+ data.redirect_url =
+ response.httpHeaderField(WebString::fromUTF8("Location")).utf8();
}
HeaderFlattener flattener;
@@ -100,18 +98,16 @@ void DataFromWebURLResponse(RendererPpapiHostImpl* host_impl,
std::vector<IPC::Message> create_msgs;
create_msgs.push_back(PpapiHostMsg_FileRef_CreateForRawFS(external_path));
- host_impl->CreateBrowserResourceHosts(
- pp_instance,
- create_msgs,
- base::Bind(&DidCreateResourceHosts,
- data,
- external_path,
- renderer_pending_host_id,
- callback));
+ host_impl->CreateBrowserResourceHosts(pp_instance,
+ create_msgs,
+ base::Bind(&DidCreateResourceHosts,
+ data,
+ external_path,
+ renderer_pending_host_id,
+ callback));
} else {
- base::MessageLoop::current()->PostTask(
- FROM_HERE,
- base::Bind(callback, data));
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::Bind(callback, data));
}
}
« no previous file with comments | « content/renderer/pepper/url_request_info_util.cc ('k') | content/renderer/pepper/v8_var_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698