OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_RENDERER_SECURITY_FILTER_PEER_H_ | 5 #ifndef CHROME_RENDERER_SECURITY_FILTER_PEER_H_ |
6 #define CHROME_RENDERER_SECURITY_FILTER_PEER_H_ | 6 #define CHROME_RENDERER_SECURITY_FILTER_PEER_H_ |
7 | 7 |
8 #include "webkit/glue/resource_loader_bridge.h" | 8 #include "webkit/child/resource_loader_bridge.h" |
9 | 9 |
10 // The SecurityFilterPeer is a proxy to a | 10 // The SecurityFilterPeer is a proxy to a |
11 // webkit_glue::ResourceLoaderBridge::Peer instance. It is used to pre-process | 11 // webkit_glue::ResourceLoaderBridge::Peer instance. It is used to pre-process |
12 // unsafe resources (such as mixed-content resource). | 12 // unsafe resources (such as mixed-content resource). |
13 // Call the factory method CreateSecurityFilterPeer() to obtain an instance of | 13 // Call the factory method CreateSecurityFilterPeer() to obtain an instance of |
14 // SecurityFilterPeer based on the original Peer. | 14 // SecurityFilterPeer based on the original Peer. |
15 // NOTE: subclasses should insure they delete themselves at the end of the | 15 // NOTE: subclasses should insure they delete themselves at the end of the |
16 // OnReceiveComplete call. | 16 // OnReceiveComplete call. |
17 class SecurityFilterPeer : public webkit_glue::ResourceLoaderBridge::Peer { | 17 class SecurityFilterPeer : public webkit_glue::ResourceLoaderBridge::Peer { |
18 public: | 18 public: |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 private: | 125 private: |
126 webkit_glue::ResourceResponseInfo response_info_; | 126 webkit_glue::ResourceResponseInfo response_info_; |
127 std::string mime_type_; | 127 std::string mime_type_; |
128 std::string data_; | 128 std::string data_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); | 130 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); |
131 }; | 131 }; |
132 | 132 |
133 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_ | 133 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_ |
OLD | NEW |