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

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

Issue 405011: Use an explicit boolean has_new_first_party_for_cookies instead... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 1 month 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/common/security_filter_peer.h ('k') | chrome/plugin/chrome_plugin_host.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/common/security_filter_peer.h" 5 #include "chrome/common/security_filter_peer.h"
6 6
7 #include "app/gfx/codec/png_codec.h" 7 #include "app/gfx/codec/png_codec.h"
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/gfx/size.h" 10 #include "base/gfx/size.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 return new ReplaceContentPeer(NULL, peer, "text/html", html); 100 return new ReplaceContentPeer(NULL, peer, "text/html", html);
101 } 101 }
102 102
103 void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) { 103 void SecurityFilterPeer::OnUploadProgress(uint64 position, uint64 size) {
104 original_peer_->OnUploadProgress(position, size); 104 original_peer_->OnUploadProgress(position, size);
105 } 105 }
106 106
107 bool SecurityFilterPeer::OnReceivedRedirect( 107 bool SecurityFilterPeer::OnReceivedRedirect(
108 const GURL& new_url, 108 const GURL& new_url,
109 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, 109 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,
110 bool* has_new_first_party_for_cookies,
110 GURL* new_first_party_for_cookies) { 111 GURL* new_first_party_for_cookies) {
111 NOTREACHED(); 112 NOTREACHED();
112 return false; 113 return false;
113 } 114 }
114 115
115 void SecurityFilterPeer::OnReceivedResponse( 116 void SecurityFilterPeer::OnReceivedResponse(
116 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, 117 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,
117 bool content_filtered) { 118 bool content_filtered) {
118 NOTREACHED(); 119 NOTREACHED();
119 } 120 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 return false; 317 return false;
317 } 318 }
318 319
319 // Copy the vector content to data_ which is a string. 320 // Copy the vector content to data_ which is a string.
320 data_.clear(); 321 data_.clear();
321 data_.resize(output.size()); 322 data_.resize(output.size());
322 std::copy(output.begin(), output.end(), data_.begin()); 323 std::copy(output.begin(), output.end(), data_.begin());
323 324
324 return true; 325 return true;
325 } 326 }
OLDNEW
« no previous file with comments | « chrome/common/security_filter_peer.h ('k') | chrome/plugin/chrome_plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698