| 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
|
| index 5839f014deadfbaa978c3ad7ef065278b5fad067..8ee92588d853162abb64bf4ceece74dd8fe5e324 100644
|
| --- a/content/browser/browser_plugin/test_browser_plugin_guest_delegate.h
|
| +++ b/content/browser/browser_plugin/test_browser_plugin_guest_delegate.h
|
| @@ -7,43 +7,30 @@
|
|
|
| #include "content/public/browser/browser_plugin_guest_delegate.h"
|
|
|
| +#include "content/public/common/page_transition_types.h"
|
| +
|
| namespace content {
|
|
|
| +class BrowserPluginGuest;
|
| +struct Referrer;
|
| +
|
| class TestBrowserPluginGuestDelegate : public BrowserPluginGuestDelegate {
|
| public:
|
| - TestBrowserPluginGuestDelegate();
|
| + explicit TestBrowserPluginGuestDelegate(BrowserPluginGuest* guest);
|
| virtual ~TestBrowserPluginGuestDelegate();
|
|
|
| void ResetStates();
|
|
|
| - bool load_aborted() const { return load_aborted_; }
|
| - const GURL& load_aborted_url() const { return load_aborted_url_; }
|
| -
|
| private:
|
| + void LoadURLWithParams(const GURL& url,
|
| + const Referrer& referrer,
|
| + PageTransition transition_type,
|
| + WebContents* web_contents);
|
| +
|
| // Overridden from BrowserPluginGuestDelegate:
|
| - virtual void AddMessageToConsole(int32 level,
|
| - const base::string16& message,
|
| - int32 line_no,
|
| - const base::string16& source_id) OVERRIDE;
|
| - virtual void Close() OVERRIDE;
|
| - virtual void GuestProcessGone(base::TerminationStatus status) OVERRIDE;
|
| - virtual bool HandleKeyboardEvent(
|
| - const NativeWebKeyboardEvent& event) OVERRIDE;
|
| - virtual void LoadAbort(bool is_top_level,
|
| - const GURL& url,
|
| - const std::string& error_type) OVERRIDE;
|
| - virtual void RendererResponsive() OVERRIDE;
|
| - virtual void RendererUnresponsive() OVERRIDE;
|
| - virtual void RequestPermission(
|
| - BrowserPluginPermissionType permission_type,
|
| - const base::DictionaryValue& request_info,
|
| - const PermissionResponseCallback& callback,
|
| - bool allowed_by_default) OVERRIDE;
|
| - virtual void SizeChanged(const gfx::Size& old_size,
|
| - const gfx::Size& new_size) OVERRIDE;
|
| -
|
| - bool load_aborted_;
|
| - GURL load_aborted_url_;
|
| + virtual void NavigateGuest(const std::string& src) OVERRIDE;
|
| +
|
| + BrowserPluginGuest* guest_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuestDelegate);
|
| };
|
|
|