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

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

Issue 6621006: Take out the is_content_filtered bool that gets passed around betwen renderer... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/common/resource_dispatcher.cc ('k') | chrome/common/security_filter_peer.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 virtual bool OnReceivedRedirect( 45 virtual bool OnReceivedRedirect(
46 const GURL& new_url, 46 const GURL& new_url,
47 const ResourceResponseInfo& info, 47 const ResourceResponseInfo& info,
48 bool* has_new_first_party_for_cookies, 48 bool* has_new_first_party_for_cookies,
49 GURL* new_first_party_for_cookies) { 49 GURL* new_first_party_for_cookies) {
50 *has_new_first_party_for_cookies = false; 50 *has_new_first_party_for_cookies = false;
51 return true; 51 return true;
52 } 52 }
53 53
54 virtual void OnReceivedResponse( 54 virtual void OnReceivedResponse(const ResourceResponseInfo& info) {
55 const ResourceResponseInfo& info,
56 bool content_filtered) {
57 } 55 }
58 56
59 virtual void OnDownloadedData(int len) { 57 virtual void OnDownloadedData(int len) {
60 } 58 }
61 59
62 virtual void OnReceivedData(const char* data, int len) { 60 virtual void OnReceivedData(const char* data, int len) {
63 EXPECT_FALSE(complete_); 61 EXPECT_FALSE(complete_);
64 data_.append(data, len); 62 data_.append(data, len);
65 } 63 }
66 64
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 258
261 virtual bool OnReceivedRedirect( 259 virtual bool OnReceivedRedirect(
262 const GURL& new_url, 260 const GURL& new_url,
263 const ResourceResponseInfo& info, 261 const ResourceResponseInfo& info,
264 bool* has_new_first_party_for_cookies, 262 bool* has_new_first_party_for_cookies,
265 GURL* new_first_party_for_cookies) { 263 GURL* new_first_party_for_cookies) {
266 *has_new_first_party_for_cookies = false; 264 *has_new_first_party_for_cookies = false;
267 return true; 265 return true;
268 } 266 }
269 267
270 virtual void OnReceivedResponse( 268 virtual void OnReceivedResponse(const ResourceResponseInfo& info) {
271 const ResourceResponseInfo& info,
272 bool content_filtered) {
273 EXPECT_EQ(defer_loading_, false); 269 EXPECT_EQ(defer_loading_, false);
274 set_defer_loading(true); 270 set_defer_loading(true);
275 } 271 }
276 272
277 virtual void OnDownloadedData(int len) { 273 virtual void OnDownloadedData(int len) {
278 } 274 }
279 275
280 virtual void OnReceivedData(const char* data, int len) { 276 virtual void OnReceivedData(const char* data, int len) {
281 EXPECT_EQ(defer_loading_, false); 277 EXPECT_EQ(defer_loading_, false);
282 set_defer_loading(false); 278 set_defer_loading(false);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 315
320 ResourceLoaderBridge* bridge = CreateBridge(); 316 ResourceLoaderBridge* bridge = CreateBridge();
321 317
322 bridge->Start(this); 318 bridge->Start(this);
323 InitMessages(); 319 InitMessages();
324 320
325 // Dispatch deferred messages. 321 // Dispatch deferred messages.
326 message_loop.RunAllPending(); 322 message_loop.RunAllPending();
327 delete bridge; 323 delete bridge;
328 } 324 }
OLDNEW
« no previous file with comments | « chrome/common/resource_dispatcher.cc ('k') | chrome/common/security_filter_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698