Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7944)

Unified Diff: chrome_frame/protocol_sink_wrap.cc

Issue 12379081: Revert 180482 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364_152/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/protocol_sink_wrap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/protocol_sink_wrap.cc
===================================================================
--- chrome_frame/protocol_sink_wrap.cc (revision 185958)
+++ chrome_frame/protocol_sink_wrap.cc (working copy)
@@ -38,8 +38,6 @@
static const int kInternetProtocolStartExIndex = 13;
static const int kInternetProtocolLockRequestIndex = 11;
static const int kInternetProtocolUnlockRequestIndex = 12;
-static const int kInternetProtocolAbortIndex = 5;
-static const int kInternetProtocolTerminateIndex = 6;
// IInternetProtocol/Ex patches.
@@ -66,29 +64,17 @@
ULONG* size_read);
STDMETHODIMP Hook_LockRequest(InternetProtocol_LockRequest_Fn orig_req,
- IInternetProtocol* protocol,
- DWORD options);
+ IInternetProtocol* protocol, DWORD dwOptions);
STDMETHODIMP Hook_UnlockRequest(InternetProtocol_UnlockRequest_Fn orig_req,
IInternetProtocol* protocol);
-STDMETHODIMP Hook_Abort(InternetProtocol_Abort_Fn orig_req,
- IInternetProtocol* protocol,
- HRESULT hr,
- DWORD options);
-
-STDMETHODIMP Hook_Terminate(InternetProtocol_Terminate_Fn orig_req,
- IInternetProtocol* protocol,
- DWORD options);
-
/////////////////////////////////////////////////////////////////////////////
BEGIN_VTABLE_PATCHES(CTransaction)
VTABLE_PATCH_ENTRY(kInternetProtocolStartIndex, Hook_Start)
VTABLE_PATCH_ENTRY(kInternetProtocolReadIndex, Hook_Read)
VTABLE_PATCH_ENTRY(kInternetProtocolLockRequestIndex, Hook_LockRequest)
VTABLE_PATCH_ENTRY(kInternetProtocolUnlockRequestIndex, Hook_UnlockRequest)
- VTABLE_PATCH_ENTRY(kInternetProtocolAbortIndex, Hook_Abort)
- VTABLE_PATCH_ENTRY(kInternetProtocolTerminateIndex, Hook_Terminate)
END_VTABLE_PATCHES()
BEGIN_VTABLE_PATCHES(CTransaction2)
@@ -821,8 +807,7 @@
}
STDMETHODIMP Hook_LockRequest(InternetProtocol_LockRequest_Fn orig_req,
- IInternetProtocol* protocol,
- DWORD options) {
+ IInternetProtocol* protocol, DWORD options) {
DCHECK(orig_req);
scoped_refptr<ProtData> prot_data = ProtData::DataFromProtocol(protocol);
@@ -853,33 +838,6 @@
return orig_req(protocol);
}
-STDMETHODIMP Hook_Abort(InternetProtocol_Abort_Fn orig_req,
- IInternetProtocol* protocol,
- HRESULT hr,
- DWORD options) {
- scoped_refptr<ProtData> prot_data = ProtData::DataFromProtocol(protocol);
- if (prot_data)
- prot_data->Invalidate();
-
- // We are just pass through at this point, avoid false positive crash
- // reports.
- ExceptionBarrierReportOnlyModule barrier;
- return orig_req(protocol, hr, options);
-}
-
-STDMETHODIMP Hook_Terminate(InternetProtocol_Terminate_Fn orig_req,
- IInternetProtocol* protocol,
- DWORD options) {
- scoped_refptr<ProtData> prot_data = ProtData::DataFromProtocol(protocol);
- if (prot_data)
- prot_data->Invalidate();
-
- // We are just pass through at this point, avoid false positive crash
- // reports.
- ExceptionBarrierReportOnlyModule barrier;
- return orig_req(protocol, options);
-}
-
// Patching / Hooking code.
class FakeProtocol : public CComObjectRootEx<CComSingleThreadModel>,
public IInternetProtocol {
« no previous file with comments | « chrome_frame/protocol_sink_wrap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698