| 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 13 matching lines...) Expand all Loading... |
| 24 ResourceType::Type resource_type, | 24 ResourceType::Type resource_type, |
| 25 content::RequestPeer* peer, | 25 content::RequestPeer* peer, |
| 26 int os_error); | 26 int os_error); |
| 27 | 27 |
| 28 static SecurityFilterPeer* CreateSecurityFilterPeerForFrame( | 28 static SecurityFilterPeer* CreateSecurityFilterPeerForFrame( |
| 29 content::RequestPeer* peer, | 29 content::RequestPeer* peer, |
| 30 int os_error); | 30 int os_error); |
| 31 | 31 |
| 32 // content::RequestPeer methods. | 32 // content::RequestPeer methods. |
| 33 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE; | 33 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE; |
| 34 virtual bool OnReceivedRedirect(const GURL& new_url, | 34 virtual bool OnReceivedRedirect( |
| 35 const webkit_glue::ResourceResponseInfo& info, | 35 const GURL& new_url, |
| 36 bool* has_new_first_party_for_cookies, | 36 const GURL& new_first_party_for_cookies, |
| 37 GURL* new_first_party_for_cookies) OVERRIDE; | 37 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; |
| 38 virtual void OnReceivedResponse( | 38 virtual void OnReceivedResponse( |
| 39 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; | 39 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; |
| 40 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE {} | 40 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE {} |
| 41 virtual void OnReceivedData(const char* data, | 41 virtual void OnReceivedData(const char* data, |
| 42 int data_length, | 42 int data_length, |
| 43 int encoded_data_length) OVERRIDE; | 43 int encoded_data_length) OVERRIDE; |
| 44 virtual void OnCompletedRequest(int error_code, | 44 virtual void OnCompletedRequest(int error_code, |
| 45 bool was_ignored_by_handler, | 45 bool was_ignored_by_handler, |
| 46 bool stale_copy_in_cache, | 46 bool stale_copy_in_cache, |
| 47 const std::string& security_info, | 47 const std::string& security_info, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 private: | 124 private: |
| 125 webkit_glue::ResourceResponseInfo response_info_; | 125 webkit_glue::ResourceResponseInfo response_info_; |
| 126 std::string mime_type_; | 126 std::string mime_type_; |
| 127 std::string data_; | 127 std::string data_; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); | 129 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_ | 132 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_ |
| OLD | NEW |