| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 struct ViewHostMsg_CreateWindow_Params; | 38 struct ViewHostMsg_CreateWindow_Params; |
| 39 struct ViewHostMsg_ShowPopup_Params; | 39 struct ViewHostMsg_ShowPopup_Params; |
| 40 struct ViewMsg_Navigate_Params; | 40 struct ViewMsg_Navigate_Params; |
| 41 struct ViewMsg_StopFinding_Params; | 41 struct ViewMsg_StopFinding_Params; |
| 42 | 42 |
| 43 namespace base { | 43 namespace base { |
| 44 class ListValue; | 44 class ListValue; |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace content { | 47 namespace content { |
| 48 class RenderViewHostObserver; | 48 class TestRenderViewHost; |
| 49 struct FileChooserParams; | |
| 50 struct ContextMenuParams; | |
| 51 struct Referrer; | |
| 52 struct ShowDesktopNotificationHostMsgParams; | |
| 53 } | 49 } |
| 54 | 50 |
| 55 namespace ui { | 51 namespace ui { |
| 56 class Range; | 52 class Range; |
| 57 } | 53 } |
| 58 | 54 |
| 59 namespace webkit_glue { | 55 namespace webkit_glue { |
| 60 struct WebAccessibility; | 56 struct WebAccessibility; |
| 61 } | 57 } |
| 62 | 58 |
| 59 namespace content { |
| 60 |
| 61 class RenderViewHostObserver; |
| 62 struct FileChooserParams; |
| 63 struct ContextMenuParams; |
| 64 struct Referrer; |
| 65 struct ShowDesktopNotificationHostMsgParams; |
| 66 |
| 63 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT | 67 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT |
| 64 // notifications. | 68 // notifications. |
| 65 class ExecuteNotificationObserver : public content::NotificationObserver { | 69 class ExecuteNotificationObserver : public NotificationObserver { |
| 66 public: | 70 public: |
| 67 explicit ExecuteNotificationObserver(int id); | 71 explicit ExecuteNotificationObserver(int id); |
| 68 virtual ~ExecuteNotificationObserver(); | 72 virtual ~ExecuteNotificationObserver(); |
| 69 virtual void Observe(int type, | 73 virtual void Observe(int type, |
| 70 const content::NotificationSource& source, | 74 const NotificationSource& source, |
| 71 const content::NotificationDetails& details) OVERRIDE; | 75 const NotificationDetails& details) OVERRIDE; |
| 72 | 76 |
| 73 int id() const { return id_; } | 77 int id() const { return id_; } |
| 74 | 78 |
| 75 Value* value() const { return value_.get(); } | 79 Value* value() const { return value_.get(); } |
| 76 | 80 |
| 77 private: | 81 private: |
| 78 int id_; | 82 int id_; |
| 79 scoped_ptr<Value> value_; | 83 scoped_ptr<Value> value_; |
| 80 | 84 |
| 81 DISALLOW_COPY_AND_ASSIGN(ExecuteNotificationObserver); | 85 DISALLOW_COPY_AND_ASSIGN(ExecuteNotificationObserver); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 static RenderViewHostImpl* FromID(int render_process_id, int render_view_id); | 121 static RenderViewHostImpl* FromID(int render_process_id, int render_view_id); |
| 118 | 122 |
| 119 // routing_id could be a valid route id, or it could be MSG_ROUTING_NONE, in | 123 // routing_id could be a valid route id, or it could be MSG_ROUTING_NONE, in |
| 120 // which case RenderWidgetHost will create a new one. | 124 // which case RenderWidgetHost will create a new one. |
| 121 // | 125 // |
| 122 // The session storage namespace parameter allows multiple render views and | 126 // The session storage namespace parameter allows multiple render views and |
| 123 // tab contentses to share the same session storage (part of the WebStorage | 127 // tab contentses to share the same session storage (part of the WebStorage |
| 124 // spec) space. This is useful when restoring tabs, but most callers should | 128 // spec) space. This is useful when restoring tabs, but most callers should |
| 125 // pass in NULL which will cause a new SessionStorageNamespace to be created. | 129 // pass in NULL which will cause a new SessionStorageNamespace to be created. |
| 126 RenderViewHostImpl( | 130 RenderViewHostImpl( |
| 127 content::SiteInstance* instance, | 131 SiteInstance* instance, |
| 128 content::RenderViewHostDelegate* delegate, | 132 RenderViewHostDelegate* delegate, |
| 129 int routing_id, | 133 int routing_id, |
| 130 content::SessionStorageNamespace* session_storage_namespace); | 134 SessionStorageNamespace* session_storage_namespace); |
| 131 virtual ~RenderViewHostImpl(); | 135 virtual ~RenderViewHostImpl(); |
| 132 | 136 |
| 133 // RenderViewHost implementation. | 137 // RenderViewHost implementation. |
| 134 virtual void AllowBindings(int binding_flags) OVERRIDE; | 138 virtual void AllowBindings(int binding_flags) OVERRIDE; |
| 135 virtual void ClearFocusedNode() OVERRIDE; | 139 virtual void ClearFocusedNode() OVERRIDE; |
| 136 virtual void ClosePage() OVERRIDE; | 140 virtual void ClosePage() OVERRIDE; |
| 137 virtual void CopyImageAt(int x, int y) OVERRIDE; | 141 virtual void CopyImageAt(int x, int y) OVERRIDE; |
| 138 virtual void DisassociateFromPopupCount() OVERRIDE; | 142 virtual void DisassociateFromPopupCount() OVERRIDE; |
| 139 virtual void DesktopNotificationPermissionRequestDone( | 143 virtual void DesktopNotificationPermissionRequestDone( |
| 140 int callback_context) OVERRIDE; | 144 int callback_context) OVERRIDE; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 164 const gfx::Point& screen_pt, | 168 const gfx::Point& screen_pt, |
| 165 WebKit::WebDragOperationsMask operations_allowed) OVERRIDE; | 169 WebKit::WebDragOperationsMask operations_allowed) OVERRIDE; |
| 166 virtual void DragTargetDragLeave() OVERRIDE; | 170 virtual void DragTargetDragLeave() OVERRIDE; |
| 167 virtual void DragTargetDrop(const gfx::Point& client_pt, | 171 virtual void DragTargetDrop(const gfx::Point& client_pt, |
| 168 const gfx::Point& screen_pt) OVERRIDE; | 172 const gfx::Point& screen_pt) OVERRIDE; |
| 169 virtual void EnableAutoResize(const gfx::Size& min_size, | 173 virtual void EnableAutoResize(const gfx::Size& min_size, |
| 170 const gfx::Size& max_size) OVERRIDE; | 174 const gfx::Size& max_size) OVERRIDE; |
| 171 virtual void DisableAutoResize(const gfx::Size& new_size) OVERRIDE; | 175 virtual void DisableAutoResize(const gfx::Size& new_size) OVERRIDE; |
| 172 virtual void EnablePreferredSizeMode() OVERRIDE; | 176 virtual void EnablePreferredSizeMode() OVERRIDE; |
| 173 virtual void ExecuteCustomContextMenuCommand( | 177 virtual void ExecuteCustomContextMenuCommand( |
| 174 int action, const content::CustomContextMenuContext& context) OVERRIDE; | 178 int action, const CustomContextMenuContext& context) OVERRIDE; |
| 175 virtual void ExecuteMediaPlayerActionAtLocation( | 179 virtual void ExecuteMediaPlayerActionAtLocation( |
| 176 const gfx::Point& location, | 180 const gfx::Point& location, |
| 177 const WebKit::WebMediaPlayerAction& action) OVERRIDE; | 181 const WebKit::WebMediaPlayerAction& action) OVERRIDE; |
| 178 virtual void ExecuteJavascriptInWebFrame(const string16& frame_xpath, | 182 virtual void ExecuteJavascriptInWebFrame(const string16& frame_xpath, |
| 179 const string16& jscript) OVERRIDE; | 183 const string16& jscript) OVERRIDE; |
| 180 virtual int ExecuteJavascriptInWebFrameNotifyResult( | 184 virtual int ExecuteJavascriptInWebFrameNotifyResult( |
| 181 const string16& frame_xpath, | 185 const string16& frame_xpath, |
| 182 const string16& jscript) OVERRIDE; | 186 const string16& jscript) OVERRIDE; |
| 183 virtual Value* ExecuteJavascriptAndGetValue(const string16& frame_xpath, | 187 virtual Value* ExecuteJavascriptAndGetValue(const string16& frame_xpath, |
| 184 const string16& jscript) OVERRIDE; | 188 const string16& jscript) OVERRIDE; |
| 185 virtual void ExecutePluginActionAtLocation( | 189 virtual void ExecutePluginActionAtLocation( |
| 186 const gfx::Point& location, | 190 const gfx::Point& location, |
| 187 const WebKit::WebPluginAction& action) OVERRIDE; | 191 const WebKit::WebPluginAction& action) OVERRIDE; |
| 188 virtual void ExitFullscreen() OVERRIDE; | 192 virtual void ExitFullscreen() OVERRIDE; |
| 189 virtual void Find(int request_id, const string16& search_text, | 193 virtual void Find(int request_id, const string16& search_text, |
| 190 const WebKit::WebFindOptions& options) OVERRIDE; | 194 const WebKit::WebFindOptions& options) OVERRIDE; |
| 191 virtual void StopFinding(content::StopFindAction action) OVERRIDE; | 195 virtual void StopFinding(StopFindAction action) OVERRIDE; |
| 192 virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE; | 196 virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE; |
| 193 virtual void FilesSelectedInChooser(const std::vector<FilePath>& files, | 197 virtual void FilesSelectedInChooser(const std::vector<FilePath>& files, |
| 194 int permissions) OVERRIDE; | 198 int permissions) OVERRIDE; |
| 195 virtual content::RenderViewHostDelegate* GetDelegate() const OVERRIDE; | 199 virtual RenderViewHostDelegate* GetDelegate() const OVERRIDE; |
| 196 virtual int GetEnabledBindings() const OVERRIDE; | 200 virtual int GetEnabledBindings() const OVERRIDE; |
| 197 virtual content::SessionStorageNamespace* | 201 virtual SessionStorageNamespace* |
| 198 GetSessionStorageNamespace() OVERRIDE; | 202 GetSessionStorageNamespace() OVERRIDE; |
| 199 virtual content::SiteInstance* GetSiteInstance() const OVERRIDE; | 203 virtual SiteInstance* GetSiteInstance() const OVERRIDE; |
| 200 virtual void InsertCSS(const string16& frame_xpath, | 204 virtual void InsertCSS(const string16& frame_xpath, |
| 201 const std::string& css) OVERRIDE; | 205 const std::string& css) OVERRIDE; |
| 202 virtual bool IsRenderViewLive() const OVERRIDE; | 206 virtual bool IsRenderViewLive() const OVERRIDE; |
| 203 virtual void NotifyContextMenuClosed( | 207 virtual void NotifyContextMenuClosed( |
| 204 const content::CustomContextMenuContext& context) OVERRIDE; | 208 const CustomContextMenuContext& context) OVERRIDE; |
| 205 virtual void NotifyMoveOrResizeStarted() OVERRIDE; | 209 virtual void NotifyMoveOrResizeStarted() OVERRIDE; |
| 206 virtual void ReloadFrame() OVERRIDE; | 210 virtual void ReloadFrame() OVERRIDE; |
| 207 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE; | 211 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE; |
| 208 virtual void SetWebUIProperty(const std::string& name, | 212 virtual void SetWebUIProperty(const std::string& name, |
| 209 const std::string& value) OVERRIDE; | 213 const std::string& value) OVERRIDE; |
| 210 virtual void SetZoomLevel(double level) OVERRIDE; | 214 virtual void SetZoomLevel(double level) OVERRIDE; |
| 211 virtual void Zoom(content::PageZoom zoom) OVERRIDE; | 215 virtual void Zoom(PageZoom zoom) OVERRIDE; |
| 212 virtual void SyncRendererPrefs() OVERRIDE; | 216 virtual void SyncRendererPrefs() OVERRIDE; |
| 213 virtual void ToggleSpeechInput() OVERRIDE; | 217 virtual void ToggleSpeechInput() OVERRIDE; |
| 214 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) OVERRIDE; | 218 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) OVERRIDE; |
| 215 | 219 |
| 216 void set_delegate(content::RenderViewHostDelegate* d) { | 220 void set_delegate(RenderViewHostDelegate* d) { |
| 217 CHECK(d); // http://crbug.com/82827 | 221 CHECK(d); // http://crbug.com/82827 |
| 218 delegate_ = d; | 222 delegate_ = d; |
| 219 } | 223 } |
| 220 | 224 |
| 221 // Set up the RenderView child process. Virtual because it is overridden by | 225 // Set up the RenderView child process. Virtual because it is overridden by |
| 222 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used | 226 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used |
| 223 // as the name of the new top-level frame. If |max_page_id| is larger than | 227 // as the name of the new top-level frame. If |max_page_id| is larger than |
| 224 // -1, the RenderView is told to start issuing page IDs at |max_page_id| + 1. | 228 // -1, the RenderView is told to start issuing page IDs at |max_page_id| + 1. |
| 225 virtual bool CreateRenderView(const string16& frame_name, int32 max_page_id); | 229 virtual bool CreateRenderView(const string16& frame_name, int32 max_page_id); |
| 226 | 230 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // Checks that the given renderer can request |url|, if not it sets it to an | 387 // Checks that the given renderer can request |url|, if not it sets it to an |
| 384 // empty url. | 388 // empty url. |
| 385 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, | 389 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, |
| 386 int renderer_id, | 390 int renderer_id, |
| 387 GURL* url); | 391 GURL* url); |
| 388 | 392 |
| 389 // NOTE: Do not add functions that just send an IPC message that are called in | 393 // NOTE: Do not add functions that just send an IPC message that are called in |
| 390 // one or two places. Have the caller send the IPC message directly. | 394 // one or two places. Have the caller send the IPC message directly. |
| 391 | 395 |
| 392 protected: | 396 protected: |
| 393 friend class content::RenderViewHostObserver; | 397 friend class RenderViewHostObserver; |
| 394 | 398 |
| 395 // Add and remove observers for filtering IPC messages. Clients must be sure | 399 // Add and remove observers for filtering IPC messages. Clients must be sure |
| 396 // to remove the observer before they go away. | 400 // to remove the observer before they go away. |
| 397 void AddObserver(content::RenderViewHostObserver* observer); | 401 void AddObserver(RenderViewHostObserver* observer); |
| 398 void RemoveObserver(content::RenderViewHostObserver* observer); | 402 void RemoveObserver(RenderViewHostObserver* observer); |
| 399 | 403 |
| 400 // RenderWidgetHost protected overrides. | 404 // RenderWidgetHost protected overrides. |
| 401 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 405 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 402 bool* is_keyboard_shortcut) OVERRIDE; | 406 bool* is_keyboard_shortcut) OVERRIDE; |
| 403 virtual void UnhandledKeyboardEvent( | 407 virtual void UnhandledKeyboardEvent( |
| 404 const NativeWebKeyboardEvent& event) OVERRIDE; | 408 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 405 virtual void OnUserGesture() OVERRIDE; | 409 virtual void OnUserGesture() OVERRIDE; |
| 406 virtual void NotifyRendererUnresponsive() OVERRIDE; | 410 virtual void NotifyRendererUnresponsive() OVERRIDE; |
| 407 virtual void NotifyRendererResponsive() OVERRIDE; | 411 virtual void NotifyRendererResponsive() OVERRIDE; |
| 408 virtual void OnRenderAutoResized(const gfx::Size& size) OVERRIDE; | 412 virtual void OnRenderAutoResized(const gfx::Size& size) OVERRIDE; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 429 WebKit::WebTextDirection title_direction); | 433 WebKit::WebTextDirection title_direction); |
| 430 void OnMsgUpdateEncoding(const std::string& encoding); | 434 void OnMsgUpdateEncoding(const std::string& encoding); |
| 431 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); | 435 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); |
| 432 void OnMsgClose(); | 436 void OnMsgClose(); |
| 433 void OnMsgRequestMove(const gfx::Rect& pos); | 437 void OnMsgRequestMove(const gfx::Rect& pos); |
| 434 void OnMsgDidStartLoading(); | 438 void OnMsgDidStartLoading(); |
| 435 void OnMsgDidStopLoading(); | 439 void OnMsgDidStopLoading(); |
| 436 void OnMsgDidChangeLoadProgress(double load_progress); | 440 void OnMsgDidChangeLoadProgress(double load_progress); |
| 437 void OnMsgDocumentAvailableInMainFrame(); | 441 void OnMsgDocumentAvailableInMainFrame(); |
| 438 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); | 442 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); |
| 439 void OnMsgContextMenu(const content::ContextMenuParams& params); | 443 void OnMsgContextMenu(const ContextMenuParams& params); |
| 440 void OnMsgToggleFullscreen(bool enter_fullscreen); | 444 void OnMsgToggleFullscreen(bool enter_fullscreen); |
| 441 void OnMsgOpenURL(const GURL& url, | 445 void OnMsgOpenURL(const GURL& url, |
| 442 const content::Referrer& referrer, | 446 const Referrer& referrer, |
| 443 WindowOpenDisposition disposition, | 447 WindowOpenDisposition disposition, |
| 444 int64 source_frame_id); | 448 int64 source_frame_id); |
| 445 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); | 449 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); |
| 446 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, | 450 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, |
| 447 bool has_vertical_scrollbar); | 451 bool has_vertical_scrollbar); |
| 448 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, | 452 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, |
| 449 bool is_pinned_to_right); | 453 bool is_pinned_to_right); |
| 450 void OnMsgDidChangeNumWheelEvents(int count); | 454 void OnMsgDidChangeNumWheelEvents(int count); |
| 451 void OnMsgSelectionChanged(const string16& text, | 455 void OnMsgSelectionChanged(const string16& text, |
| 452 size_t offset, | 456 size_t offset, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 483 const std::vector<AccessibilityHostMsg_NotificationParams>& params); | 487 const std::vector<AccessibilityHostMsg_NotificationParams>& params); |
| 484 void OnScriptEvalResponse(int id, const base::ListValue& result); | 488 void OnScriptEvalResponse(int id, const base::ListValue& result); |
| 485 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url); | 489 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url); |
| 486 void OnMediaNotification(int64 player_cookie, | 490 void OnMediaNotification(int64 player_cookie, |
| 487 bool has_video, | 491 bool has_video, |
| 488 bool has_audio, | 492 bool has_audio, |
| 489 bool is_playing); | 493 bool is_playing); |
| 490 void OnRequestDesktopNotificationPermission(const GURL& origin, | 494 void OnRequestDesktopNotificationPermission(const GURL& origin, |
| 491 int callback_id); | 495 int callback_id); |
| 492 void OnShowDesktopNotification( | 496 void OnShowDesktopNotification( |
| 493 const content::ShowDesktopNotificationHostMsgParams& params); | 497 const ShowDesktopNotificationHostMsgParams& params); |
| 494 void OnCancelDesktopNotification(int notification_id); | 498 void OnCancelDesktopNotification(int notification_id); |
| 495 void OnRunFileChooser(const content::FileChooserParams& params); | 499 void OnRunFileChooser(const FileChooserParams& params); |
| 496 void OnWebUISend(const GURL& source_url, const std::string& name, | 500 void OnWebUISend(const GURL& source_url, const std::string& name, |
| 497 const base::ListValue& args); | 501 const base::ListValue& args); |
| 498 void OnDomOperationResponse(const std::string& json_string, | 502 void OnDomOperationResponse(const std::string& json_string, |
| 499 int automation_id); | 503 int automation_id); |
| 500 | 504 |
| 501 #if defined(OS_MACOSX) | 505 #if defined(OS_MACOSX) |
| 502 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); | 506 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); |
| 503 #endif | 507 #endif |
| 504 | 508 |
| 505 private: | 509 private: |
| 506 friend class TestRenderViewHost; | 510 friend class TestRenderViewHost; |
| 507 | 511 |
| 508 // Sets whether this RenderViewHost is swapped out in favor of another, | 512 // Sets whether this RenderViewHost is swapped out in favor of another, |
| 509 // and clears any waiting state that is no longer relevant. | 513 // and clears any waiting state that is no longer relevant. |
| 510 void SetSwappedOut(bool is_swapped_out); | 514 void SetSwappedOut(bool is_swapped_out); |
| 511 | 515 |
| 512 void ClearPowerSaveBlockers(); | 516 void ClearPowerSaveBlockers(); |
| 513 | 517 |
| 514 // Our delegate, which wants to know about changes in the RenderView. | 518 // Our delegate, which wants to know about changes in the RenderView. |
| 515 content::RenderViewHostDelegate* delegate_; | 519 RenderViewHostDelegate* delegate_; |
| 516 | 520 |
| 517 // The SiteInstance associated with this RenderViewHost. All pages drawn | 521 // The SiteInstance associated with this RenderViewHost. All pages drawn |
| 518 // in this RenderViewHost are part of this SiteInstance. Should not change | 522 // in this RenderViewHost are part of this SiteInstance. Should not change |
| 519 // over time. | 523 // over time. |
| 520 scoped_refptr<SiteInstanceImpl> instance_; | 524 scoped_refptr<SiteInstanceImpl> instance_; |
| 521 | 525 |
| 522 // true if we are currently waiting for a response for drag context | 526 // true if we are currently waiting for a response for drag context |
| 523 // information. | 527 // information. |
| 524 bool waiting_for_drag_context_response_; | 528 bool waiting_for_drag_context_response_; |
| 525 | 529 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 | 595 |
| 592 // The termination status of the last render view that terminated. | 596 // The termination status of the last render view that terminated. |
| 593 base::TerminationStatus render_view_termination_status_; | 597 base::TerminationStatus render_view_termination_status_; |
| 594 | 598 |
| 595 // Holds PowerSaveBlockers for the media players in use. Key is the | 599 // Holds PowerSaveBlockers for the media players in use. Key is the |
| 596 // player_cookie passed to OnMediaNotification, value is the PowerSaveBlocker. | 600 // player_cookie passed to OnMediaNotification, value is the PowerSaveBlocker. |
| 597 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 601 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
| 598 PowerSaveBlockerMap power_save_blockers_; | 602 PowerSaveBlockerMap power_save_blockers_; |
| 599 | 603 |
| 600 // A list of observers that filter messages. Weak references. | 604 // A list of observers that filter messages. Weak references. |
| 601 ObserverList<content::RenderViewHostObserver> observers_; | 605 ObserverList<RenderViewHostObserver> observers_; |
| 602 | 606 |
| 603 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 607 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 604 }; | 608 }; |
| 605 | 609 |
| 606 #if defined(COMPILER_MSVC) | 610 #if defined(COMPILER_MSVC) |
| 607 #pragma warning(pop) | 611 #pragma warning(pop) |
| 608 #endif | 612 #endif |
| 609 | 613 |
| 614 } // namespace content |
| 615 |
| 610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 616 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |