| 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 #include "chrome_frame/bho.h" | 5 #include "chrome_frame/bho.h" |
| 6 | 6 |
| 7 #include <shlguid.h> | 7 #include <shlguid.h> |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 312 |
| 313 if (state_ == UNKNOWN) { | 313 if (state_ == UNKNOWN) { |
| 314 // If we're going to start patching things, we'd better make sure that we | 314 // If we're going to start patching things, we'd better make sure that we |
| 315 // stick around for ever more: | 315 // stick around for ever more: |
| 316 PinModule(); | 316 PinModule(); |
| 317 | 317 |
| 318 HttpNegotiatePatch::Initialize(); | 318 HttpNegotiatePatch::Initialize(); |
| 319 | 319 |
| 320 ProtocolPatchMethod patch_method = | 320 ProtocolPatchMethod patch_method = |
| 321 static_cast<ProtocolPatchMethod>( | 321 static_cast<ProtocolPatchMethod>( |
| 322 GetConfigInt(PATCH_METHOD_IBROWSER, kPatchProtocols)); | 322 GetConfigInt(PATCH_METHOD_IBROWSER_AND_MONIKER, kPatchProtocols)); |
| 323 | 323 |
| 324 if (patch_method == PATCH_METHOD_INET_PROTOCOL) { | 324 if (patch_method == PATCH_METHOD_INET_PROTOCOL) { |
| 325 ProtocolSinkWrap::PatchProtocolHandlers(); | 325 ProtocolSinkWrap::PatchProtocolHandlers(); |
| 326 state_ = PATCH_PROTOCOL; | 326 state_ = PATCH_PROTOCOL; |
| 327 } else { | 327 } else { |
| 328 DCHECK(patch_method == PATCH_METHOD_IBROWSER || | 328 DCHECK(patch_method == PATCH_METHOD_IBROWSER || |
| 329 patch_method == PATCH_METHOD_IBROWSER_AND_MONIKER); | 329 patch_method == PATCH_METHOD_IBROWSER_AND_MONIKER); |
| 330 state_ = PATCH_IBROWSER; | 330 state_ = PATCH_IBROWSER; |
| 331 if (patch_method == PATCH_METHOD_IBROWSER_AND_MONIKER) { | 331 if (patch_method == PATCH_METHOD_IBROWSER_AND_MONIKER) { |
| 332 MonikerPatch::Initialize(); | 332 MonikerPatch::Initialize(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 354 } else if (state_ == PATCH_IBROWSER) { | 354 } else if (state_ == PATCH_IBROWSER) { |
| 355 vtable_patch::UnpatchInterfaceMethods(IBrowserService_PatchInfo); | 355 vtable_patch::UnpatchInterfaceMethods(IBrowserService_PatchInfo); |
| 356 MonikerPatch::Uninitialize(); | 356 MonikerPatch::Uninitialize(); |
| 357 } | 357 } |
| 358 | 358 |
| 359 HttpNegotiatePatch::Uninitialize(); | 359 HttpNegotiatePatch::Uninitialize(); |
| 360 | 360 |
| 361 state_ = UNKNOWN; | 361 state_ = UNKNOWN; |
| 362 } | 362 } |
| 363 | 363 |
| OLD | NEW |