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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698