| 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 #ifndef CHROME_FRAME_HTTP_NEGOTIATE_H_ | 5 #ifndef CHROME_FRAME_HTTP_NEGOTIATE_H_ |
| 6 #define CHROME_FRAME_HTTP_NEGOTIATE_H_ | 6 #define CHROME_FRAME_HTTP_NEGOTIATE_H_ |
| 7 | 7 |
| 8 #include <shdeprecated.h> | 8 #include <shdeprecated.h> |
| 9 #include <urlmon.h> | 9 #include <urlmon.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/scoped_comptr_win.h" | 14 #include "base/win/scoped_comptr.h" |
| 15 | 15 |
| 16 // Typedefs for IHttpNegotiate methods. | 16 // Typedefs for IHttpNegotiate methods. |
| 17 typedef HRESULT (STDMETHODCALLTYPE* IHttpNegotiate_BeginningTransaction_Fn)( | 17 typedef HRESULT (STDMETHODCALLTYPE* IHttpNegotiate_BeginningTransaction_Fn)( |
| 18 IHttpNegotiate* me, LPCWSTR url, LPCWSTR headers, DWORD reserved, | 18 IHttpNegotiate* me, LPCWSTR url, LPCWSTR headers, DWORD reserved, |
| 19 LPWSTR* additional_headers); | 19 LPWSTR* additional_headers); |
| 20 typedef HRESULT (STDMETHODCALLTYPE* IHttpNegotiate_OnResponse_Fn)( | 20 typedef HRESULT (STDMETHODCALLTYPE* IHttpNegotiate_OnResponse_Fn)( |
| 21 IHttpNegotiate* me, DWORD response_code, LPCWSTR response_header, | 21 IHttpNegotiate* me, DWORD response_code, LPCWSTR response_header, |
| 22 LPCWSTR request_header, LPWSTR* additional_request_headers); | 22 LPCWSTR request_header, LPWSTR* additional_request_headers); |
| 23 | 23 |
| 24 // Typedefs for IBindStatusCallback methods. | 24 // Typedefs for IBindStatusCallback methods. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // when |headers| contains an User-Agent string. | 82 // when |headers| contains an User-Agent string. |
| 83 std::string AppendCFUserAgentString(LPCWSTR headers, | 83 std::string AppendCFUserAgentString(LPCWSTR headers, |
| 84 LPCWSTR additional_headers); | 84 LPCWSTR additional_headers); |
| 85 | 85 |
| 86 // Adds or replaces the User-Agent header in a set of HTTP headers. | 86 // Adds or replaces the User-Agent header in a set of HTTP headers. |
| 87 // Arguments are the same as with AppendCFUserAgentString. | 87 // Arguments are the same as with AppendCFUserAgentString. |
| 88 std::string ReplaceOrAddUserAgent(LPCWSTR headers, | 88 std::string ReplaceOrAddUserAgent(LPCWSTR headers, |
| 89 const std::string& user_agent_value); | 89 const std::string& user_agent_value); |
| 90 | 90 |
| 91 #endif // CHROME_FRAME_HTTP_NEGOTIATE_H_ | 91 #endif // CHROME_FRAME_HTTP_NEGOTIATE_H_ |
| OLD | NEW |