OLD | NEW |
1 // Copyright (c) 2010 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_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 <string> | 10 #include <string> |
11 #include <map> | 11 #include <map> |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 | 493 |
494 bool ProcessUrlRequestMessage(TabProxy* tab, const IPC::Message& msg, | 494 bool ProcessUrlRequestMessage(TabProxy* tab, const IPC::Message& msg, |
495 bool ui_thread); | 495 bool ui_thread); |
496 | 496 |
497 // PluginUrlRequestDelegate implementation. Simply adds tab's handle | 497 // PluginUrlRequestDelegate implementation. Simply adds tab's handle |
498 // as parameter and forwards to Chrome via IPC. | 498 // as parameter and forwards to Chrome via IPC. |
499 virtual void OnResponseStarted(int request_id, const char* mime_type, | 499 virtual void OnResponseStarted(int request_id, const char* mime_type, |
500 const char* headers, int size, base::Time last_modified, | 500 const char* headers, int size, base::Time last_modified, |
501 const std::string& redirect_url, int redirect_status); | 501 const std::string& redirect_url, int redirect_status); |
502 virtual void OnReadComplete(int request_id, const std::string& data); | 502 virtual void OnReadComplete(int request_id, const std::string& data); |
503 virtual void OnResponseEnd(int request_id, const URLRequestStatus& status); | 503 virtual void OnResponseEnd(int request_id, |
| 504 const net::URLRequestStatus& status); |
504 virtual void OnCookiesRetrieved(bool success, const GURL& url, | 505 virtual void OnCookiesRetrieved(bool success, const GURL& url, |
505 const std::string& cookie_string, int cookie_id); | 506 const std::string& cookie_string, int cookie_id); |
506 | 507 |
507 bool is_initialized() const { | 508 bool is_initialized() const { |
508 return init_state_ == INITIALIZED; | 509 return init_state_ == INITIALIZED; |
509 } | 510 } |
510 | 511 |
511 HWND parent_window_; | 512 HWND parent_window_; |
512 base::PlatformThreadId ui_thread_id_; | 513 base::PlatformThreadId ui_thread_id_; |
513 | 514 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 // set to true if the host needs to get notified of all top level navigations | 560 // set to true if the host needs to get notified of all top level navigations |
560 // in this page. This typically applies to hosts which would render the new | 561 // in this page. This typically applies to hosts which would render the new |
561 // page without chrome frame. Defaults to false. | 562 // page without chrome frame. Defaults to false. |
562 bool route_all_top_level_navigations_; | 563 bool route_all_top_level_navigations_; |
563 | 564 |
564 friend class BeginNavigateContext; | 565 friend class BeginNavigateContext; |
565 friend class CreateExternalTabContext; | 566 friend class CreateExternalTabContext; |
566 }; | 567 }; |
567 | 568 |
568 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 569 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
OLD | NEW |