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 "chrome_frame/utils.h" | 5 #include "chrome_frame/utils.h" |
6 | 6 |
7 #include <atlsafe.h> | 7 #include <atlsafe.h> |
8 #include <atlsecurity.h> | 8 #include <atlsecurity.h> |
9 #include <htiframe.h> | 9 #include <htiframe.h> |
10 #include <mshtml.h> | 10 #include <mshtml.h> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 static const IID IID_IWebBrowserPriv2IE8XPBeta = { 0x38339692, 0x0BC9, 0x46CB, | 103 static const IID IID_IWebBrowserPriv2IE8XPBeta = { 0x38339692, 0x0BC9, 0x46CB, |
104 { 0x8E, 0x5C, 0x46, 0x77, 0xA5, 0xC8, 0x3D, 0xD5 } }; | 104 { 0x8E, 0x5C, 0x46, 0x77, 0xA5, 0xC8, 0x3D, 0xD5 } }; |
105 | 105 |
106 namespace { | 106 namespace { |
107 | 107 |
108 // A flag used to signal when an active browser instance on the current thread | 108 // A flag used to signal when an active browser instance on the current thread |
109 // is loading a Chrome Frame document. There's no reference stored with the | 109 // is loading a Chrome Frame document. There's no reference stored with the |
110 // pointer so it should not be dereferenced and used for comparison against a | 110 // pointer so it should not be dereferenced and used for comparison against a |
111 // living instance only. | 111 // living instance only. |
112 base::LazyInstance<base::ThreadLocalPointer<IBrowserService> > | 112 base::LazyInstance<base::ThreadLocalPointer<IBrowserService> > |
113 g_tls_browser_for_cf_navigation(base::LINKER_INITIALIZED); | 113 g_tls_browser_for_cf_navigation = LAZY_INSTANCE_INITIALIZER; |
114 | 114 |
115 } // end anonymous namespace | 115 } // end anonymous namespace |
116 | 116 |
117 HRESULT UtilRegisterTypeLib(HINSTANCE tlb_instance, | 117 HRESULT UtilRegisterTypeLib(HINSTANCE tlb_instance, |
118 LPCOLESTR index, | 118 LPCOLESTR index, |
119 bool for_current_user_only) { | 119 bool for_current_user_only) { |
120 CComBSTR path; | 120 CComBSTR path; |
121 CComPtr<ITypeLib> type_lib; | 121 CComPtr<ITypeLib> type_lib; |
122 HRESULT hr = AtlLoadTypeLib(tlb_instance, index, &path, &type_lib); | 122 HRESULT hr = AtlLoadTypeLib(tlb_instance, index, &path, &type_lib); |
123 if (SUCCEEDED(hr)) { | 123 if (SUCCEEDED(hr)) { |
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 ret = InternetSetOption(NULL, connection_options[option_index], | 1633 ret = InternetSetOption(NULL, connection_options[option_index], |
1634 &connections, connection_value_size); | 1634 &connections, connection_value_size); |
1635 if (!ret) { | 1635 if (!ret) { |
1636 return false; | 1636 return false; |
1637 } | 1637 } |
1638 } | 1638 } |
1639 wininet_connection_count_updated = true; | 1639 wininet_connection_count_updated = true; |
1640 return true; | 1640 return true; |
1641 } | 1641 } |
1642 | 1642 |
OLD | NEW |