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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 1875463002: Remove unused fields from //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scythe-root
Patch Set: Fixed Ozone build. Created 4 years, 8 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
7 7
8 #include "third_party/WebKit/public/web/WebPlugin.h" 8 #include "third_party/WebKit/public/web/WebPlugin.h"
9 9
10 #include <memory> 10 #include <memory>
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // This indicates whether this BrowserPlugin has been attached to a 167 // This indicates whether this BrowserPlugin has been attached to a
168 // WebContents and is ready to receive IPCs. 168 // WebContents and is ready to receive IPCs.
169 bool attached_; 169 bool attached_;
170 // We cache the |render_frame_routing_id| because we need it on destruction. 170 // We cache the |render_frame_routing_id| because we need it on destruction.
171 // If the RenderFrame is destroyed before the BrowserPlugin is destroyed 171 // If the RenderFrame is destroyed before the BrowserPlugin is destroyed
172 // then we will attempt to access a nullptr. 172 // then we will attempt to access a nullptr.
173 const int render_frame_routing_id_; 173 const int render_frame_routing_id_;
174 blink::WebPluginContainer* container_; 174 blink::WebPluginContainer* container_;
175 // The plugin's rect in css pixels. 175 // The plugin's rect in css pixels.
176 gfx::Rect view_rect_; 176 gfx::Rect view_rect_;
177 // Bitmap for crashed plugin. Lazily initialized, non-owning pointer.
178 SkBitmap* sad_guest_;
179 bool guest_crashed_; 177 bool guest_crashed_;
180 bool plugin_focused_; 178 bool plugin_focused_;
181 // Tracks the visibility of the browser plugin regardless of the whole 179 // Tracks the visibility of the browser plugin regardless of the whole
182 // embedder RenderView's visibility. 180 // embedder RenderView's visibility.
183 bool visible_; 181 bool visible_;
184 182
185 WebCursor cursor_; 183 WebCursor cursor_;
186 184
187 bool mouse_locked_; 185 bool mouse_locked_;
188 186
189 // This indicates that the BrowserPlugin has a geometry. 187 // This indicates that the BrowserPlugin has a geometry.
190 bool ready_; 188 bool ready_;
191 189
192 // Used for HW compositing. 190 // Used for HW compositing.
193 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; 191 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_;
194 192
195 // URL for the embedder frame. 193 // URL for the embedder frame.
196 int browser_plugin_instance_id_; 194 int browser_plugin_instance_id_;
197 195
198 // Indicates whether the guest content is opaque.
199 bool contents_opaque_;
200
201 std::vector<EditCommand> edit_commands_; 196 std::vector<EditCommand> edit_commands_;
202 197
203 // We call lifetime managing methods on |delegate_|, but we do not directly 198 // We call lifetime managing methods on |delegate_|, but we do not directly
204 // own this. The delegate destroys itself. 199 // own this. The delegate destroys itself.
205 base::WeakPtr<BrowserPluginDelegate> delegate_; 200 base::WeakPtr<BrowserPluginDelegate> delegate_;
206 201
207 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 202 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
208 // get called after BrowserPlugin has been destroyed. 203 // get called after BrowserPlugin has been destroyed.
209 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 204 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
210 205
211 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 206 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
212 }; 207 };
213 208
214 } // namespace content 209 } // namespace content
215 210
216 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 211 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698