| OLD | NEW |
| 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 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 int embedder_render_process_id); | 60 int embedder_render_process_id); |
| 61 | 61 |
| 62 // Associates the Browser Plugin with |element_instance_id| to a | 62 // Associates the Browser Plugin with |element_instance_id| to a |
| 63 // guest that has ID of |guest_instance_id| and sets initialization | 63 // guest that has ID of |guest_instance_id| and sets initialization |
| 64 // parameters, |params| for it. | 64 // parameters, |params| for it. |
| 65 void AttachGuest(int embedder_process_id, | 65 void AttachGuest(int embedder_process_id, |
| 66 int element_instance_id, | 66 int element_instance_id, |
| 67 int guest_instance_id, | 67 int guest_instance_id, |
| 68 const base::DictionaryValue& attach_params); | 68 const base::DictionaryValue& attach_params); |
| 69 | 69 |
| 70 // Relax GetGuestByInstanceID for now, so we can wildly access a guest by |
| 71 // its guest_instance_id. |
| 72 content::WebContents* GetGuestByInstanceIDHack(int guest_instance_id); |
| 73 |
| 70 // Removes the association between |element_instance_id| and a guest instance | 74 // Removes the association between |element_instance_id| and a guest instance |
| 71 // ID if one exists. | 75 // ID if one exists. |
| 72 void DetachGuest(GuestViewBase* guest); | 76 void DetachGuest(GuestViewBase* guest); |
| 73 | 77 |
| 74 // Indicates whether the |guest| is owned by an extension or Chrome App. | 78 // Indicates whether the |guest| is owned by an extension or Chrome App. |
| 75 bool IsOwnedByExtension(GuestViewBase* guest); | 79 bool IsOwnedByExtension(GuestViewBase* guest); |
| 76 | 80 |
| 77 int GetNextInstanceID(); | 81 int GetNextInstanceID(); |
| 78 int GetGuestInstanceIDForElementID( | 82 int GetGuestInstanceIDForElementID( |
| 79 int owner_process_id, | 83 int owner_process_id, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 content::BrowserContext* context_; | 213 content::BrowserContext* context_; |
| 210 | 214 |
| 211 scoped_ptr<GuestViewManagerDelegate> delegate_; | 215 scoped_ptr<GuestViewManagerDelegate> delegate_; |
| 212 | 216 |
| 213 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); | 217 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); |
| 214 }; | 218 }; |
| 215 | 219 |
| 216 } // namespace guest_view | 220 } // namespace guest_view |
| 217 | 221 |
| 218 #endif // COMPONETS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_H_ | 222 #endif // COMPONETS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_H_ |
| OLD | NEW |