OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
| 7 |
| 8 #include "content/public/browser/browser_plugin_guest_delegate.h" |
| 9 |
| 10 #include "base/callback.h" |
| 11 #include "content/public/common/page_transition_types.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class BrowserPluginGuest; |
| 16 struct Referrer; |
| 17 |
| 18 class TestBrowserPluginGuestDelegate : public BrowserPluginGuestDelegate { |
| 19 public: |
| 20 explicit TestBrowserPluginGuestDelegate(BrowserPluginGuest* guest); |
| 21 virtual ~TestBrowserPluginGuestDelegate(); |
| 22 |
| 23 void ResetStates(); |
| 24 |
| 25 private: |
| 26 void LoadURLWithParams(const GURL& url, |
| 27 const Referrer& referrer, |
| 28 PageTransition transition_type, |
| 29 WebContents* web_contents); |
| 30 |
| 31 // Overridden from BrowserPluginGuestDelegate: |
| 32 virtual void Destroy() OVERRIDE; |
| 33 virtual void NavigateGuest(const std::string& src) OVERRIDE; |
| 34 virtual void RegisterDestructionCallback( |
| 35 const DestructionCallback& callback) OVERRIDE; |
| 36 |
| 37 BrowserPluginGuest* guest_; |
| 38 |
| 39 DestructionCallback destruction_callback_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuestDelegate); |
| 42 }; |
| 43 |
| 44 } // namespace content |
| 45 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
OLD | NEW |