Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: chrome_frame/utils.h

Issue 6673025: Merge 77732 - Fix the flakiness with download requests routed by ChromeFrame ... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/648/src/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/urlmon_url_request.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome_frame/urlmon_url_request.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698