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

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

Issue 261363002: Rename BrowserPluginGuestManagerDelegate to BrowserPluginGuestManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_cleanupguestmanager
Patch Set: Fixed Android Build (Hopefully) 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_guest_manager_delegate.h
diff --git a/content/browser/browser_plugin/test_guest_manager_delegate.h b/content/browser/browser_plugin/test_guest_manager_delegate.h
deleted file mode 100644
index 3adcee1a904b35728b259677ce5a60172f683f4e..0000000000000000000000000000000000000000
--- a/content/browser/browser_plugin/test_guest_manager_delegate.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_BROWSER_PLUGIN_TEST_GUEST_MANAGER_DELEGATE_H_
-#define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_GUEST_MANAGER_DELEGATE_H_
-
-#include <map>
-
-#include "base/memory/singleton.h"
-#include "content/public/browser/browser_plugin_guest_manager_delegate.h"
-
-namespace content {
-
-class MessageLoopRunner;
-class WebContentsImpl;
-
-// This class is temporary until BrowserPluginHostTest.* tests are entirely
-// moved out of content.
-class TestGuestManagerDelegate : public BrowserPluginGuestManagerDelegate {
- public:
- virtual ~TestGuestManagerDelegate();
-
- static TestGuestManagerDelegate* GetInstance();
-
- void AddGuest(int guest_instance_id, WebContents* guest_web_contents);
- void RemoveGuest(int guest_instance_id);
- SiteInstance* GetGuestSiteInstance(const GURL& guest_site);
-
- // Waits until at least one guest is added to this guest manager.
- WebContentsImpl* WaitForGuestAdded();
-
- // BrowserPluginGuestManagerDelegate implementation.
- virtual content::WebContents* CreateGuest(
- content::SiteInstance* embedder_site_instance,
- int instance_id,
- const std::string& storage_partition_id,
- bool persist_storage,
- scoped_ptr<base::DictionaryValue> extra_params) OVERRIDE;
- virtual int GetNextInstanceID() OVERRIDE;
- virtual void MaybeGetGuestByInstanceIDOrKill(
- int guest_instance_id,
- int embedder_render_process_id,
- const GuestByInstanceIDCallback& callback) OVERRIDE;
- virtual bool ForEachGuest(WebContents* embedder_web_contents,
- const GuestCallback& callback) OVERRIDE;
-
- private:
- friend struct DefaultSingletonTraits<TestGuestManagerDelegate>;
- TestGuestManagerDelegate();
-
- // Contains guests' WebContents, mapping from their instance ids.
- typedef std::map<int, WebContents*> GuestInstanceMap;
- GuestInstanceMap guest_web_contents_by_instance_id_;
- WebContentsImpl* last_guest_added_;
- int next_instance_id_;
- scoped_refptr<MessageLoopRunner> message_loop_runner_;
-
- DISALLOW_COPY_AND_ASSIGN(TestGuestManagerDelegate);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_GUEST_MANAGER_DELEGATE_H_
« no previous file with comments | « content/browser/browser_plugin/test_guest_manager.cc ('k') | content/browser/browser_plugin/test_guest_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698