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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 // PluginUrlRequestDelegate implementation. Simply adds tab's handle | 446 // PluginUrlRequestDelegate implementation. Simply adds tab's handle |
447 // as parameter and forwards to Chrome via IPC. | 447 // as parameter and forwards to Chrome via IPC. |
448 virtual void OnResponseStarted( | 448 virtual void OnResponseStarted( |
449 int request_id, const char* mime_type, const char* headers, int size, | 449 int request_id, const char* mime_type, const char* headers, int size, |
450 base::Time last_modified, const std::string& redirect_url, | 450 base::Time last_modified, const std::string& redirect_url, |
451 int redirect_status, const net::HostPortPair& socket_address, | 451 int redirect_status, const net::HostPortPair& socket_address, |
452 uint64 upload_size); | 452 uint64 upload_size); |
453 virtual void OnReadComplete(int request_id, const std::string& data); | 453 virtual void OnReadComplete(int request_id, const std::string& data); |
454 virtual void OnResponseEnd(int request_id, | 454 virtual void OnResponseEnd(int request_id, |
455 const net::URLRequestStatus& status); | 455 const net::URLRequestStatus& status); |
456 virtual void OnCookiesRetrieved(bool success, const GURL& url, | |
457 const std::string& cookie_string, int cookie_id); | |
458 | 456 |
459 bool is_initialized() const { | 457 bool is_initialized() const { |
460 return init_state_ == INITIALIZED; | 458 return init_state_ == INITIALIZED; |
461 } | 459 } |
462 | 460 |
463 HWND parent_window_; | 461 HWND parent_window_; |
464 base::PlatformThreadId ui_thread_id_; | 462 base::PlatformThreadId ui_thread_id_; |
465 | 463 |
466 void* automation_server_id_; | 464 void* automation_server_id_; |
467 ChromeFrameAutomationProxy* automation_server_; | 465 ChromeFrameAutomationProxy* automation_server_; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 // set to true if the host needs to get notified of all top level navigations | 509 // set to true if the host needs to get notified of all top level navigations |
512 // in this page. This typically applies to hosts which would render the new | 510 // in this page. This typically applies to hosts which would render the new |
513 // page without chrome frame. Defaults to false. | 511 // page without chrome frame. Defaults to false. |
514 bool route_all_top_level_navigations_; | 512 bool route_all_top_level_navigations_; |
515 | 513 |
516 friend class BeginNavigateContext; | 514 friend class BeginNavigateContext; |
517 friend class CreateExternalTabContext; | 515 friend class CreateExternalTabContext; |
518 }; | 516 }; |
519 | 517 |
520 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 518 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
OLD | NEW |