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 #pragma once | 8 #pragma once |
9 | 9 |
10 #include "webkit/glue/resource_loader_bridge.h" | 10 #include "webkit/glue/resource_loader_bridge.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 ReplaceContentPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, | 103 ReplaceContentPeer(webkit_glue::ResourceLoaderBridge* resource_loader_bridge, |
104 webkit_glue::ResourceLoaderBridge::Peer* peer, | 104 webkit_glue::ResourceLoaderBridge::Peer* peer, |
105 const std::string& mime_type, | 105 const std::string& mime_type, |
106 const std::string& data); | 106 const std::string& data); |
107 virtual ~ReplaceContentPeer(); | 107 virtual ~ReplaceContentPeer(); |
108 | 108 |
109 // ResourceLoaderBridge::Peer Implementation. | 109 // ResourceLoaderBridge::Peer Implementation. |
110 virtual void OnReceivedResponse( | 110 virtual void OnReceivedResponse( |
111 const webkit_glue::ResourceResponseInfo& info, | 111 const webkit_glue::ResourceResponseInfo& info, |
112 bool content_filtered); | 112 bool content_filtered); |
113 void OnReceivedData(const char* data, int len); | 113 virtual void OnReceivedData(const char* data, int len); |
114 void OnCompletedRequest(const URLRequestStatus& status, | 114 virtual void OnCompletedRequest(const URLRequestStatus& status, |
115 const std::string& security_info, | 115 const std::string& security_info, |
116 const base::Time& completion_time); | 116 const base::Time& completion_time); |
117 | 117 |
118 private: | 118 private: |
119 webkit_glue::ResourceResponseInfo response_info_; | 119 webkit_glue::ResourceResponseInfo response_info_; |
120 std::string mime_type_; | 120 std::string mime_type_; |
121 std::string data_; | 121 std::string data_; |
122 | 122 |
123 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); | 123 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); |
124 }; | 124 }; |
125 | 125 |
126 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ | 126 #endif // CHROME_COMMON_SECURITY_FILTER_PEER_H__ |
OLD | NEW |