blob: c63a2ddbb0c0d6846896a6628a39aee3fd79bbd6 [file] [log] [blame]
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
#define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
#include "content/common/content_export.h"
#include "content/public/browser/web_contents.h"
namespace content {
// Objects implement this interface to get notified about changes in the guest
// WebContents and to provide necessary functionality.
class CONTENT_EXPORT BrowserPluginGuestDelegate {
public:
virtual ~BrowserPluginGuestDelegate() {}
virtual std::unique_ptr<WebContents> CreateNewGuestWindow(
const WebContents::CreateParams& create_params);
// Returns the WebContents that currently owns this guest.
virtual WebContents* GetOwnerWebContents();
};
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_