| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 blink::WebFrame* frame, | 123 blink::WebFrame* frame, |
| 124 const blink::WebURLRequest& failed_request, | 124 const blink::WebURLRequest& failed_request, |
| 125 const blink::WebURLError& error, | 125 const blink::WebURLError& error, |
| 126 const std::string& accept_languages, | 126 const std::string& accept_languages, |
| 127 std::string* error_html, | 127 std::string* error_html, |
| 128 base::string16* error_description) {} | 128 base::string16* error_description) {} |
| 129 | 129 |
| 130 // Allows the embedder to control when media resources are loaded. Embedders | 130 // Allows the embedder to control when media resources are loaded. Embedders |
| 131 // can run |closure| immediately if they don't wish to defer media resource | 131 // can run |closure| immediately if they don't wish to defer media resource |
| 132 // loading. | 132 // loading. |
| 133 virtual void DeferMediaLoad(RenderView* render_view, | 133 virtual void DeferMediaLoad(RenderFrame* render_frame, |
| 134 const base::Closure& closure); | 134 const base::Closure& closure); |
| 135 | 135 |
| 136 // Allows the embedder to override creating a WebMediaStreamCenter. If it | 136 // Allows the embedder to override creating a WebMediaStreamCenter. If it |
| 137 // returns NULL the content layer will create the stream center. | 137 // returns NULL the content layer will create the stream center. |
| 138 virtual blink::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( | 138 virtual blink::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( |
| 139 blink::WebMediaStreamCenterClient* client); | 139 blink::WebMediaStreamCenterClient* client); |
| 140 | 140 |
| 141 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If | 141 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If |
| 142 // it returns NULL the content layer will create the connection handler. | 142 // it returns NULL the content layer will create the connection handler. |
| 143 virtual blink::WebRTCPeerConnectionHandler* | 143 virtual blink::WebRTCPeerConnectionHandler* |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 virtual void WillReleaseScriptContext(blink::WebFrame* frame, | 222 virtual void WillReleaseScriptContext(blink::WebFrame* frame, |
| 223 v8::Handle<v8::Context>, | 223 v8::Handle<v8::Context>, |
| 224 int world_id) {} | 224 int world_id) {} |
| 225 | 225 |
| 226 // See blink::Platform. | 226 // See blink::Platform. |
| 227 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 227 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
| 228 size_t length); | 228 size_t length); |
| 229 virtual bool IsLinkVisited(unsigned long long link_hash); | 229 virtual bool IsLinkVisited(unsigned long long link_hash); |
| 230 virtual blink::WebPrescientNetworking* GetPrescientNetworking(); | 230 virtual blink::WebPrescientNetworking* GetPrescientNetworking(); |
| 231 virtual bool ShouldOverridePageVisibilityState( | 231 virtual bool ShouldOverridePageVisibilityState( |
| 232 const RenderView* render_view, | 232 const RenderFrame* render_frame, |
| 233 blink::WebPageVisibilityState* override_state); | 233 blink::WebPageVisibilityState* override_state); |
| 234 | 234 |
| 235 // Return true if the GetCookie request will be handled by the embedder. | 235 // Return true if the GetCookie request will be handled by the embedder. |
| 236 // Cookies are returned in the cookie parameter. | 236 // Cookies are returned in the cookie parameter. |
| 237 virtual bool HandleGetCookieRequest(RenderView* sender, | 237 virtual bool HandleGetCookieRequest(RenderView* sender, |
| 238 const GURL& url, | 238 const GURL& url, |
| 239 const GURL& first_party_for_cookies, | 239 const GURL& first_party_for_cookies, |
| 240 std::string* cookies); | 240 std::string* cookies); |
| 241 | 241 |
| 242 // Return true if the SetCookie request will be handled by the embedder. | 242 // Return true if the SetCookie request will be handled by the embedder. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 // Creates a permission client proxy for in-renderer worker. | 279 // Creates a permission client proxy for in-renderer worker. |
| 280 virtual blink::WebWorkerPermissionClientProxy* | 280 virtual blink::WebWorkerPermissionClientProxy* |
| 281 CreateWorkerPermissionClientProxy(RenderView* render_view, | 281 CreateWorkerPermissionClientProxy(RenderView* render_view, |
| 282 blink::WebFrame* frame); | 282 blink::WebFrame* frame); |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 } // namespace content | 285 } // namespace content |
| 286 | 286 |
| 287 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 287 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |