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