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

Side by Side Diff: webkit/glue/resource_loader_bridge.h

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 | « content/browser/tab_contents/tab_contents.cc ('k') | webkit/glue/weburlloader_impl.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) 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 // The intent of this file is to provide a type-neutral abstraction between 5 // The intent of this file is to provide a type-neutral abstraction between
6 // Chrome and WebKit for resource loading. This pure-virtual interface is 6 // Chrome and WebKit for resource loading. This pure-virtual interface is
7 // implemented by the embedder, which also provides a factory method Create 7 // implemented by the embedder, which also provides a factory method Create
8 // to instantiate this object. 8 // to instantiate this object.
9 // 9 //
10 // One of these objects will be created by WebKit for each request. WebKit 10 // One of these objects will be created by WebKit for each request. WebKit
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // loaded if this method returns true. If this method returns true, the 283 // loaded if this method returns true. If this method returns true, the
284 // output parameter *has_new_first_party_for_cookies indicates whether the 284 // output parameter *has_new_first_party_for_cookies indicates whether the
285 // output parameter *new_first_party_for_cookies contains the new URL that 285 // output parameter *new_first_party_for_cookies contains the new URL that
286 // should be consulted for the third-party cookie blocking policy. 286 // should be consulted for the third-party cookie blocking policy.
287 virtual bool OnReceivedRedirect(const GURL& new_url, 287 virtual bool OnReceivedRedirect(const GURL& new_url,
288 const ResourceResponseInfo& info, 288 const ResourceResponseInfo& info,
289 bool* has_new_first_party_for_cookies, 289 bool* has_new_first_party_for_cookies,
290 GURL* new_first_party_for_cookies) = 0; 290 GURL* new_first_party_for_cookies) = 0;
291 291
292 // Called when response headers are available (after all redirects have 292 // Called when response headers are available (after all redirects have
293 // been followed). |content_filtered| is set to true if the contents is 293 // been followed).
294 // altered or replaced (usually for security reasons when the resource is 294 virtual void OnReceivedResponse(const ResourceResponseInfo& info) = 0;
295 // deemed unsafe).
296 virtual void OnReceivedResponse(const ResourceResponseInfo& info,
297 bool content_filtered) = 0;
298 295
299 // Called when a chunk of response data is downloaded. This method may be 296 // Called when a chunk of response data is downloaded. This method may be
300 // called multiple times or not at all if an error occurs. This method is 297 // called multiple times or not at all if an error occurs. This method is
301 // only called if RequestInfo::download_to_file was set to true, and in 298 // only called if RequestInfo::download_to_file was set to true, and in
302 // that case, OnReceivedData will not be called. 299 // that case, OnReceivedData will not be called.
303 virtual void OnDownloadedData(int len) = 0; 300 virtual void OnDownloadedData(int len) = 0;
304 301
305 // Called when a chunk of response data is available. This method may 302 // Called when a chunk of response data is available. This method may
306 // be called multiple times or not at all if an error occurs. 303 // be called multiple times or not at all if an error occurs.
307 virtual void OnReceivedData(const char* data, int len) = 0; 304 virtual void OnReceivedData(const char* data, int len) = 0;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 // construction must go through Create() 378 // construction must go through Create()
382 ResourceLoaderBridge(); 379 ResourceLoaderBridge();
383 380
384 private: 381 private:
385 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); 382 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge);
386 }; 383 };
387 384
388 } // namespace webkit_glue 385 } // namespace webkit_glue
389 386
390 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ 387 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | webkit/glue/weburlloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698