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

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

Issue 2417693002: Allow MimeHandlerViewGuest be embedded inside OOPIFs (Closed)
Patch Set: Fixed an input routing issue with nested browser plugings 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::RenderFrameHost* GetOwnerFrame() override;
205
203 protected: 206 protected:
204 explicit GuestViewBase(content::WebContents* owner_web_contents); 207 explicit GuestViewBase(content::WebContents* owner_web_contents);
205 208
206 ~GuestViewBase() override; 209 ~GuestViewBase() override;
207 210
208 // BrowserPluginGuestDelegate implementation. 211 // BrowserPluginGuestDelegate implementation.
209 void SetContextMenuPosition(const gfx::Point& position) override; 212 void SetContextMenuPosition(const gfx::Point& position) override;
210 213
211 // WebContentsDelegate implementation. 214 // WebContentsDelegate implementation.
212 void HandleKeyboardEvent( 215 void HandleKeyboardEvent(
(...skipping 266 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 482 // This is used to ensure pending tasks will not fire after this object is
480 // destroyed. 483 // destroyed.
481 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; 484 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_;
482 485
483 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); 486 DISALLOW_COPY_AND_ASSIGN(GuestViewBase);
484 }; 487 };
485 488
486 } // namespace guest_view 489 } // namespace guest_view
487 490
488 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ 491 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698