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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 16256018: Update content/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix incorrectly modified code Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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 // A BrowserPluginGuest is the browser side of a browser <--> embedder 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder
7 // renderer side of browser <--> embedder renderer communication. 7 // renderer side of browser <--> embedder renderer communication.
8 // 8 //
9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a
10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 WebContentsImpl* embedder_web_contents() const { 126 WebContentsImpl* embedder_web_contents() const {
127 return embedder_web_contents_; 127 return embedder_web_contents_;
128 } 128 }
129 129
130 RenderWidgetHostView* GetEmbedderRenderWidgetHostView(); 130 RenderWidgetHostView* GetEmbedderRenderWidgetHostView();
131 131
132 bool focused() const { return focused_; } 132 bool focused() const { return focused_; }
133 bool visible() const { return guest_visible_; } 133 bool visible() const { return guest_visible_; }
134 void clear_damage_buffer() { damage_buffer_.reset(); } 134 void clear_damage_buffer() { damage_buffer_.reset(); }
135 135
136 BrowserPluginGuest* opener() const { return opener_; } 136 BrowserPluginGuest* opener() const { return opener_.get(); }
137 137
138 void UpdateVisibility(); 138 void UpdateVisibility();
139 139
140 // NotificationObserver implementation. 140 // NotificationObserver implementation.
141 virtual void Observe(int type, 141 virtual void Observe(int type,
142 const NotificationSource& source, 142 const NotificationSource& source,
143 const NotificationDetails& details) OVERRIDE; 143 const NotificationDetails& details) OVERRIDE;
144 144
145 // WebContentsObserver implementation. 145 // WebContentsObserver implementation.
146 virtual void DidStartProvisionalLoadForFrame( 146 virtual void DidStartProvisionalLoadForFrame(
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 // This is a queue of messages that are destined to be sent to the embedder 505 // This is a queue of messages that are destined to be sent to the embedder
506 // once the guest is attached to a particular embedder. 506 // once the guest is attached to a particular embedder.
507 std::queue<IPC::Message*> pending_messages_; 507 std::queue<IPC::Message*> pending_messages_;
508 508
509 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 509 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
510 }; 510 };
511 511
512 } // namespace content 512 } // namespace content
513 513
514 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 514 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.cc ('k') | content/browser/download/download_request_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698