| 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> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 28 #include "webkit/glue/webaccessibility.h" | 28 #include "webkit/glue/webaccessibility.h" |
| 29 #include "webkit/glue/window_open_disposition.h" | 29 #include "webkit/glue/window_open_disposition.h" |
| 30 | 30 |
| 31 class ChildProcessSecurityPolicy; | 31 class ChildProcessSecurityPolicy; |
| 32 class FilePath; | 32 class FilePath; |
| 33 class GURL; | 33 class GURL; |
| 34 class PowerSaveBlocker; | 34 class PowerSaveBlocker; |
| 35 class RenderViewHostDelegate; | 35 class RenderViewHostDelegate; |
| 36 class RenderViewHostObserver; | |
| 37 class SessionStorageNamespace; | 36 class SessionStorageNamespace; |
| 38 class SiteInstance; | 37 class SiteInstance; |
| 39 class SkBitmap; | 38 class SkBitmap; |
| 40 class ViewMsg_Navigate; | 39 class ViewMsg_Navigate; |
| 41 struct ContextMenuParams; | 40 struct ContextMenuParams; |
| 42 struct MediaPlayerAction; | 41 struct MediaPlayerAction; |
| 43 struct ViewHostMsg_AccessibilityNotification_Params; | 42 struct ViewHostMsg_AccessibilityNotification_Params; |
| 44 struct ViewHostMsg_CreateWindow_Params; | 43 struct ViewHostMsg_CreateWindow_Params; |
| 45 struct ViewHostMsg_ShowPopup_Params; | 44 struct ViewHostMsg_ShowPopup_Params; |
| 46 struct ViewMsg_Navigate_Params; | 45 struct ViewMsg_Navigate_Params; |
| 47 struct ViewMsg_StopFinding_Params; | 46 struct ViewMsg_StopFinding_Params; |
| 48 struct WebDropData; | 47 struct WebDropData; |
| 49 struct WebPreferences; | 48 struct WebPreferences; |
| 50 | 49 |
| 51 namespace base { | 50 namespace base { |
| 52 class ListValue; | 51 class ListValue; |
| 53 } | 52 } |
| 54 | 53 |
| 55 namespace content { | 54 namespace content { |
| 55 class RenderViewHostObserver; |
| 56 struct FileChooserParams; | 56 struct FileChooserParams; |
| 57 struct ShowDesktopNotificationHostMsgParams; | 57 struct ShowDesktopNotificationHostMsgParams; |
| 58 } | 58 } |
| 59 | 59 |
| 60 namespace gfx { | 60 namespace gfx { |
| 61 class Point; | 61 class Point; |
| 62 } // namespace gfx | 62 } // namespace gfx |
| 63 | 63 |
| 64 namespace ui { | 64 namespace ui { |
| 65 class Range; | 65 class Range; |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 void StopFinding(content::StopFindAction action); | 473 void StopFinding(content::StopFindAction action); |
| 474 | 474 |
| 475 SessionStorageNamespace* session_storage_namespace() { | 475 SessionStorageNamespace* session_storage_namespace() { |
| 476 return session_storage_namespace_.get(); | 476 return session_storage_namespace_.get(); |
| 477 } | 477 } |
| 478 | 478 |
| 479 // NOTE: Do not add functions that just send an IPC message that are called in | 479 // NOTE: Do not add functions that just send an IPC message that are called in |
| 480 // one or two places. Have the caller send the IPC message directly. | 480 // one or two places. Have the caller send the IPC message directly. |
| 481 | 481 |
| 482 protected: | 482 protected: |
| 483 friend class RenderViewHostObserver; | 483 friend class content::RenderViewHostObserver; |
| 484 | 484 |
| 485 // Add and remove observers for filtering IPC messages. Clients must be sure | 485 // Add and remove observers for filtering IPC messages. Clients must be sure |
| 486 // to remove the observer before they go away. | 486 // to remove the observer before they go away. |
| 487 void AddObserver(RenderViewHostObserver* observer); | 487 void AddObserver(content::RenderViewHostObserver* observer); |
| 488 void RemoveObserver(RenderViewHostObserver* observer); | 488 void RemoveObserver(content::RenderViewHostObserver* observer); |
| 489 | 489 |
| 490 // RenderWidgetHost protected overrides. | 490 // RenderWidgetHost protected overrides. |
| 491 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 491 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 492 bool* is_keyboard_shortcut) OVERRIDE; | 492 bool* is_keyboard_shortcut) OVERRIDE; |
| 493 virtual void UnhandledKeyboardEvent( | 493 virtual void UnhandledKeyboardEvent( |
| 494 const NativeWebKeyboardEvent& event) OVERRIDE; | 494 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 495 virtual void OnUserGesture() OVERRIDE; | 495 virtual void OnUserGesture() OVERRIDE; |
| 496 virtual void NotifyRendererUnresponsive() OVERRIDE; | 496 virtual void NotifyRendererUnresponsive() OVERRIDE; |
| 497 virtual void NotifyRendererResponsive() OVERRIDE; | 497 virtual void NotifyRendererResponsive() OVERRIDE; |
| 498 virtual void RequestToLockMouse() OVERRIDE; | 498 virtual void RequestToLockMouse() OVERRIDE; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 | 669 |
| 670 // The termination status of the last render view that terminated. | 670 // The termination status of the last render view that terminated. |
| 671 base::TerminationStatus render_view_termination_status_; | 671 base::TerminationStatus render_view_termination_status_; |
| 672 | 672 |
| 673 // Holds PowerSaveBlockers for the media players in use. Key is the | 673 // Holds PowerSaveBlockers for the media players in use. Key is the |
| 674 // player_cookie passed to OnMediaNotification, value is the PowerSaveBlocker. | 674 // player_cookie passed to OnMediaNotification, value is the PowerSaveBlocker. |
| 675 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 675 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
| 676 PowerSaveBlockerMap power_save_blockers_; | 676 PowerSaveBlockerMap power_save_blockers_; |
| 677 | 677 |
| 678 // A list of observers that filter messages. Weak references. | 678 // A list of observers that filter messages. Weak references. |
| 679 ObserverList<RenderViewHostObserver> observers_; | 679 ObserverList<content::RenderViewHostObserver> observers_; |
| 680 | 680 |
| 681 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 681 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 682 }; | 682 }; |
| 683 | 683 |
| 684 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 684 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |