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

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

Issue 2417693002: Allow MimeHandlerViewGuest be embedded inside OOPIFs (Closed)
Patch Set: Rebase and nits Created 4 years, 2 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 COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_H_ 5 #ifndef COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_H_
6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_H_ 6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 // Returns the guest WebContents associated with the given |guest_instance_id| 56 // Returns the guest WebContents associated with the given |guest_instance_id|
57 // if the provided |embedder_render_process_id| is allowed to access it. 57 // if the provided |embedder_render_process_id| is allowed to access it.
58 // If the embedder is not allowed access, the embedder will be killed, and 58 // If the embedder is not allowed access, the embedder will be killed, and
59 // this method will return NULL. If no WebContents exists with the given 59 // this method will return NULL. If no WebContents exists with the given
60 // instance ID, then NULL will also be returned. 60 // instance ID, then NULL will also be returned.
61 content::WebContents* GetGuestByInstanceIDSafely( 61 content::WebContents* GetGuestByInstanceIDSafely(
62 int guest_instance_id, 62 int guest_instance_id,
63 int embedder_render_process_id); 63 int embedder_render_process_id);
64 64
65 // Associates the Browser Plugin with |element_instance_id| to a 65 // Associates the Browser Plugin with |element_instance_id| to a guest that
lfg 2016/10/20 22:50:49 No need to change this.
EhsanK 2016/10/25 19:30:50 Acknowledged.
66 // guest that has ID of |guest_instance_id| and sets initialization 66 // has ID of |guest_instance_id| and sets initialization parameters, |params|
67 // parameters, |params| for it. 67 // for it.
68 void AttachGuest(int embedder_process_id, 68 void AttachGuest(int embedder_process_id,
69 int element_instance_id, 69 int element_instance_id,
70 int guest_instance_id, 70 int guest_instance_id,
71 const base::DictionaryValue& attach_params); 71 const base::DictionaryValue& attach_params);
72 72
73 // Removes the association between |element_instance_id| and a guest instance 73 // Removes the association between |element_instance_id| and a guest instance
74 // ID if one exists. 74 // ID if one exists.
75 void DetachGuest(GuestViewBase* guest); 75 void DetachGuest(GuestViewBase* guest);
76 76
77 // Indicates whether the |guest| is owned by an extension or Chrome App. 77 // Indicates whether the |guest| is owned by an extension or Chrome App.
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // call into this GuestViewManager after it has been destroyed. 270 // call into this GuestViewManager after it has been destroyed.
271 base::WeakPtrFactory<GuestViewManager> weak_ptr_factory_; 271 base::WeakPtrFactory<GuestViewManager> weak_ptr_factory_;
272 272
273 private: 273 private:
274 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); 274 DISALLOW_COPY_AND_ASSIGN(GuestViewManager);
275 }; 275 };
276 276
277 } // namespace guest_view 277 } // namespace guest_view
278 278
279 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_H_ 279 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698