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

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

Issue 23696002: Propagate the encoded data length through OnDownloadData delegate method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
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 #ifndef CHROME_RENDERER_SECURITY_FILTER_PEER_H_ 5 #ifndef CHROME_RENDERER_SECURITY_FILTER_PEER_H_
6 #define CHROME_RENDERER_SECURITY_FILTER_PEER_H_ 6 #define CHROME_RENDERER_SECURITY_FILTER_PEER_H_
7 7
8 #include "webkit/child/resource_loader_bridge.h" 8 #include "webkit/child/resource_loader_bridge.h"
9 9
10 // The SecurityFilterPeer is a proxy to a 10 // The SecurityFilterPeer is a proxy to a
(...skipping 18 matching lines...) Expand all
29 29
30 // ResourceLoaderBridge::Peer methods. 30 // ResourceLoaderBridge::Peer methods.
31 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE; 31 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE;
32 virtual bool OnReceivedRedirect( 32 virtual bool OnReceivedRedirect(
33 const GURL& new_url, 33 const GURL& new_url,
34 const webkit_glue::ResourceResponseInfo& info, 34 const webkit_glue::ResourceResponseInfo& info,
35 bool* has_new_first_party_for_cookies, 35 bool* has_new_first_party_for_cookies,
36 GURL* new_first_party_for_cookies) OVERRIDE; 36 GURL* new_first_party_for_cookies) OVERRIDE;
37 virtual void OnReceivedResponse( 37 virtual void OnReceivedResponse(
38 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; 38 const webkit_glue::ResourceResponseInfo& info) OVERRIDE;
39 virtual void OnDownloadedData(int len) OVERRIDE {} 39 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE {}
40 virtual void OnReceivedData(const char* data, 40 virtual void OnReceivedData(const char* data,
41 int data_length, 41 int data_length,
42 int encoded_data_length) OVERRIDE; 42 int encoded_data_length) OVERRIDE;
43 virtual void OnCompletedRequest( 43 virtual void OnCompletedRequest(
44 int error_code, 44 int error_code,
45 bool was_ignored_by_handler, 45 bool was_ignored_by_handler,
46 const std::string& security_info, 46 const std::string& security_info,
47 const base::TimeTicks& completion_time) OVERRIDE; 47 const base::TimeTicks& completion_time) OVERRIDE;
48 48
49 protected: 49 protected:
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 private: 125 private:
126 webkit_glue::ResourceResponseInfo response_info_; 126 webkit_glue::ResourceResponseInfo response_info_;
127 std::string mime_type_; 127 std::string mime_type_;
128 std::string data_; 128 std::string data_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); 130 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer);
131 }; 131 };
132 132
133 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_ 133 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_localization_peer_unittest.cc ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698