| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/chrome_frame_activex.h" | 5 #include "chrome_frame/chrome_frame_activex.h" |
| 6 | 6 |
| 7 #include <wininet.h> | 7 #include <wininet.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/debug/trace_event.h" |
| 14 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 15 #include "base/logging.h" | 16 #include "base/logging.h" |
| 16 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 17 #include "base/process_util.h" | 18 #include "base/process_util.h" |
| 18 #include "base/singleton.h" | 19 #include "base/singleton.h" |
| 19 #include "base/string_split.h" | 20 #include "base/string_split.h" |
| 20 #include "base/string_util.h" | 21 #include "base/string_util.h" |
| 21 #include "base/stringprintf.h" | 22 #include "base/stringprintf.h" |
| 22 #include "base/trace_event.h" | |
| 23 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
| 24 #include "base/win/scoped_bstr.h" | 24 #include "base/win/scoped_bstr.h" |
| 25 #include "base/win/scoped_variant.h" | 25 #include "base/win/scoped_variant.h" |
| 26 #include "chrome/common/chrome_constants.h" | 26 #include "chrome/common/chrome_constants.h" |
| 27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
| 28 #include "chrome/test/automation/tab_proxy.h" | 28 #include "chrome/test/automation/tab_proxy.h" |
| 29 #include "googleurl/src/gurl.h" | 29 #include "googleurl/src/gurl.h" |
| 30 #include "chrome_frame/utils.h" | 30 #include "chrome_frame/utils.h" |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 if (FAILED(hr)) { | 662 if (FAILED(hr)) { |
| 663 NOTREACHED() << "ChromeFrame BHO SetSite failed. Error:" | 663 NOTREACHED() << "ChromeFrame BHO SetSite failed. Error:" |
| 664 << base::StringPrintf(" 0x%08X", hr); | 664 << base::StringPrintf(" 0x%08X", hr); |
| 665 return hr; | 665 return hr; |
| 666 } | 666 } |
| 667 | 667 |
| 668 web_browser2->PutProperty(base::win::ScopedBstr(bho_class_id_as_string), | 668 web_browser2->PutProperty(base::win::ScopedBstr(bho_class_id_as_string), |
| 669 ScopedVariant(bho)); | 669 ScopedVariant(bho)); |
| 670 return S_OK; | 670 return S_OK; |
| 671 } | 671 } |
| OLD | NEW |