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

Unified Diff: chrome/renderer/security_filter_peer.cc

Issue 293353007: Move resource_response_info from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « chrome/renderer/security_filter_peer.h ('k') | content/child/npapi/plugin_url_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/security_filter_peer.cc
diff --git a/chrome/renderer/security_filter_peer.cc b/chrome/renderer/security_filter_peer.cc
index 24be8f9c3bdadcad307b8d84dba1ae012bf45d08..c43b451caaf0939eafc86b105fbaffb75e3a240a 100644
--- a/chrome/renderer/security_filter_peer.cc
+++ b/chrome/renderer/security_filter_peer.cc
@@ -71,13 +71,13 @@ void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) {
bool SecurityFilterPeer::OnReceivedRedirect(
const GURL& new_url,
const GURL& new_first_party_for_cookies,
- const webkit_glue::ResourceResponseInfo& info) {
+ const content::ResourceResponseInfo& info) {
NOTREACHED();
return false;
}
void SecurityFilterPeer::OnReceivedResponse(
- const webkit_glue::ResourceResponseInfo& info) {
+ const content::ResourceResponseInfo& info) {
NOTREACHED();
}
@@ -98,10 +98,9 @@ void SecurityFilterPeer::OnCompletedRequest(
}
// static
-void ProcessResponseInfo(
- const webkit_glue::ResourceResponseInfo& info_in,
- webkit_glue::ResourceResponseInfo* info_out,
- const std::string& mime_type) {
+void ProcessResponseInfo(const content::ResourceResponseInfo& info_in,
+ content::ResourceResponseInfo* info_out,
+ const std::string& mime_type) {
DCHECK(info_out);
*info_out = info_in;
info_out->mime_type = mime_type;
@@ -137,7 +136,7 @@ BufferedPeer::~BufferedPeer() {
}
void BufferedPeer::OnReceivedResponse(
- const webkit_glue::ResourceResponseInfo& info) {
+ const content::ResourceResponseInfo& info) {
ProcessResponseInfo(info, &response_info_, mime_type_);
}
@@ -191,7 +190,7 @@ ReplaceContentPeer::~ReplaceContentPeer() {
}
void ReplaceContentPeer::OnReceivedResponse(
- const webkit_glue::ResourceResponseInfo& info) {
+ const content::ResourceResponseInfo& info) {
// Ignore this, we'll serve some alternate content in OnCompletedRequest.
}
@@ -208,7 +207,7 @@ void ReplaceContentPeer::OnCompletedRequest(
const std::string& security_info,
const base::TimeTicks& completion_time,
int64 total_transfer_size) {
- webkit_glue::ResourceResponseInfo info;
+ content::ResourceResponseInfo info;
ProcessResponseInfo(info, &info, mime_type_);
info.security_info = security_info;
info.content_length = static_cast<int>(data_.size());
« no previous file with comments | « chrome/renderer/security_filter_peer.h ('k') | content/child/npapi/plugin_url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698