| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/common/filter_policy.h" | 9 #include "chrome/common/filter_policy.h" |
| 10 #include "webkit/glue/resource_loader_bridge.h" | 10 #include "webkit/glue/resource_loader_bridge.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 static SecurityFilterPeer* CreateSecurityFilterPeerForFrame( | 36 static SecurityFilterPeer* CreateSecurityFilterPeerForFrame( |
| 37 webkit_glue::ResourceLoaderBridge::Peer* peer, | 37 webkit_glue::ResourceLoaderBridge::Peer* peer, |
| 38 int os_error); | 38 int os_error); |
| 39 | 39 |
| 40 // ResourceLoaderBridge::Peer methods. | 40 // ResourceLoaderBridge::Peer methods. |
| 41 virtual void OnUploadProgress(uint64 position, uint64 size); | 41 virtual void OnUploadProgress(uint64 position, uint64 size); |
| 42 virtual bool OnReceivedRedirect( | 42 virtual bool OnReceivedRedirect( |
| 43 const GURL& new_url, | 43 const GURL& new_url, |
| 44 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, | 44 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, |
| 45 bool* has_new_first_party_for_cookies, |
| 45 GURL* new_first_party_for_cookies); | 46 GURL* new_first_party_for_cookies); |
| 46 virtual void OnReceivedResponse( | 47 virtual void OnReceivedResponse( |
| 47 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, | 48 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, |
| 48 bool content_filtered); | 49 bool content_filtered); |
| 49 virtual void OnReceivedData(const char* data, int len); | 50 virtual void OnReceivedData(const char* data, int len); |
| 50 virtual void OnCompletedRequest(const URLRequestStatus& status, | 51 virtual void OnCompletedRequest(const URLRequestStatus& status, |
| 51 const std::string& security_info); | 52 const std::string& security_info); |
| 52 virtual GURL GetURLForDebugging() const; | 53 virtual GURL GetURLForDebugging() const; |
| 53 | 54 |
| 54 protected: | 55 protected: |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 virtual ~ImageFilterPeer(); | 137 virtual ~ImageFilterPeer(); |
| 137 | 138 |
| 138 protected: | 139 protected: |
| 139 virtual bool DataReady(); | 140 virtual bool DataReady(); |
| 140 | 141 |
| 141 private: | 142 private: |
| 142 DISALLOW_COPY_AND_ASSIGN(ImageFilterPeer); | 143 DISALLOW_COPY_AND_ASSIGN(ImageFilterPeer); |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ | 146 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ |
| OLD | NEW |