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

Side by Side Diff: chrome_frame/protocol_sink_wrap.cc

Issue 6336010: Add missing base::lock usage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/protocol_sink_wrap.h ('k') | chrome_frame/vtable_patch_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome_frame/protocol_sink_wrap.h ('k') | chrome_frame/vtable_patch_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698