| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FRAME_PROTOCOL_SINK_WRAP_H_ | 5 #ifndef CHROME_FRAME_PROTOCOL_SINK_WRAP_H_ |
| 6 #define CHROME_FRAME_PROTOCOL_SINK_WRAP_H_ | 6 #define CHROME_FRAME_PROTOCOL_SINK_WRAP_H_ |
| 7 | 7 |
| 8 #include <exdisp.h> | 8 #include <exdisp.h> |
| 9 #include <urlmon.h> | 9 #include <urlmon.h> |
| 10 #include <atlbase.h> | 10 #include <atlbase.h> |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 RendererType renderer_type_; | 167 RendererType renderer_type_; |
| 168 | 168 |
| 169 // Buffer for accumulated data including 1 extra for NULL-terminator | 169 // Buffer for accumulated data including 1 extra for NULL-terminator |
| 170 static const size_t kMaxContentSniffLength = 2 * 1024; | 170 static const size_t kMaxContentSniffLength = 2 * 1024; |
| 171 char buffer_[kMaxContentSniffLength + 1]; | 171 char buffer_[kMaxContentSniffLength + 1]; |
| 172 unsigned long buffer_size_; // NOLINT | 172 unsigned long buffer_size_; // NOLINT |
| 173 unsigned long buffer_pos_; // NOLINT | 173 unsigned long buffer_pos_; // NOLINT |
| 174 | 174 |
| 175 HRESULT FillBuffer(); | 175 HRESULT FillBuffer(); |
| 176 void SaveSuggestedMimeType(LPCWSTR status_text); | 176 void SaveSuggestedMimeType(LPCWSTR status_text); |
| 177 void FireSugestedMimeType(IInternetProtocolSink* delegate); | 177 void FireSuggestedMimeType(IInternetProtocolSink* delegate); |
| 178 void SaveReferrer(IInternetProtocolSink* delegate); | 178 void SaveReferrer(IInternetProtocolSink* delegate); |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 struct TransactionHooks { | 181 struct TransactionHooks { |
| 182 void InstallHooks(); | 182 void InstallHooks(); |
| 183 void RevertHooks(); | 183 void RevertHooks(); |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 DECLSPEC_SELECTANY struct TransactionHooks g_trans_hooks; | 186 DECLSPEC_SELECTANY struct TransactionHooks g_trans_hooks; |
| 187 | 187 |
| 188 #endif // CHROME_FRAME_PROTOCOL_SINK_WRAP_H_ | 188 #endif // CHROME_FRAME_PROTOCOL_SINK_WRAP_H_ |
| 189 | 189 |
| OLD | NEW |