| 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_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 22 matching lines...) Expand all Loading... |
| 33 IInternetProtocol* this_object, void* buffer, ULONG size, | 33 IInternetProtocol* this_object, void* buffer, ULONG size, |
| 34 ULONG* size_read); | 34 ULONG* size_read); |
| 35 typedef HRESULT (STDMETHODCALLTYPE* InternetProtocol_StartEx_Fn)( | 35 typedef HRESULT (STDMETHODCALLTYPE* InternetProtocol_StartEx_Fn)( |
| 36 IInternetProtocolEx* this_object, IUri* uri, | 36 IInternetProtocolEx* this_object, IUri* uri, |
| 37 IInternetProtocolSink* prot_sink, IInternetBindInfo* bind_info, | 37 IInternetProtocolSink* prot_sink, IInternetBindInfo* bind_info, |
| 38 DWORD flags, HANDLE_PTR reserved); | 38 DWORD flags, HANDLE_PTR reserved); |
| 39 typedef HRESULT (STDMETHODCALLTYPE* InternetProtocol_LockRequest_Fn)( | 39 typedef HRESULT (STDMETHODCALLTYPE* InternetProtocol_LockRequest_Fn)( |
| 40 IInternetProtocol* this_object, DWORD options); | 40 IInternetProtocol* this_object, DWORD options); |
| 41 typedef HRESULT (STDMETHODCALLTYPE* InternetProtocol_UnlockRequest_Fn)( | 41 typedef HRESULT (STDMETHODCALLTYPE* InternetProtocol_UnlockRequest_Fn)( |
| 42 IInternetProtocol* this_object); | 42 IInternetProtocol* this_object); |
| 43 typedef HRESULT (STDMETHODCALLTYPE* InternetProtocol_Abort_Fn)( | 43 |
| 44 IInternetProtocol* this_object, HRESULT hr, DWORD options); | |
| 45 typedef HRESULT (STDMETHODCALLTYPE* InternetProtocol_Terminate_Fn)( | |
| 46 IInternetProtocol* this_object, DWORD options); | |
| 47 | 44 |
| 48 class ProtData; | 45 class ProtData; |
| 49 | 46 |
| 50 // A class to wrap protocol sink in IInternetProtocol::Start[Ex] for | 47 // A class to wrap protocol sink in IInternetProtocol::Start[Ex] for |
| 51 // HTTP and HTTPS protocols. | 48 // HTTP and HTTPS protocols. |
| 52 // | 49 // |
| 53 // This is an alternative to a mime filter and we have to do this in order | 50 // This is an alternative to a mime filter and we have to do this in order |
| 54 // to inspect initial portion of HTML for 'chrome' meta tag and report | 51 // to inspect initial portion of HTML for 'chrome' meta tag and report |
| 55 // a different mime type in that case. | 52 // a different mime type in that case. |
| 56 // | 53 // |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 }; | 174 }; |
| 178 | 175 |
| 179 struct TransactionHooks { | 176 struct TransactionHooks { |
| 180 void InstallHooks(); | 177 void InstallHooks(); |
| 181 void RevertHooks(); | 178 void RevertHooks(); |
| 182 }; | 179 }; |
| 183 | 180 |
| 184 DECLSPEC_SELECTANY struct TransactionHooks g_trans_hooks; | 181 DECLSPEC_SELECTANY struct TransactionHooks g_trans_hooks; |
| 185 | 182 |
| 186 #endif // CHROME_FRAME_PROTOCOL_SINK_WRAP_H_ | 183 #endif // CHROME_FRAME_PROTOCOL_SINK_WRAP_H_ |
| OLD | NEW |