| Index: content/public/browser/browser_plugin_guest_manager_delegate.h
|
| diff --git a/content/public/browser/browser_plugin_guest_manager_delegate.h b/content/public/browser/browser_plugin_guest_manager_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a13be77d95c803948e1cb3c7c1619ec6d758eecf
|
| --- /dev/null
|
| +++ b/content/public/browser/browser_plugin_guest_manager_delegate.h
|
| @@ -0,0 +1,54 @@
|
| +// Copyright 2014 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_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_DELEGATE_H_
|
| +#define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_DELEGATE_H_
|
| +
|
| +#include "base/callback.h"
|
| +#include "build/build_config.h"
|
| +#include "content/common/content_export.h"
|
| +
|
| +class GURL;
|
| +
|
| +namespace content {
|
| +
|
| +class SiteInstance;
|
| +class WebContents;
|
| +
|
| +class CONTENT_EXPORT BrowserPluginGuestManagerDelegate {
|
| + public:
|
| + virtual ~BrowserPluginGuestManagerDelegate() {}
|
| +
|
| + virtual int GetNextInstanceID();
|
| +
|
| + virtual void AddGuest(int guest_instance_id,
|
| + WebContents* guest_web_contents) {}
|
| +
|
| + virtual void RemoveGuest(int guest_instance_id) {}
|
| +
|
| + virtual WebContents* GetGuestByInstanceID(int guest_instance_id,
|
| + int embedder_render_process_id);
|
| +
|
| + virtual bool CanEmbedderAccessInstanceID(int embedder_render_process_id,
|
| + int guest_instance_id);
|
| +
|
| + virtual bool CanEmbedderAccessInstanceIDMaybeKill(
|
| + int embedder_render_process_id,
|
| + int guest_instance_id);
|
| +
|
| + virtual content::SiteInstance* GetGuestSiteInstance(const GURL& guest_site);
|
| +
|
| + typedef base::Callback<bool(WebContents*)> GuestCallback;
|
| + virtual bool ForEachGuest(WebContents* embedder_web_contents,
|
| + const GuestCallback& callback);
|
| +
|
| + typedef base::Callback<void(int)> InstanceIDResponseCallback;
|
| + virtual void RequestInstanceID(const std::string& src,
|
| + const InstanceIDResponseCallback& callback) {}
|
| +
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_DELEGATE_H_
|
|
|