| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 5 |
| 6 #ifndef CHROME_COMMON_SECURITY_FILTER_PEER_H__ | 6 #ifndef CHROME_COMMON_SECURITY_FILTER_PEER_H__ |
| 7 #define CHROME_COMMON_SECURITY_FILTER_PEER_H__ | 7 #define CHROME_COMMON_SECURITY_FILTER_PEER_H__ |
| 8 | 8 |
| 9 #include "webkit/glue/resource_loader_bridge.h" | 9 #include "webkit/glue/resource_loader_bridge.h" |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // ResourceLoaderBridge::Peer methods. | 31 // ResourceLoaderBridge::Peer methods. |
| 32 virtual void OnUploadProgress(uint64 position, uint64 size); | 32 virtual void OnUploadProgress(uint64 position, uint64 size); |
| 33 virtual bool OnReceivedRedirect( | 33 virtual bool OnReceivedRedirect( |
| 34 const GURL& new_url, | 34 const GURL& new_url, |
| 35 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, | 35 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, |
| 36 bool* has_new_first_party_for_cookies, | 36 bool* has_new_first_party_for_cookies, |
| 37 GURL* new_first_party_for_cookies); | 37 GURL* new_first_party_for_cookies); |
| 38 virtual void OnReceivedResponse( | 38 virtual void OnReceivedResponse( |
| 39 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, | 39 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, |
| 40 bool content_filtered); | 40 bool content_filtered); |
| 41 virtual void OnDownloadedData(int len) {} |
| 41 virtual void OnReceivedData(const char* data, int len); | 42 virtual void OnReceivedData(const char* data, int len); |
| 42 virtual void OnCompletedRequest(const URLRequestStatus& status, | 43 virtual void OnCompletedRequest(const URLRequestStatus& status, |
| 43 const std::string& security_info); | 44 const std::string& security_info); |
| 44 virtual GURL GetURLForDebugging() const; | 45 virtual GURL GetURLForDebugging() const; |
| 45 | 46 |
| 46 protected: | 47 protected: |
| 47 SecurityFilterPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, | 48 SecurityFilterPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, |
| 48 webkit_glue::ResourceLoaderBridge::Peer* peer); | 49 webkit_glue::ResourceLoaderBridge::Peer* peer); |
| 49 | 50 |
| 50 webkit_glue::ResourceLoaderBridge::Peer* original_peer_; | 51 webkit_glue::ResourceLoaderBridge::Peer* original_peer_; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 114 |
| 114 private: | 115 private: |
| 115 webkit_glue::ResourceLoaderBridge::ResponseInfo response_info_; | 116 webkit_glue::ResourceLoaderBridge::ResponseInfo response_info_; |
| 116 std::string mime_type_; | 117 std::string mime_type_; |
| 117 std::string data_; | 118 std::string data_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); | 120 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ | 123 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ |
| OLD | NEW |