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_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 const string16& action, | 169 const string16& action, |
170 const string16& type, | 170 const string16& type, |
171 const string16& href, | 171 const string16& href, |
172 const string16& title); | 172 const string16& title); |
173 virtual void WebIntentDispatch(TabContents* tab, | 173 virtual void WebIntentDispatch(TabContents* tab, |
174 int routing_id, | 174 int routing_id, |
175 const string16& action, | 175 const string16& action, |
176 const string16& type, | 176 const string16& type, |
177 const string16& data, | 177 const string16& data, |
178 int intent_id); | 178 int intent_id); |
| 179 virtual void FindReply(TabContents* tab, |
| 180 int request_id, |
| 181 int number_of_matches, |
| 182 const gfx::Rect& selection_rect, |
| 183 int active_match_ordinal, |
| 184 bool final_update); |
179 | 185 |
180 void RegisterRenderViewHost(RenderViewHost* render_view_host); | 186 void RegisterRenderViewHost(RenderViewHost* render_view_host); |
181 void UnregisterRenderViewHost(RenderViewHost* render_view_host); | 187 void UnregisterRenderViewHost(RenderViewHost* render_view_host); |
182 | 188 |
183 // Overridden from TabContentsObserver: | 189 // Overridden from TabContentsObserver: |
184 // IPC::Channel::Listener implementation. | 190 // IPC::Channel::Listener implementation. |
185 virtual bool OnMessageReceived(const IPC::Message& message); | 191 virtual bool OnMessageReceived(const IPC::Message& message); |
186 | 192 |
187 // Message handlers | 193 // Message handlers |
188 void OnForwardMessageToExternalHost(const std::string& message, | 194 void OnForwardMessageToExternalHost(const std::string& message, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 // A message filter to load resources via automation | 288 // A message filter to load resources via automation |
283 scoped_refptr<AutomationResourceMessageFilter> | 289 scoped_refptr<AutomationResourceMessageFilter> |
284 automation_resource_message_filter_; | 290 automation_resource_message_filter_; |
285 | 291 |
286 // If all the url requests for this tab are to be loaded via automation. | 292 // If all the url requests for this tab are to be loaded via automation. |
287 bool load_requests_via_automation_; | 293 bool load_requests_via_automation_; |
288 | 294 |
289 // whether top level URL requests are to be handled by the automation client. | 295 // whether top level URL requests are to be handled by the automation client. |
290 bool handle_top_level_requests_; | 296 bool handle_top_level_requests_; |
291 | 297 |
292 // Scoped browser object for this ExternalTabContainer instance. | |
293 scoped_ptr<Browser> browser_; | |
294 | |
295 // Contains ExternalTabContainers that have not been connected to as yet. | 298 // Contains ExternalTabContainers that have not been connected to as yet. |
296 static base::LazyInstance<PendingTabs> pending_tabs_; | 299 static base::LazyInstance<PendingTabs> pending_tabs_; |
297 | 300 |
298 // Allows us to run tasks on the ExternalTabContainer instance which are | 301 // Allows us to run tasks on the ExternalTabContainer instance which are |
299 // bound by its lifetime. | 302 // bound by its lifetime. |
300 ScopedRunnableMethodFactory<ExternalTabContainer> external_method_factory_; | 303 ScopedRunnableMethodFactory<ExternalTabContainer> external_method_factory_; |
301 | 304 |
302 // The URL request context to be used for this tab. Can be NULL. | 305 // The URL request context to be used for this tab. Can be NULL. |
303 scoped_refptr<ChromeURLRequestContextGetter> request_context_; | 306 scoped_refptr<ChromeURLRequestContextGetter> request_context_; |
304 | 307 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 return false; | 408 return false; |
406 } | 409 } |
407 | 410 |
408 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, | 411 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, |
409 bool* proceed_to_fire_unload) { | 412 bool* proceed_to_fire_unload) { |
410 NOTREACHED(); | 413 NOTREACHED(); |
411 } | 414 } |
412 }; | 415 }; |
413 | 416 |
414 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 417 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
OLD | NEW |