summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/resource_dispatcher_unittest.cc3
-rw-r--r--chrome/common/security_filter_peer.cc4
-rw-r--r--chrome/common/security_filter_peer.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/resource_dispatcher_unittest.cc b/chrome/common/resource_dispatcher_unittest.cc
index 0370bde..a3eea69 100644
--- a/chrome/common/resource_dispatcher_unittest.cc
+++ b/chrome/common/resource_dispatcher_unittest.cc
@@ -44,6 +44,9 @@ class TestRequestCallback : public ResourceLoaderBridge::Peer {
data_.append(data, len);
}
+ virtual void OnUploadProgress(uint64 position, uint64 size) {
+ }
+
virtual void OnCompletedRequest(const URLRequestStatus& status,
const std::string& security_info) {
EXPECT_FALSE(complete_);
diff --git a/chrome/common/security_filter_peer.cc b/chrome/common/security_filter_peer.cc
index cfe8919..e3c5cf0 100644
--- a/chrome/common/security_filter_peer.cc
+++ b/chrome/common/security_filter_peer.cc
@@ -100,6 +100,10 @@ SecurityFilterPeer* SecurityFilterPeer::CreateSecurityFilterPeerForFrame(
return new ReplaceContentPeer(NULL, peer, "text/html", html);
}
+void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) {
+ original_peer_->OnUploadProgress(position, size);
+}
+
void SecurityFilterPeer::OnReceivedRedirect(const GURL& new_url) {
NOTREACHED();
}
diff --git a/chrome/common/security_filter_peer.h b/chrome/common/security_filter_peer.h
index 6eaf612..ec90bb5 100644
--- a/chrome/common/security_filter_peer.h
+++ b/chrome/common/security_filter_peer.h
@@ -38,6 +38,7 @@ class SecurityFilterPeer : public webkit_glue::ResourceLoaderBridge::Peer {
int os_error);
// ResourceLoaderBridge::Peer methods.
+ virtual void OnUploadProgress(uint64 position, uint64 size);
virtual void OnReceivedRedirect(const GURL& new_url);
virtual void OnReceivedResponse(
const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,