| OLD | NEW |
| 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 "content/public/child/request_peer.h" | 8 #include "content/public/child/request_peer.h" |
| 9 #include "webkit/common/resource_response_info.h" | 9 #include "webkit/common/resource_response_info.h" |
| 10 #include "webkit/common/resource_type.h" | 10 #include "webkit/common/resource_type.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 ResourceType::Type resource_type, | 28 ResourceType::Type resource_type, |
| 29 content::RequestPeer* peer, | 29 content::RequestPeer* peer, |
| 30 int os_error); | 30 int os_error); |
| 31 | 31 |
| 32 static SecurityFilterPeer* CreateSecurityFilterPeerForFrame( | 32 static SecurityFilterPeer* CreateSecurityFilterPeerForFrame( |
| 33 content::RequestPeer* peer, | 33 content::RequestPeer* peer, |
| 34 int os_error); | 34 int os_error); |
| 35 | 35 |
| 36 // content::RequestPeer methods. | 36 // content::RequestPeer methods. |
| 37 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE; | 37 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE; |
| 38 virtual bool OnReceivedRedirect(const GURL& new_url, | 38 virtual bool OnReceivedRedirect( |
| 39 const webkit_glue::ResourceResponseInfo& info, | 39 const GURL& new_url, |
| 40 bool* has_new_first_party_for_cookies, | 40 const GURL& new_first_party_for_cookies, |
| 41 GURL* new_first_party_for_cookies) OVERRIDE; | 41 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; |
| 42 virtual void OnReceivedResponse( | 42 virtual void OnReceivedResponse( |
| 43 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; | 43 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; |
| 44 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE {} | 44 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE {} |
| 45 virtual void OnReceivedData(const char* data, | 45 virtual void OnReceivedData(const char* data, |
| 46 int data_length, | 46 int data_length, |
| 47 int encoded_data_length) OVERRIDE; | 47 int encoded_data_length) OVERRIDE; |
| 48 virtual void OnCompletedRequest(int error_code, | 48 virtual void OnCompletedRequest(int error_code, |
| 49 bool was_ignored_by_handler, | 49 bool was_ignored_by_handler, |
| 50 bool stale_copy_in_cache, | 50 bool stale_copy_in_cache, |
| 51 const std::string& security_info, | 51 const std::string& security_info, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 private: | 135 private: |
| 136 webkit_glue::ResourceResponseInfo response_info_; | 136 webkit_glue::ResourceResponseInfo response_info_; |
| 137 std::string mime_type_; | 137 std::string mime_type_; |
| 138 std::string data_; | 138 std::string data_; |
| 139 | 139 |
| 140 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); | 140 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_ | 143 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_ |
| OLD | NEW |