| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual bool ForEachGuest(content::WebContents* embedder_web_contents, | 87 virtual bool ForEachGuest(content::WebContents* embedder_web_contents, |
| 88 const GuestCallback& callback) OVERRIDE; | 88 const GuestCallback& callback) OVERRIDE; |
| 89 protected: | 89 protected: |
| 90 friend class GuestViewBase; | 90 friend class GuestViewBase; |
| 91 FRIEND_TEST_ALL_PREFIXES(GuestViewManagerTest, AddRemove); | 91 FRIEND_TEST_ALL_PREFIXES(GuestViewManagerTest, AddRemove); |
| 92 | 92 |
| 93 // Can be overriden in tests. | 93 // Can be overriden in tests. |
| 94 virtual void AddGuest(int guest_instance_id, | 94 virtual void AddGuest(int guest_instance_id, |
| 95 content::WebContents* guest_web_contents); | 95 content::WebContents* guest_web_contents); |
| 96 | 96 |
| 97 void RemoveGuest(int guest_instance_id); | 97 // Can be overriden in tests. |
| 98 virtual void RemoveGuest(int guest_instance_id); |
| 98 | 99 |
| 99 content::WebContents* GetGuestByInstanceID(int guest_instance_id); | 100 content::WebContents* GetGuestByInstanceID(int guest_instance_id); |
| 100 | 101 |
| 101 bool CanEmbedderAccessInstanceIDMaybeKill( | 102 bool CanEmbedderAccessInstanceIDMaybeKill( |
| 102 int embedder_render_process_id, | 103 int embedder_render_process_id, |
| 103 int guest_instance_id); | 104 int guest_instance_id); |
| 104 | 105 |
| 105 bool CanEmbedderAccessInstanceID(int embedder_render_process_id, | 106 bool CanEmbedderAccessInstanceID(int embedder_render_process_id, |
| 106 int guest_instance_id); | 107 int guest_instance_id); |
| 107 | 108 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 std::set<int> removed_instance_ids_; | 151 std::set<int> removed_instance_ids_; |
| 151 | 152 |
| 152 content::BrowserContext* context_; | 153 content::BrowserContext* context_; |
| 153 | 154 |
| 154 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); | 155 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 } // namespace extensions | 158 } // namespace extensions |
| 158 | 159 |
| 159 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ | 160 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ |
| OLD | NEW |