| 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/render_messages.h" | 9 #include "chrome/common/render_messages.h" |
| 10 #include "webkit/glue/resource_loader_bridge.h" | 10 #include "webkit/glue/resource_loader_bridge.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, | 43 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, |
| 44 bool content_filtered); | 44 bool content_filtered); |
| 45 virtual void OnReceivedData(const char* data, int len); | 45 virtual void OnReceivedData(const char* data, int len); |
| 46 virtual void OnCompletedRequest(const URLRequestStatus& status); | 46 virtual void OnCompletedRequest(const URLRequestStatus& status); |
| 47 virtual std::string GetURLForDebugging(); | 47 virtual std::string GetURLForDebugging(); |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 SecurityFilterPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, | 50 SecurityFilterPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, |
| 51 webkit_glue::ResourceLoaderBridge::Peer* peer); | 51 webkit_glue::ResourceLoaderBridge::Peer* peer); |
| 52 | 52 |
| 53 webkit_glue::ResourceLoaderBridge::Peer* original_peer_; |
| 53 webkit_glue::ResourceLoaderBridge* resource_loader_bridge_; | 54 webkit_glue::ResourceLoaderBridge* resource_loader_bridge_; |
| 54 webkit_glue::ResourceLoaderBridge::Peer* original_peer_; | |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 DISALLOW_EVIL_CONSTRUCTORS(SecurityFilterPeer); | 57 DISALLOW_EVIL_CONSTRUCTORS(SecurityFilterPeer); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 // The BufferedPeer reads all the data of the request into an internal buffer. | 60 // The BufferedPeer reads all the data of the request into an internal buffer. |
| 61 // Subclasses should implement DataReady() to process the data as necessary. | 61 // Subclasses should implement DataReady() to process the data as necessary. |
| 62 class BufferedPeer : public SecurityFilterPeer { | 62 class BufferedPeer : public SecurityFilterPeer { |
| 63 public: | 63 public: |
| 64 BufferedPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, | 64 BufferedPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 protected: | 128 protected: |
| 129 virtual bool DataReady(); | 129 virtual bool DataReady(); |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 DISALLOW_EVIL_CONSTRUCTORS(ImageFilterPeer); | 132 DISALLOW_EVIL_CONSTRUCTORS(ImageFilterPeer); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ | 135 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ |
| 136 | 136 |
| OLD | NEW |