| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 virtual void GetNavigationErrorStrings( | 144 virtual void GetNavigationErrorStrings( |
| 145 content::RenderView* render_view, | 145 content::RenderView* render_view, |
| 146 blink::WebFrame* frame, | 146 blink::WebFrame* frame, |
| 147 const blink::WebURLRequest& failed_request, | 147 const blink::WebURLRequest& failed_request, |
| 148 const blink::WebURLError& error, | 148 const blink::WebURLError& error, |
| 149 std::string* error_html, | 149 std::string* error_html, |
| 150 base::string16* error_description) {} | 150 base::string16* error_description) {} |
| 151 | 151 |
| 152 // Allows the embedder to control when media resources are loaded. Embedders | 152 // Allows the embedder to control when media resources are loaded. Embedders |
| 153 // can run |closure| immediately if they don't wish to defer media resource | 153 // can run |closure| immediately if they don't wish to defer media resource |
| 154 // loading. | 154 // loading. If |has_played_media_before| is true, the render frame has |
| 155 // previously started media playback (i.e. played audio and video). |
| 155 virtual void DeferMediaLoad(RenderFrame* render_frame, | 156 virtual void DeferMediaLoad(RenderFrame* render_frame, |
| 157 bool has_played_media_before, |
| 156 const base::Closure& closure); | 158 const base::Closure& closure); |
| 157 | 159 |
| 158 // Allows the embedder to override creating a WebMediaStreamCenter. If it | 160 // Allows the embedder to override creating a WebMediaStreamCenter. If it |
| 159 // returns NULL the content layer will create the stream center. | 161 // returns NULL the content layer will create the stream center. |
| 160 virtual blink::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( | 162 virtual blink::WebMediaStreamCenter* OverrideCreateWebMediaStreamCenter( |
| 161 blink::WebMediaStreamCenterClient* client); | 163 blink::WebMediaStreamCenterClient* client); |
| 162 | 164 |
| 163 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If | 165 // Allows the embedder to override creating a WebRTCPeerConnectionHandler. If |
| 164 // it returns NULL the content layer will create the connection handler. | 166 // it returns NULL the content layer will create the connection handler. |
| 165 virtual blink::WebRTCPeerConnectionHandler* | 167 virtual blink::WebRTCPeerConnectionHandler* |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // Notifies that a service worker context has been created. This function | 303 // Notifies that a service worker context has been created. This function |
| 302 // is called from the worker thread. | 304 // is called from the worker thread. |
| 303 virtual void DidInitializeServiceWorkerContextOnWorkerThread( | 305 virtual void DidInitializeServiceWorkerContextOnWorkerThread( |
| 304 v8::Local<v8::Context> context, | 306 v8::Local<v8::Context> context, |
| 305 const GURL& url) {} | 307 const GURL& url) {} |
| 306 }; | 308 }; |
| 307 | 309 |
| 308 } // namespace content | 310 } // namespace content |
| 309 | 311 |
| 310 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 312 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |