Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Unified Diff: content/browser/browser_plugin/test_browser_plugin_guest_manager.h

Issue 258373002: Towards moving guest management to chrome: Introduce GuestViewManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_plugin/test_browser_plugin_guest_manager.h
diff --git a/content/browser/browser_plugin/test_browser_plugin_guest_manager.h b/content/browser/browser_plugin/test_browser_plugin_guest_manager.h
index d7683cf7ae9035ec9bf7bcc45922befb63784883..227eed48557a106b023ab8b17b4bb8ff9e34490f 100644
--- a/content/browser/browser_plugin/test_browser_plugin_guest_manager.h
+++ b/content/browser/browser_plugin/test_browser_plugin_guest_manager.h
@@ -22,17 +22,11 @@ class WebContentsImpl;
// BrowserPluginGuestManager to be used in tests.
class TestBrowserPluginGuestManager : public BrowserPluginGuestManager {
public:
- typedef BrowserPluginGuestManager::GuestInstanceMap GuestInstanceMap;
-
- TestBrowserPluginGuestManager();
+ explicit TestBrowserPluginGuestManager(BrowserContext* context);
virtual ~TestBrowserPluginGuestManager();
- const GuestInstanceMap& guest_web_contents_for_testing() const {
- return guest_web_contents_by_instance_id_;
- }
-
// Waits until at least one guest is added to the guest manager.
- void WaitForGuestAdded();
+ WebContents* WaitForGuestAdded();
private:
// BrowserPluginHostTest.ReloadEmbedder needs access to the GuestInstanceMap.
@@ -40,8 +34,9 @@ class TestBrowserPluginGuestManager : public BrowserPluginGuestManager {
// Overriden to intercept in test.
virtual void AddGuest(int instance_id,
- WebContentsImpl* guest_web_contents) OVERRIDE;
+ WebContents* guest_web_contents) OVERRIDE;
+ WebContents* last_guest_added_;
scoped_refptr<MessageLoopRunner> message_loop_runner_;
DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuestManager);
};

Powered by Google App Engine
This is Rietveld 408576698