OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTOMATION_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
6 #define CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlwin.h> | 9 #include <atlwin.h> |
10 #include <map> | 10 #include <map> |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 | 450 |
451 // Helpers | 451 // Helpers |
452 void ReportNavigationError(AutomationMsg_NavigationResponseValues error_code, | 452 void ReportNavigationError(AutomationMsg_NavigationResponseValues error_code, |
453 const std::string& url); | 453 const std::string& url); |
454 | 454 |
455 bool ProcessUrlRequestMessage(TabProxy* tab, const IPC::Message& msg, | 455 bool ProcessUrlRequestMessage(TabProxy* tab, const IPC::Message& msg, |
456 bool ui_thread); | 456 bool ui_thread); |
457 | 457 |
458 // PluginUrlRequestDelegate implementation. Simply adds tab's handle | 458 // PluginUrlRequestDelegate implementation. Simply adds tab's handle |
459 // as parameter and forwards to Chrome via IPC. | 459 // as parameter and forwards to Chrome via IPC. |
460 virtual void OnResponseStarted(int request_id, const char* mime_type, | 460 virtual void OnResponseStarted( |
461 const char* headers, int size, base::Time last_modified, | 461 int request_id, const char* mime_type, const char* headers, int size, |
462 const std::string& redirect_url, int redirect_status, | 462 base::Time last_modified, const std::string& redirect_url, |
463 const net::HostPortPair& socket_address); | 463 int redirect_status, const net::HostPortPair& socket_address, |
| 464 uint64 upload_size); |
464 virtual void OnReadComplete(int request_id, const std::string& data); | 465 virtual void OnReadComplete(int request_id, const std::string& data); |
465 virtual void OnResponseEnd(int request_id, | 466 virtual void OnResponseEnd(int request_id, |
466 const net::URLRequestStatus& status); | 467 const net::URLRequestStatus& status); |
467 virtual void OnCookiesRetrieved(bool success, const GURL& url, | 468 virtual void OnCookiesRetrieved(bool success, const GURL& url, |
468 const std::string& cookie_string, int cookie_id); | 469 const std::string& cookie_string, int cookie_id); |
469 | 470 |
470 bool is_initialized() const { | 471 bool is_initialized() const { |
471 return init_state_ == INITIALIZED; | 472 return init_state_ == INITIALIZED; |
472 } | 473 } |
473 | 474 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 | 527 |
527 // Set to true if Chrome Frame should tell Chrome to delay shutdown after | 528 // Set to true if Chrome Frame should tell Chrome to delay shutdown after |
528 // we break a connection. Currently used only as part of a field trial. | 529 // we break a connection. Currently used only as part of a field trial. |
529 bool send_shutdown_delay_switch_; | 530 bool send_shutdown_delay_switch_; |
530 | 531 |
531 friend class BeginNavigateContext; | 532 friend class BeginNavigateContext; |
532 friend class CreateExternalTabContext; | 533 friend class CreateExternalTabContext; |
533 }; | 534 }; |
534 | 535 |
535 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 536 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
OLD | NEW |