| 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 EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void DetachGuest(GuestViewBase* guest, int element_instance_id); | 61 void DetachGuest(GuestViewBase* guest, int element_instance_id); |
| 62 | 62 |
| 63 int GetNextInstanceID(); | 63 int GetNextInstanceID(); |
| 64 int GetGuestInstanceIDForElementID( | 64 int GetGuestInstanceIDForElementID( |
| 65 content::WebContents* owner_web_contents, | 65 content::WebContents* owner_web_contents, |
| 66 int element_instance_id); | 66 int element_instance_id); |
| 67 | 67 |
| 68 typedef base::Callback<void(content::WebContents*)> | 68 typedef base::Callback<void(content::WebContents*)> |
| 69 WebContentsCreatedCallback; | 69 WebContentsCreatedCallback; |
| 70 void CreateGuest(const std::string& view_type, | 70 void CreateGuest(const std::string& view_type, |
| 71 const std::string& owner_extension_id, | |
| 72 content::WebContents* owner_web_contents, | 71 content::WebContents* owner_web_contents, |
| 73 const base::DictionaryValue& create_params, | 72 const base::DictionaryValue& create_params, |
| 74 const WebContentsCreatedCallback& callback); | 73 const WebContentsCreatedCallback& callback); |
| 75 | 74 |
| 76 content::WebContents* CreateGuestWithWebContentsParams( | 75 content::WebContents* CreateGuestWithWebContentsParams( |
| 77 const std::string& view_type, | 76 const std::string& view_type, |
| 78 const std::string& owner_extension_id, | |
| 79 content::WebContents* owner_web_contents, | 77 content::WebContents* owner_web_contents, |
| 80 const content::WebContents::CreateParams& create_params); | 78 const content::WebContents::CreateParams& create_params); |
| 81 | 79 |
| 82 content::SiteInstance* GetGuestSiteInstance( | 80 content::SiteInstance* GetGuestSiteInstance( |
| 83 const GURL& guest_site); | 81 const GURL& guest_site); |
| 84 | 82 |
| 85 // BrowserPluginGuestManager implementation. | 83 // BrowserPluginGuestManager implementation. |
| 86 content::WebContents* GetGuestByInstanceID( | 84 content::WebContents* GetGuestByInstanceID( |
| 87 content::WebContents* owner_web_contents, | 85 content::WebContents* owner_web_contents, |
| 88 int element_instance_id) override; | 86 int element_instance_id) override; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 std::set<int> removed_instance_ids_; | 163 std::set<int> removed_instance_ids_; |
| 166 | 164 |
| 167 content::BrowserContext* context_; | 165 content::BrowserContext* context_; |
| 168 | 166 |
| 169 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); | 167 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); |
| 170 }; | 168 }; |
| 171 | 169 |
| 172 } // namespace extensions | 170 } // namespace extensions |
| 173 | 171 |
| 174 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ | 172 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ |
| OLD | NEW |