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

Unified Diff: webkit/tools/test_shell/simple_resource_loader_bridge.cc

Issue 7276: Adding security info to canceled requests (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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: webkit/tools/test_shell/simple_resource_loader_bridge.cc
===================================================================
--- webkit/tools/test_shell/simple_resource_loader_bridge.cc (revision 9948)
+++ webkit/tools/test_shell/simple_resource_loader_bridge.cc (working copy)
@@ -172,9 +172,10 @@
peer_->OnReceivedData(buf_copy.get(), bytes_read);
}
- void NotifyCompletedRequest(const URLRequestStatus& status) {
+ void NotifyCompletedRequest(const URLRequestStatus& status,
+ const std::string& security_info) {
if (peer_) {
- peer_->OnCompletedRequest(status);
+ peer_->OnCompletedRequest(status, security_info);
DropPeer(); // ensure no further notifications
}
}
@@ -245,9 +246,10 @@
this, &RequestProxy::NotifyReceivedData, bytes_read));
}
- virtual void OnCompletedRequest(const URLRequestStatus& status) {
+ virtual void OnCompletedRequest(const URLRequestStatus& status,
+ const std::string& security_info) {
owner_loop_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &RequestProxy::NotifyCompletedRequest, status));
+ this, &RequestProxy::NotifyCompletedRequest, status, security_info));
}
// --------------------------------------------------------------------------
@@ -288,7 +290,7 @@
void Done() {
DCHECK(request_.get());
- OnCompletedRequest(request_->status());
+ OnCompletedRequest(request_->status(), std::string());
request_.reset(); // destroy on the io thread
}
« webkit/glue/resource_loader_bridge.h ('K') | « webkit/glue/resource_loader_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698