| 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 30 matching lines...) Expand all Loading... |
| 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 virtual void OnReceivedResponse( | 45 virtual void OnReceivedResponse( |
| 46 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, | 46 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, |
| 47 bool content_filtered); | 47 bool content_filtered); |
| 48 virtual void OnReceivedData(const char* data, int len); | 48 virtual void OnReceivedData(const char* data, int len); |
| 49 virtual void OnCompletedRequest(const URLRequestStatus& status, | 49 virtual void OnCompletedRequest(const URLRequestStatus& status, |
| 50 const std::string& security_info); | 50 const std::string& security_info); |
| 51 virtual std::string GetURLForDebugging(); | 51 virtual GURL GetURLForDebugging() const; |
| 52 | 52 |
| 53 protected: | 53 protected: |
| 54 SecurityFilterPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, | 54 SecurityFilterPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, |
| 55 webkit_glue::ResourceLoaderBridge::Peer* peer); | 55 webkit_glue::ResourceLoaderBridge::Peer* peer); |
| 56 | 56 |
| 57 webkit_glue::ResourceLoaderBridge::Peer* original_peer_; | 57 webkit_glue::ResourceLoaderBridge::Peer* original_peer_; |
| 58 webkit_glue::ResourceLoaderBridge* resource_loader_bridge_; | 58 webkit_glue::ResourceLoaderBridge* resource_loader_bridge_; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 DISALLOW_COPY_AND_ASSIGN(SecurityFilterPeer); | 61 DISALLOW_COPY_AND_ASSIGN(SecurityFilterPeer); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 virtual ~ImageFilterPeer(); | 135 virtual ~ImageFilterPeer(); |
| 136 | 136 |
| 137 protected: | 137 protected: |
| 138 virtual bool DataReady(); | 138 virtual bool DataReady(); |
| 139 | 139 |
| 140 private: | 140 private: |
| 141 DISALLOW_COPY_AND_ASSIGN(ImageFilterPeer); | 141 DISALLOW_COPY_AND_ASSIGN(ImageFilterPeer); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ | 144 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ |
| OLD | NEW |