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 #include <htiframe.h> | 5 #include <htiframe.h> |
6 #include <mshtml.h> | 6 #include <mshtml.h> |
7 | 7 |
8 #include "chrome_frame/protocol_sink_wrap.h" | 8 #include "chrome_frame/protocol_sink_wrap.h" |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 BEGIN_VTABLE_PATCHES(CTransaction2) | 79 BEGIN_VTABLE_PATCHES(CTransaction2) |
80 VTABLE_PATCH_ENTRY(kInternetProtocolStartExIndex, Hook_StartEx) | 80 VTABLE_PATCH_ENTRY(kInternetProtocolStartExIndex, Hook_StartEx) |
81 END_VTABLE_PATCHES() | 81 END_VTABLE_PATCHES() |
82 | 82 |
83 // | 83 // |
84 // ProtocolSinkWrap implementation | 84 // ProtocolSinkWrap implementation |
85 | 85 |
86 // Static map initialization | 86 // Static map initialization |
87 ProtData::ProtocolDataMap ProtData::datamap_; | 87 ProtData::ProtocolDataMap ProtData::datamap_; |
88 Lock ProtData::datamap_lock_; | 88 base::Lock ProtData::datamap_lock_; |
89 | 89 |
90 ProtocolSinkWrap::ProtocolSinkWrap() { | 90 ProtocolSinkWrap::ProtocolSinkWrap() { |
91 DVLOG(1) << __FUNCTION__ << base::StringPrintf(" 0x%08X", this); | 91 DVLOG(1) << __FUNCTION__ << base::StringPrintf(" 0x%08X", this); |
92 } | 92 } |
93 | 93 |
94 ProtocolSinkWrap::~ProtocolSinkWrap() { | 94 ProtocolSinkWrap::~ProtocolSinkWrap() { |
95 DVLOG(1) << __FUNCTION__ << base::StringPrintf(" 0x%08X", this); | 95 DVLOG(1) << __FUNCTION__ << base::StringPrintf(" 0x%08X", this); |
96 } | 96 } |
97 | 97 |
98 ScopedComPtr<IInternetProtocolSink> ProtocolSinkWrap::CreateNewSink( | 98 ScopedComPtr<IInternetProtocolSink> ProtocolSinkWrap::CreateNewSink( |
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 // Explicit release, otherwise ~CComObjectStackEx will complain about | 939 // Explicit release, otherwise ~CComObjectStackEx will complain about |
940 // outstanding reference to us, because it runs before ~FakeProtocol | 940 // outstanding reference to us, because it runs before ~FakeProtocol |
941 prot.transaction_.Release(); | 941 prot.transaction_.Release(); |
942 } | 942 } |
943 } | 943 } |
944 | 944 |
945 void TransactionHooks::RevertHooks() { | 945 void TransactionHooks::RevertHooks() { |
946 vtable_patch::UnpatchInterfaceMethods(CTransaction_PatchInfo); | 946 vtable_patch::UnpatchInterfaceMethods(CTransaction_PatchInfo); |
947 vtable_patch::UnpatchInterfaceMethods(CTransaction2_PatchInfo); | 947 vtable_patch::UnpatchInterfaceMethods(CTransaction2_PatchInfo); |
948 } | 948 } |
OLD | NEW |