| 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_CHROME_FRAME_ACTIVEX_BASE_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <atlctl.h> | 10 #include <atlctl.h> |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 // TODO(tommi): It looks like we might have to switch the request object | 470 // TODO(tommi): It looks like we might have to switch the request object |
| 471 // into a pass-through request object and serve up any thus far received | 471 // into a pass-through request object and serve up any thus far received |
| 472 // content and headers to IE in order to prevent what can currently happen | 472 // content and headers to IE in order to prevent what can currently happen |
| 473 // which is reissuing requests and turning POST into GET. | 473 // which is reissuing requests and turning POST into GET. |
| 474 if (download_params->moniker) { | 474 if (download_params->moniker) { |
| 475 NavigateBrowserToMoniker( | 475 NavigateBrowserToMoniker( |
| 476 doc_site_, download_params->moniker, | 476 doc_site_, download_params->moniker, |
| 477 UTF8ToWide(download_params->request_headers).c_str(), | 477 UTF8ToWide(download_params->request_headers).c_str(), |
| 478 download_params->bind_ctx, NULL, download_params->post_data); | 478 download_params->bind_ctx, NULL, download_params->post_data); |
| 479 } | 479 } |
| 480 delete download_params; |
| 480 return TRUE; | 481 return TRUE; |
| 481 } | 482 } |
| 482 | 483 |
| 483 virtual void OnAttachExternalTab(const AttachExternalTabParams& params) { | 484 virtual void OnAttachExternalTab(const AttachExternalTabParams& params) { |
| 484 std::wstring wide_url = url_; | 485 std::wstring wide_url = url_; |
| 485 GURL parsed_url(WideToUTF8(wide_url)); | 486 GURL parsed_url(WideToUTF8(wide_url)); |
| 486 | 487 |
| 487 // If Chrome-Frame is presently navigated to an extension page, navigating | 488 // If Chrome-Frame is presently navigated to an extension page, navigating |
| 488 // the host to a url with scheme chrome-extension will fail, so we | 489 // the host to a url with scheme chrome-extension will fail, so we |
| 489 // point the host at http:local_host. Note that this is NOT the URL | 490 // point the host at http:local_host. Note that this is NOT the URL |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 EventHandlers onreadystatechanged_; | 1273 EventHandlers onreadystatechanged_; |
| 1273 EventHandlers onprivatemessage_; | 1274 EventHandlers onprivatemessage_; |
| 1274 EventHandlers onextensionready_; | 1275 EventHandlers onextensionready_; |
| 1275 | 1276 |
| 1276 // Handle network requests when host network stack is used. Passed to the | 1277 // Handle network requests when host network stack is used. Passed to the |
| 1277 // automation client on initialization. | 1278 // automation client on initialization. |
| 1278 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; | 1279 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; |
| 1279 }; | 1280 }; |
| 1280 | 1281 |
| 1281 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 1282 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| OLD | NEW |