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 CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ |
6 #define CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ | 6 #define CHROME_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 25 matching lines...) Expand all Loading... |
36 // this method will return NULL. If no WebContents exists with the given | 36 // this method will return NULL. If no WebContents exists with the given |
37 // instance ID, then NULL will also be returned. | 37 // instance ID, then NULL will also be returned. |
38 content::WebContents* GetGuestByInstanceIDSafely( | 38 content::WebContents* GetGuestByInstanceIDSafely( |
39 int guest_instance_id, | 39 int guest_instance_id, |
40 int embedder_render_process_id); | 40 int embedder_render_process_id); |
41 | 41 |
42 // BrowserPluginGuestManager implementation. | 42 // BrowserPluginGuestManager implementation. |
43 virtual content::WebContents* CreateGuest( | 43 virtual content::WebContents* CreateGuest( |
44 content::SiteInstance* embedder_site_instance, | 44 content::SiteInstance* embedder_site_instance, |
45 int instance_id, | 45 int instance_id, |
46 const std::string& storage_partition_id, | |
47 bool persist_storage, | |
48 scoped_ptr<base::DictionaryValue> extra_params) OVERRIDE; | 46 scoped_ptr<base::DictionaryValue> extra_params) OVERRIDE; |
49 virtual int GetNextInstanceID() OVERRIDE; | 47 virtual int GetNextInstanceID() OVERRIDE; |
50 virtual void MaybeGetGuestByInstanceIDOrKill( | 48 virtual void MaybeGetGuestByInstanceIDOrKill( |
51 int guest_instance_id, | 49 int guest_instance_id, |
52 int embedder_render_process_id, | 50 int embedder_render_process_id, |
53 const GuestByInstanceIDCallback& callback) OVERRIDE; | 51 const GuestByInstanceIDCallback& callback) OVERRIDE; |
54 virtual bool ForEachGuest(content::WebContents* embedder_web_contents, | 52 virtual bool ForEachGuest(content::WebContents* embedder_web_contents, |
55 const GuestCallback& callback) OVERRIDE; | 53 const GuestCallback& callback) OVERRIDE; |
56 | 54 |
57 private: | 55 private: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // The remaining instance IDs that are greater than | 105 // The remaining instance IDs that are greater than |
108 // |last_instance_id_removed_| are kept here. | 106 // |last_instance_id_removed_| are kept here. |
109 std::set<int> removed_instance_ids_; | 107 std::set<int> removed_instance_ids_; |
110 | 108 |
111 content::BrowserContext* context_; | 109 content::BrowserContext* context_; |
112 | 110 |
113 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); | 111 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); |
114 }; | 112 }; |
115 | 113 |
116 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ | 114 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ |
OLD | NEW |