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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 bool IsChromeFrameDocument(IWebBrowser2* web_browser); | 629 bool IsChromeFrameDocument(IWebBrowser2* web_browser); |
630 | 630 |
631 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the | 631 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the |
632 // value passed in. This is only done if the existing connection limit is | 632 // value passed in. This is only done if the existing connection limit is |
633 // lesser than the connection limit passed in. This function attempts to | 633 // lesser than the connection limit passed in. This function attempts to |
634 // increase the connection count once per process. | 634 // increase the connection count once per process. |
635 // Returns true on success. | 635 // Returns true on success. |
636 bool IncreaseWinInetConnections(DWORD connections); | 636 bool IncreaseWinInetConnections(DWORD connections); |
637 | 637 |
638 #endif // CHROME_FRAME_UTILS_H_ | 638 #endif // CHROME_FRAME_UTILS_H_ |
OLD | NEW |