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 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 const GURL& guest_site); | 121 const GURL& guest_site); |
122 | 122 |
123 // BrowserPluginGuestManager implementation. | 123 // BrowserPluginGuestManager implementation. |
124 content::WebContents* GetGuestByInstanceID( | 124 content::WebContents* GetGuestByInstanceID( |
125 int owner_process_id, | 125 int owner_process_id, |
126 int element_instance_id) override; | 126 int element_instance_id) override; |
127 bool ForEachGuest(content::WebContents* owner_web_contents, | 127 bool ForEachGuest(content::WebContents* owner_web_contents, |
128 const GuestCallback& callback) override; | 128 const GuestCallback& callback) override; |
129 content::WebContents* GetFullPageGuest( | 129 content::WebContents* GetFullPageGuest( |
130 content::WebContents* embedder_web_contents) override; | 130 content::WebContents* embedder_web_contents) override; |
| 131 bool IsForMimeHandlerViewGuest(content::WebContents* web_contents) override; |
131 | 132 |
132 protected: | 133 protected: |
133 friend class GuestViewBase; | 134 friend class GuestViewBase; |
134 friend class GuestViewEvent; | 135 friend class GuestViewEvent; |
135 friend class GuestViewMessageFilter; | 136 friend class GuestViewMessageFilter; |
136 | 137 |
137 class EmbedderRenderProcessHostObserver; | 138 class EmbedderRenderProcessHostObserver; |
138 | 139 |
139 // These methods are virtual so that they can be overriden in tests. | 140 // These methods are virtual so that they can be overriden in tests. |
140 | 141 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 // call into this GuestViewManager after it has been destroyed. | 271 // call into this GuestViewManager after it has been destroyed. |
271 base::WeakPtrFactory<GuestViewManager> weak_ptr_factory_; | 272 base::WeakPtrFactory<GuestViewManager> weak_ptr_factory_; |
272 | 273 |
273 private: | 274 private: |
274 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); | 275 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); |
275 }; | 276 }; |
276 | 277 |
277 } // namespace guest_view | 278 } // namespace guest_view |
278 | 279 |
279 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_H_ | 280 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_H_ |
OLD | NEW |