| Index: content/public/browser/web_contents_delegate.h
|
| diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
|
| index 5a339aec3d06e456acf4cd0e72c0c92ab85b4295..b4cb57b78eec43a0e57369a654f25e9ff1198136 100644
|
| --- a/content/public/browser/web_contents_delegate.h
|
| +++ b/content/public/browser/web_contents_delegate.h
|
| @@ -57,6 +57,10 @@ struct WebIntentData;
|
| struct WebIntentServiceData;
|
| }
|
|
|
| +namespace WebKit {
|
| +class WebLayer;
|
| +}
|
| +
|
| namespace content {
|
|
|
| struct OpenURLParams;
|
| @@ -307,12 +311,6 @@ class CONTENT_EXPORT WebContentsDelegate {
|
| // changed.
|
| virtual void ContentRestrictionsChanged(WebContents* source) {}
|
|
|
| -#if defined(OS_ANDROID)
|
| - // Returns true if the delegate wants to handle the url instead. Default
|
| - // returns false.
|
| - virtual bool ShouldOverrideLoading(const GURL& url);
|
| -#endif
|
| -
|
| // Notification that the tab is hung.
|
| virtual void RendererUnresponsive(WebContents* source) {}
|
|
|
| @@ -428,6 +426,22 @@ class CONTENT_EXPORT WebContentsDelegate {
|
| const MediaStreamRequest* request,
|
| const MediaResponseCallback& callback) {}
|
|
|
| +#if defined(OS_ANDROID)
|
| + // Returns true if the delegate wants to handle the url instead. Default
|
| + // returns false.
|
| + virtual bool ShouldOverrideLoading(const GURL& url);
|
| +
|
| + // Called when a compositing layer becomes available for this web contents
|
| + // so the delegate can add it to the layer tree.
|
| + virtual void AttachLayer(WebContents* web_contents,
|
| + WebKit::WebLayer* layer) {}
|
| +
|
| + // Called before a compositing layer becomes invalid so the delegate can
|
| + // remove it from the layer tree.
|
| + virtual void RemoveLayer(WebContents* web_contents,
|
| + WebKit::WebLayer* layer) {}
|
| +#endif
|
| +
|
| protected:
|
| virtual ~WebContentsDelegate();
|
|
|
|
|