| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_HOST_RENDER_VIEW_HOST_H__ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 class AutofillForm; | 24 class AutofillForm; |
| 25 class NavigationEntry; | 25 class NavigationEntry; |
| 26 class RenderViewHostDelegate; | 26 class RenderViewHostDelegate; |
| 27 class SiteInstance; | 27 class SiteInstance; |
| 28 class SkBitmap; | 28 class SkBitmap; |
| 29 class ViewMsg_Navigate; | 29 class ViewMsg_Navigate; |
| 30 struct ContextMenuParams; | 30 struct ContextMenuParams; |
| 31 struct ViewHostMsg_DidPrintPage_Params; | 31 struct ViewHostMsg_DidPrintPage_Params; |
| 32 struct ViewMsg_Navigate_Params; | 32 struct ViewMsg_Navigate_Params; |
| 33 struct ViewMsg_Print_Params; | |
| 34 struct ViewMsg_PrintPages_Params; | |
| 35 struct WebDropData; | 33 struct WebDropData; |
| 36 struct WebPreferences; | 34 struct WebPreferences; |
| 37 | 35 |
| 38 namespace base { | 36 namespace base { |
| 39 class WaitableEvent; | 37 class WaitableEvent; |
| 40 } | 38 } |
| 41 | 39 |
| 42 namespace gfx { | 40 namespace gfx { |
| 43 class Point; | 41 class Point; |
| 44 } | 42 } |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 bool HasUnloadListener() { return has_unload_listener_; } | 370 bool HasUnloadListener() { return has_unload_listener_; } |
| 373 | 371 |
| 374 // If the associated view can be terminated without any side effects | 372 // If the associated view can be terminated without any side effects |
| 375 bool CanTerminate() const; | 373 bool CanTerminate() const; |
| 376 | 374 |
| 377 // Clears the has_unload_listener_ bit since the unload handler has fired | 375 // Clears the has_unload_listener_ bit since the unload handler has fired |
| 378 // and we're necessarily leaving the page. | 376 // and we're necessarily leaving the page. |
| 379 void UnloadListenerHasFired() { has_unload_listener_ = false; } | 377 void UnloadListenerHasFired() { has_unload_listener_ = false; } |
| 380 | 378 |
| 381 #ifdef CHROME_PERSONALIZATION | 379 #ifdef CHROME_PERSONALIZATION |
| 382 // Tells the RenderView to raise an personalization event with the given name | 380 // Tells the RenderView to raise an personalization event with the given name |
| 383 // and argument. | 381 // and argument. |
| 384 void RaisePersonalizationEvent(std::string event_name, std::string event_arg); | 382 void RaisePersonalizationEvent(std::string event_name, std::string event_arg); |
| 385 | 383 |
| 386 HostPersonalization personalization() { | 384 HostPersonalization personalization() { |
| 387 return personalization_; | 385 return personalization_; |
| 388 } | 386 } |
| 389 #endif | 387 #endif |
| 390 | 388 |
| 391 // Forward a message from external host to chrome renderer. | 389 // Forward a message from external host to chrome renderer. |
| 392 void ForwardMessageFromExternalHost(const std::string& target, | 390 void ForwardMessageFromExternalHost(const std::string& target, |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 virtual ~RenderViewHostFactory() {} | 618 virtual ~RenderViewHostFactory() {} |
| 621 | 619 |
| 622 virtual RenderViewHost* CreateRenderViewHost( | 620 virtual RenderViewHost* CreateRenderViewHost( |
| 623 SiteInstance* instance, | 621 SiteInstance* instance, |
| 624 RenderViewHostDelegate* delegate, | 622 RenderViewHostDelegate* delegate, |
| 625 int routing_id, | 623 int routing_id, |
| 626 base::WaitableEvent* modal_dialog_event) = 0; | 624 base::WaitableEvent* modal_dialog_event) = 0; |
| 627 }; | 625 }; |
| 628 | 626 |
| 629 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__ | 627 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H__ |
| OLD | NEW |