| 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/http_negotiate.h" | 5 #include "chrome_frame/http_negotiate.h" |
| 6 | 6 |
| 7 #include <atlbase.h> | 7 #include <atlbase.h> |
| 8 #include <atlcom.h> | 8 #include <atlcom.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 (new_headers.length() + 1) * sizeof(wchar_t))); | 192 (new_headers.length() + 1) * sizeof(wchar_t))); |
| 193 lstrcpyW(*additional_headers, ASCIIToWide(new_headers).c_str()); | 193 lstrcpyW(*additional_headers, ASCIIToWide(new_headers).c_str()); |
| 194 | 194 |
| 195 return hr; | 195 return hr; |
| 196 } | 196 } |
| 197 | 197 |
| 198 // static | 198 // static |
| 199 HRESULT HttpNegotiatePatch::OnResponse(IHttpNegotiate_OnResponse_Fn original, | 199 HRESULT HttpNegotiatePatch::OnResponse(IHttpNegotiate_OnResponse_Fn original, |
| 200 IHttpNegotiate* me, DWORD response_code, LPCWSTR response_header, | 200 IHttpNegotiate* me, DWORD response_code, LPCWSTR response_header, |
| 201 LPCWSTR request_header, LPWSTR* additional_request_headers) { | 201 LPCWSTR request_header, LPWSTR* additional_request_headers) { |
| 202 DLOG(INFO) << __FUNCTION__ << " headers: " << std::endl << response_header; |
| 203 |
| 202 HRESULT hr = original(me, response_code, response_header, request_header, | 204 HRESULT hr = original(me, response_code, response_header, request_header, |
| 203 additional_request_headers); | 205 additional_request_headers); |
| 204 return hr; | 206 return hr; |
| 205 } | 207 } |
| 206 | 208 |
| 207 // static | 209 // static |
| 208 HRESULT HttpNegotiatePatch::StartBinding( | 210 HRESULT HttpNegotiatePatch::StartBinding( |
| 209 IBindStatusCallback_StartBinding_Fn original, | 211 IBindStatusCallback_StartBinding_Fn original, |
| 210 IBindStatusCallback* me, DWORD reserved, IBinding* binding) { | 212 IBindStatusCallback* me, DWORD reserved, IBinding* binding) { |
| 211 ScopedComPtr<IBinding> local_binding(binding); | 213 ScopedComPtr<IBinding> local_binding(binding); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 } | 286 } |
| 285 } | 287 } |
| 286 | 288 |
| 287 if (render_in_chrome_frame) { | 289 if (render_in_chrome_frame) { |
| 288 status_text = kChromeMimeType; | 290 status_text = kChromeMimeType; |
| 289 } | 291 } |
| 290 } | 292 } |
| 291 | 293 |
| 292 return original(me, status_code, status_text); | 294 return original(me, status_code, status_text); |
| 293 } | 295 } |
| OLD | NEW |