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

Side by Side Diff: chrome/renderer/security_filter_peer.cc

Issue 264613006: Move first-party cookie URL logic to browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/security_filter_peer.h ('k') | content/browser/loader/async_resource_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/security_filter_peer.h" 5 #include "chrome/renderer/security_filter_peer.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 l10n_util::GetStringUTF8(IDS_UNSAFE_FRAME_MESSAGE).c_str()); 63 l10n_util::GetStringUTF8(IDS_UNSAFE_FRAME_MESSAGE).c_str());
64 return new ReplaceContentPeer(peer, "text/html", html); 64 return new ReplaceContentPeer(peer, "text/html", html);
65 } 65 }
66 66
67 void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) { 67 void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) {
68 original_peer_->OnUploadProgress(position, size); 68 original_peer_->OnUploadProgress(position, size);
69 } 69 }
70 70
71 bool SecurityFilterPeer::OnReceivedRedirect( 71 bool SecurityFilterPeer::OnReceivedRedirect(
72 const GURL& new_url, 72 const GURL& new_url,
73 const webkit_glue::ResourceResponseInfo& info, 73 const GURL& new_first_party_for_cookies,
74 bool* has_new_first_party_for_cookies, 74 const webkit_glue::ResourceResponseInfo& info) {
75 GURL* new_first_party_for_cookies) {
76 NOTREACHED(); 75 NOTREACHED();
77 return false; 76 return false;
78 } 77 }
79 78
80 void SecurityFilterPeer::OnReceivedResponse( 79 void SecurityFilterPeer::OnReceivedResponse(
81 const webkit_glue::ResourceResponseInfo& info) { 80 const webkit_glue::ResourceResponseInfo& info) {
82 NOTREACHED(); 81 NOTREACHED();
83 } 82 }
84 83
85 void SecurityFilterPeer::OnReceivedData(const char* data, 84 void SecurityFilterPeer::OnReceivedData(const char* data,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 original_peer_->OnCompletedRequest(net::OK, 220 original_peer_->OnCompletedRequest(net::OK,
222 false, 221 false,
223 stale_copy_in_cache, 222 stale_copy_in_cache,
224 security_info, 223 security_info,
225 completion_time, 224 completion_time,
226 total_transfer_size); 225 total_transfer_size);
227 226
228 // The request processing is complete, we must delete ourselves. 227 // The request processing is complete, we must delete ourselves.
229 delete this; 228 delete this;
230 } 229 }
OLDNEW
« no previous file with comments | « chrome/renderer/security_filter_peer.h ('k') | content/browser/loader/async_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698