| 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 #ifndef CHROME_FRAME_UTILS_H_ | 5 #ifndef CHROME_FRAME_UTILS_H_ |
| 6 #define CHROME_FRAME_UTILS_H_ | 6 #define CHROME_FRAME_UTILS_H_ |
| 7 | 7 |
| 8 #include <OAidl.h> | 8 #include <OAidl.h> |
| 9 #include <objidl.h> | 9 #include <objidl.h> |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 // Sent (not posted) when a request needs to be downloaded in the host browser | 454 // Sent (not posted) when a request needs to be downloaded in the host browser |
| 455 // instead of Chrome. WPARAM is 0 and LPARAM is a pointer to an IMoniker | 455 // instead of Chrome. WPARAM is 0 and LPARAM is a pointer to an IMoniker |
| 456 // object. | 456 // object. |
| 457 // NOTE: Since the message is sent synchronously, the handler should only | 457 // NOTE: Since the message is sent synchronously, the handler should only |
| 458 // start asynchronous operations in order to not block the sender unnecessarily. | 458 // start asynchronous operations in order to not block the sender unnecessarily. |
| 459 #define WM_DOWNLOAD_IN_HOST (WM_APP + 2) | 459 #define WM_DOWNLOAD_IN_HOST (WM_APP + 2) |
| 460 | 460 |
| 461 // This structure contains the parameters sent over to initiate a download | 461 // This structure contains the parameters sent over to initiate a download |
| 462 // request in the host browser. | 462 // request in the host browser. |
| 463 struct DownloadInHostParams { | 463 struct DownloadInHostParams { |
| 464 IBindCtx* bind_ctx; | 464 base::win::ScopedComPtr<IBindCtx> bind_ctx; |
| 465 IMoniker* moniker; | 465 base::win::ScopedComPtr<IMoniker> moniker; |
| 466 IStream* post_data; | 466 base::win::ScopedComPtr<IStream> post_data; |
| 467 std::string request_headers; | 467 std::string request_headers; |
| 468 }; | 468 }; |
| 469 | 469 |
| 470 // Maps the InternetCookieState enum to the corresponding CookieAction values | 470 // Maps the InternetCookieState enum to the corresponding CookieAction values |
| 471 // used for IE privacy stuff. | 471 // used for IE privacy stuff. |
| 472 int32 MapCookieStateToCookieAction(InternetCookieState cookie_state); | 472 int32 MapCookieStateToCookieAction(InternetCookieState cookie_state); |
| 473 | 473 |
| 474 // Parses the url passed in and returns a GURL instance without the fragment. | 474 // Parses the url passed in and returns a GURL instance without the fragment. |
| 475 GURL GetUrlWithoutFragment(const wchar_t* url); | 475 GURL GetUrlWithoutFragment(const wchar_t* url); |
| 476 | 476 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 // | 619 // |
| 620 // The string is first interpreted using ';' as a delimiter. It is reevaluated | 620 // The string is first interpreted using ';' as a delimiter. It is reevaluated |
| 621 // using ',' iff no valid 'chrome=' value is found. | 621 // using ',' iff no valid 'chrome=' value is found. |
| 622 bool CheckXUaCompatibleDirective(const std::string& directive, | 622 bool CheckXUaCompatibleDirective(const std::string& directive, |
| 623 int ie_major_version); | 623 int ie_major_version); |
| 624 | 624 |
| 625 // Returns the version of the current module as a string. | 625 // Returns the version of the current module as a string. |
| 626 std::wstring GetCurrentModuleVersion(); | 626 std::wstring GetCurrentModuleVersion(); |
| 627 | 627 |
| 628 #endif // CHROME_FRAME_UTILS_H_ | 628 #endif // CHROME_FRAME_UTILS_H_ |
| OLD | NEW |