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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
16 #include "content/browser/renderer_host/render_widget_host.h" | 16 #include "content/browser/renderer_host/render_widget_host.h" |
17 #include "content/common/window_container_type.h" | 17 #include "content/common/window_container_type.h" |
18 #include "net/base/load_states.h" | 18 #include "net/base/load_states.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
23 #include "webkit/glue/webaccessibility.h" | 23 #include "webkit/glue/webaccessibility.h" |
24 #include "webkit/glue/window_open_disposition.h" | 24 #include "webkit/glue/window_open_disposition.h" |
25 | 25 |
26 class ChildProcessSecurityPolicy; | 26 class ChildProcessSecurityPolicy; |
27 struct DesktopNotificationHostMsg_Show_Params; | 27 struct DesktopNotificationHostMsg_Show_Params; |
28 class FilePath; | 28 class FilePath; |
29 class GURL; | 29 class GURL; |
30 class ListValue; | |
31 class RenderViewHostDelegate; | 30 class RenderViewHostDelegate; |
32 class RenderViewHostObserver; | 31 class RenderViewHostObserver; |
33 class SessionStorageNamespace; | 32 class SessionStorageNamespace; |
34 class SiteInstance; | 33 class SiteInstance; |
35 class SkBitmap; | 34 class SkBitmap; |
36 class ViewMsg_Navigate; | 35 class ViewMsg_Navigate; |
37 struct ContextMenuParams; | 36 struct ContextMenuParams; |
38 struct MediaPlayerAction; | 37 struct MediaPlayerAction; |
39 struct ViewHostMsg_AccessibilityNotification_Params; | 38 struct ViewHostMsg_AccessibilityNotification_Params; |
40 struct ViewHostMsg_CreateWindow_Params; | 39 struct ViewHostMsg_CreateWindow_Params; |
41 struct ViewHostMsg_ShowPopup_Params; | 40 struct ViewHostMsg_ShowPopup_Params; |
42 struct ViewMsg_Navigate_Params; | 41 struct ViewMsg_Navigate_Params; |
43 struct WebDropData; | 42 struct WebDropData; |
44 struct UserMetricsAction; | 43 struct UserMetricsAction; |
45 | 44 |
| 45 namespace base { |
| 46 class ListValue; |
| 47 } |
| 48 |
46 namespace gfx { | 49 namespace gfx { |
47 class Point; | 50 class Point; |
48 } // namespace gfx | 51 } // namespace gfx |
49 | 52 |
50 namespace ui { | 53 namespace ui { |
51 class Range; | 54 class Range; |
52 } // namespace ui | 55 } // namespace ui |
53 | 56 |
54 namespace webkit_glue { | 57 namespace webkit_glue { |
55 struct WebAccessibility; | 58 struct WebAccessibility; |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 void OnAddMessageToConsole(int32 level, | 446 void OnAddMessageToConsole(int32 level, |
444 const std::wstring& message, | 447 const std::wstring& message, |
445 int32 line_no, | 448 int32 line_no, |
446 const std::wstring& source_id); | 449 const std::wstring& source_id); |
447 void OnUpdateInspectorSetting(const std::string& key, | 450 void OnUpdateInspectorSetting(const std::string& key, |
448 const std::string& value); | 451 const std::string& value); |
449 void OnMsgShouldCloseACK(bool proceed); | 452 void OnMsgShouldCloseACK(bool proceed); |
450 void OnMsgClosePageACK(); | 453 void OnMsgClosePageACK(); |
451 void OnAccessibilityNotifications( | 454 void OnAccessibilityNotifications( |
452 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); | 455 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); |
453 void OnScriptEvalResponse(int id, const ListValue& result); | 456 void OnScriptEvalResponse(int id, const base::ListValue& result); |
454 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url); | 457 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url); |
455 void OnRequestDesktopNotificationPermission(const GURL& origin, | 458 void OnRequestDesktopNotificationPermission(const GURL& origin, |
456 int callback_id); | 459 int callback_id); |
457 void OnShowDesktopNotification( | 460 void OnShowDesktopNotification( |
458 const DesktopNotificationHostMsg_Show_Params& params); | 461 const DesktopNotificationHostMsg_Show_Params& params); |
459 void OnCancelDesktopNotification(int notification_id); | 462 void OnCancelDesktopNotification(int notification_id); |
460 | 463 |
461 #if defined(OS_MACOSX) | 464 #if defined(OS_MACOSX) |
462 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); | 465 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); |
463 #endif | 466 #endif |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 // The termination status of the last render view that terminated. | 545 // The termination status of the last render view that terminated. |
543 base::TerminationStatus render_view_termination_status_; | 546 base::TerminationStatus render_view_termination_status_; |
544 | 547 |
545 // A list of observers that filter messages. Weak references. | 548 // A list of observers that filter messages. Weak references. |
546 ObserverList<RenderViewHostObserver> observers_; | 549 ObserverList<RenderViewHostObserver> observers_; |
547 | 550 |
548 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 551 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
549 }; | 552 }; |
550 | 553 |
551 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 554 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |