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

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

Issue 272573005: <webview>: Move NewWindow API to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_rename
Patch Set: Merge with ToT 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_delegate.h
diff --git a/content/browser/browser_plugin/test_browser_plugin_guest_delegate.h b/content/browser/browser_plugin/test_browser_plugin_guest_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..3bbc23c0e00afc04d9d79efa5b07d0911086dd1c
--- /dev/null
+++ b/content/browser/browser_plugin/test_browser_plugin_guest_delegate.h
@@ -0,0 +1,45 @@
+// Copyright 2013 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_BROWSER_PLUGIN_GUEST_DELEGATE_H_
+#define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_
+
+#include "content/public/browser/browser_plugin_guest_delegate.h"
+
+#include "base/callback.h"
+#include "content/public/common/page_transition_types.h"
+
+namespace content {
+
+class BrowserPluginGuest;
+struct Referrer;
+
+class TestBrowserPluginGuestDelegate : public BrowserPluginGuestDelegate {
+ public:
+ explicit TestBrowserPluginGuestDelegate(BrowserPluginGuest* guest);
+ virtual ~TestBrowserPluginGuestDelegate();
+
+ void ResetStates();
+
+ private:
+ void LoadURLWithParams(const GURL& url,
+ const Referrer& referrer,
+ PageTransition transition_type,
+ WebContents* web_contents);
+
+ // Overridden from BrowserPluginGuestDelegate:
+ virtual void Destroy() OVERRIDE;
+ virtual void NavigateGuest(const std::string& src) OVERRIDE;
+ virtual void RegisterDestructionCallback(
+ const DestructionCallback& callback) OVERRIDE;
+
+ BrowserPluginGuest* guest_;
+
+ DestructionCallback destruction_callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuestDelegate);
+};
+
+} // namespace content
+#endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698