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

Side by Side Diff: components/guest_view/browser/guest_view_base.h

Issue 2417693002: Allow MimeHandlerViewGuest be embedded inside OOPIFs (Closed)
Patch Set: Observing life time of embedder frame Created 4 years, 1 month 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 COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ 5 #ifndef COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_
6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ 6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // This value is only valid after attachment or first navigation. 193 // This value is only valid after attachment or first navigation.
194 int proxy_routing_id() const { return guest_proxy_routing_id_; } 194 int proxy_routing_id() const { return guest_proxy_routing_id_; }
195 195
196 // Destroy this guest. 196 // Destroy this guest.
197 void Destroy(); 197 void Destroy();
198 198
199 // Saves the attach state of the custom element hosting this GuestView. 199 // Saves the attach state of the custom element hosting this GuestView.
200 void SetAttachParams(const base::DictionaryValue& params); 200 void SetAttachParams(const base::DictionaryValue& params);
201 void SetOpener(GuestViewBase* opener); 201 void SetOpener(GuestViewBase* opener);
202 202
203 // BrowserPluginGuestDelegate implementation.
204 content::RenderWidgetHost* GetOwnerRenderWidgetHost() override;
205 content::SiteInstance* GetOwnerSiteInstance() override;
206
203 protected: 207 protected:
204 explicit GuestViewBase(content::WebContents* owner_web_contents); 208 explicit GuestViewBase(content::WebContents* owner_web_contents);
205 209
206 ~GuestViewBase() override; 210 ~GuestViewBase() override;
207 211
208 // BrowserPluginGuestDelegate implementation. 212 // BrowserPluginGuestDelegate implementation.
209 void SetContextMenuPosition(const gfx::Point& position) override; 213 void SetContextMenuPosition(const gfx::Point& position) override;
210 214
215 // Notifies the guest the a given RenderFrameHost in the owner WebContents is
216 // deleted. this is needed.
217 virtual void OnRenderFrameHostDeleted(int process_id, int routing_id);
218
211 // WebContentsDelegate implementation. 219 // WebContentsDelegate implementation.
212 void HandleKeyboardEvent( 220 void HandleKeyboardEvent(
213 content::WebContents* source, 221 content::WebContents* source,
214 const content::NativeWebKeyboardEvent& event) override; 222 const content::NativeWebKeyboardEvent& event) override;
215 bool PreHandleGestureEvent(content::WebContents* source, 223 bool PreHandleGestureEvent(content::WebContents* source,
216 const blink::WebGestureEvent& event) override; 224 const blink::WebGestureEvent& event) override;
217 void FindReply(content::WebContents* source, 225 void FindReply(content::WebContents* source,
218 int request_id, 226 int request_id,
219 int number_of_matches, 227 int number_of_matches,
220 const gfx::Rect& selection_rect, 228 const gfx::Rect& selection_rect,
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // This is used to ensure pending tasks will not fire after this object is 487 // This is used to ensure pending tasks will not fire after this object is
480 // destroyed. 488 // destroyed.
481 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; 489 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_;
482 490
483 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); 491 DISALLOW_COPY_AND_ASSIGN(GuestViewBase);
484 }; 492 };
485 493
486 } // namespace guest_view 494 } // namespace guest_view
487 495
488 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ 496 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_
OLDNEW
« no previous file with comments | « chrome/test/data/page_with_embedded_pdf.html ('k') | components/guest_view/browser/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698