OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "base/win/scoped_bstr.h" | 15 #include "base/win/scoped_bstr.h" |
16 #include "chrome_frame/buggy_bho_handling.h" | 16 #include "chrome_frame/buggy_bho_handling.h" |
17 #include "chrome_frame/crash_reporting/crash_metrics.h" | 17 #include "chrome_frame/crash_reporting/crash_metrics.h" |
18 #include "chrome_frame/extra_system_apis.h" | 18 #include "chrome_frame/extra_system_apis.h" |
19 #include "chrome_frame/html_utils.h" | 19 #include "chrome_frame/html_utils.h" |
20 #include "chrome_frame/http_negotiate.h" | 20 #include "chrome_frame/http_negotiate.h" |
21 #include "chrome_frame/metrics_service.h" | 21 #include "chrome_frame/metrics_service.h" |
22 #include "chrome_frame/protocol_sink_wrap.h" | 22 #include "chrome_frame/protocol_sink_wrap.h" |
23 #include "chrome_frame/ready_mode/ready_mode.h" | 23 #include "chrome_frame/ready_mode/ready_mode.h" |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 } | 354 } |
355 } | 355 } |
356 | 356 |
357 void PatchHelper::UnpatchIfNeeded() { | 357 void PatchHelper::UnpatchIfNeeded() { |
358 if (state_ == PATCH_PROTOCOL) { | 358 if (state_ == PATCH_PROTOCOL) { |
359 g_trans_hooks.RevertHooks(); | 359 g_trans_hooks.RevertHooks(); |
360 HttpNegotiatePatch::Uninitialize(); | 360 HttpNegotiatePatch::Uninitialize(); |
361 } | 361 } |
362 state_ = UNKNOWN; | 362 state_ = UNKNOWN; |
363 } | 363 } |
OLD | NEW |