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_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 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlwin.h> | 9 #include <atlwin.h> |
10 #include <queue> | 10 #include <queue> |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 const std::string& target) {} | 106 const std::string& target) {} |
107 virtual void OnHandleContextMenu(const ContextMenuModel& context_menu_model, | 107 virtual void OnHandleContextMenu(const ContextMenuModel& context_menu_model, |
108 int align_flags, | 108 int align_flags, |
109 const MiniContextMenuParams& params) {} | 109 const MiniContextMenuParams& params) {} |
110 virtual void OnRequestStart( | 110 virtual void OnRequestStart( |
111 int request_id, const AutomationURLRequest& request) {} | 111 int request_id, const AutomationURLRequest& request) {} |
112 virtual void OnRequestRead(int request_id, int bytes_to_read) {} | 112 virtual void OnRequestRead(int request_id, int bytes_to_read) {} |
113 virtual void OnRequestEnd(int request_id, | 113 virtual void OnRequestEnd(int request_id, |
114 const net::URLRequestStatus& status) {} | 114 const net::URLRequestStatus& status) {} |
115 virtual void OnDownloadRequestInHost(int request_id) {} | 115 virtual void OnDownloadRequestInHost(int request_id) {} |
116 virtual void OnSetCookieAsync(const GURL& url, const std::string& cookie) {} | |
117 virtual void OnAttachExternalTab( | 116 virtual void OnAttachExternalTab( |
118 const AttachExternalTabParams& attach_params) {} | 117 const AttachExternalTabParams& attach_params) {} |
119 virtual void OnGoToHistoryEntryOffset(int offset) {} | 118 virtual void OnGoToHistoryEntryOffset(int offset) {} |
120 | |
121 virtual void OnGetCookiesFromHost(const GURL& url, int cookie_id) {} | |
122 virtual void OnCloseTab() {} | 119 virtual void OnCloseTab() {} |
123 }; | 120 }; |
124 | 121 |
125 // This interface enables tasks to be marshaled to desired threads. | 122 // This interface enables tasks to be marshaled to desired threads. |
126 class TaskMarshaller { // NOLINT | 123 class TaskMarshaller { // NOLINT |
127 public: | 124 public: |
128 virtual void PostTask(const tracked_objects::Location& from_here, | 125 virtual void PostTask(const tracked_objects::Location& from_here, |
129 const base::Closure& task) = 0; | 126 const base::Closure& task) = 0; |
130 }; | 127 }; |
131 | 128 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 } | 200 } |
204 | 201 |
205 return false; | 202 return false; |
206 } | 203 } |
207 | 204 |
208 base::Lock lock_; | 205 base::Lock lock_; |
209 std::queue<base::PendingTask*> pending_tasks_; | 206 std::queue<base::PendingTask*> pending_tasks_; |
210 }; | 207 }; |
211 | 208 |
212 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ | 209 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
OLD | NEW |