Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: content/browser/frame_host/cross_process_frame_connector.h

Issue 2112923002: Fix crash when destroying a RenderWidgetHost that holds the pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: send privileged request through webcontents Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // Determines whether the root RenderWidgetHostView (and thus the current 107 // Determines whether the root RenderWidgetHostView (and thus the current
108 // page) has focus. 108 // page) has focus.
109 bool HasFocus(); 109 bool HasFocus();
110 // Focuses the root RenderWidgetHostView. 110 // Focuses the root RenderWidgetHostView.
111 void FocusRootView(); 111 void FocusRootView();
112 112
113 // Locks the mouse. Returns true if mouse is locked. 113 // Locks the mouse. Returns true if mouse is locked.
114 bool LockMouse(); 114 bool LockMouse();
115 115
116 // Unlocks the mouse if the mouse is locked.
117 void UnlockMouse();
118
116 // Returns the parent RenderWidgetHostView or nullptr it it doesn't have one. 119 // Returns the parent RenderWidgetHostView or nullptr it it doesn't have one.
117 virtual RenderWidgetHostViewBase* GetParentRenderWidgetHostView(); 120 virtual RenderWidgetHostViewBase* GetParentRenderWidgetHostView();
118 121
119 // Returns the view for the top-level frame under the same WebContents. 122 // Returns the view for the top-level frame under the same WebContents.
120 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); 123 RenderWidgetHostViewBase* GetRootRenderWidgetHostView();
121 124
122 // Exposed for tests. 125 // Exposed for tests.
123 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { 126 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() {
124 return GetRootRenderWidgetHostView(); 127 return GetRootRenderWidgetHostView();
125 } 128 }
(...skipping 19 matching lines...) Expand all
145 RenderWidgetHostViewChildFrame* view_; 148 RenderWidgetHostViewChildFrame* view_;
146 149
147 gfx::Rect child_frame_rect_; 150 gfx::Rect child_frame_rect_;
148 float device_scale_factor_; 151 float device_scale_factor_;
149 }; 152 };
150 153
151 } // namespace content 154 } // namespace content
152 155
153 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 156 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
154 157
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698