| 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_DELEGATE_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
| 7 #pragma once |
| 7 | 8 |
| 8 #include <atlbase.h> | 9 #include <atlbase.h> |
| 9 #include <atlwin.h> | 10 #include <atlwin.h> |
| 10 #include <queue> | 11 #include <queue> |
| 11 #include <string> | 12 #include <string> |
| 12 #include <vector> | 13 #include <vector> |
| 13 | 14 |
| 14 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 15 #include "base/lock.h" | 16 #include "base/lock.h" |
| 16 #include "chrome/common/automation_messages.h" | 17 #include "chrome/common/automation_messages.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual void OnNavigationFailed(int error_code, const GURL& gurl) {} | 101 virtual void OnNavigationFailed(int error_code, const GURL& gurl) {} |
| 101 virtual void OnLoad(const GURL& url) {} | 102 virtual void OnLoad(const GURL& url) {} |
| 102 virtual void OnMessageFromChromeFrame(const std::string& message, | 103 virtual void OnMessageFromChromeFrame(const std::string& message, |
| 103 const std::string& origin, | 104 const std::string& origin, |
| 104 const std::string& target) {} | 105 const std::string& target) {} |
| 105 virtual void OnHandleContextMenu(HANDLE menu_handle, int align_flags, | 106 virtual void OnHandleContextMenu(HANDLE menu_handle, int align_flags, |
| 106 const MiniContextMenuParams& params) {} | 107 const MiniContextMenuParams& params) {} |
| 107 virtual void OnRequestStart( | 108 virtual void OnRequestStart( |
| 108 int request_id, const AutomationURLRequest& request) {} | 109 int request_id, const AutomationURLRequest& request) {} |
| 109 virtual void OnRequestRead(int request_id, int bytes_to_read) {} | 110 virtual void OnRequestRead(int request_id, int bytes_to_read) {} |
| 110 virtual void OnRequestEnd(int request_id, const URLRequestStatus& status) {} | 111 virtual void OnRequestEnd(int request_id, |
| 112 const net::URLRequestStatus& status) {} |
| 111 virtual void OnDownloadRequestInHost(int request_id) {} | 113 virtual void OnDownloadRequestInHost(int request_id) {} |
| 112 virtual void OnSetCookieAsync(const GURL& url, const std::string& cookie) {} | 114 virtual void OnSetCookieAsync(const GURL& url, const std::string& cookie) {} |
| 113 virtual void OnAttachExternalTab( | 115 virtual void OnAttachExternalTab( |
| 114 const AttachExternalTabParams& attach_params) {} | 116 const AttachExternalTabParams& attach_params) {} |
| 115 virtual void OnGoToHistoryEntryOffset(int offset) {} | 117 virtual void OnGoToHistoryEntryOffset(int offset) {} |
| 116 | 118 |
| 117 virtual void OnGetCookiesFromHost(const GURL& url, int cookie_id) {} | 119 virtual void OnGetCookiesFromHost(const GURL& url, int cookie_id) {} |
| 118 virtual void OnCloseTab() {} | 120 virtual void OnCloseTab() {} |
| 119 }; | 121 }; |
| 120 | 122 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 } | 199 } |
| 198 | 200 |
| 199 return false; | 201 return false; |
| 200 } | 202 } |
| 201 | 203 |
| 202 Lock lock_; | 204 Lock lock_; |
| 203 std::queue<Task*> pending_tasks_; | 205 std::queue<Task*> pending_tasks_; |
| 204 }; | 206 }; |
| 205 | 207 |
| 206 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ | 208 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
| OLD | NEW |