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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 bool HasErrorPage(int http_status_code, std::string* error_domain) override; | 98 bool HasErrorPage(int http_status_code, std::string* error_domain) override; |
99 bool ShouldSuppressErrorPage(content::RenderFrame* render_frame, | 99 bool ShouldSuppressErrorPage(content::RenderFrame* render_frame, |
100 const GURL& url) override; | 100 const GURL& url) override; |
101 void GetNavigationErrorStrings(content::RenderView* render_view, | 101 void GetNavigationErrorStrings(content::RenderView* render_view, |
102 blink::WebFrame* frame, | 102 blink::WebFrame* frame, |
103 const blink::WebURLRequest& failed_request, | 103 const blink::WebURLRequest& failed_request, |
104 const blink::WebURLError& error, | 104 const blink::WebURLError& error, |
105 std::string* error_html, | 105 std::string* error_html, |
106 base::string16* error_description) override; | 106 base::string16* error_description) override; |
107 void DeferMediaLoad(content::RenderFrame* render_frame, | 107 void DeferMediaLoad(content::RenderFrame* render_frame, |
| 108 bool render_frame_has_played_media_before, |
108 const base::Closure& closure) override; | 109 const base::Closure& closure) override; |
109 bool RunIdleHandlerWhenWidgetsHidden() override; | 110 bool RunIdleHandlerWhenWidgetsHidden() override; |
110 bool AllowPopup() override; | 111 bool AllowPopup() override; |
111 bool ShouldFork(blink::WebLocalFrame* frame, | 112 bool ShouldFork(blink::WebLocalFrame* frame, |
112 const GURL& url, | 113 const GURL& url, |
113 const std::string& http_method, | 114 const std::string& http_method, |
114 bool is_initial_navigation, | 115 bool is_initial_navigation, |
115 bool is_server_redirect, | 116 bool is_server_redirect, |
116 bool* send_referrer) override; | 117 bool* send_referrer) override; |
117 bool WillSendRequest(blink::WebFrame* frame, | 118 bool WillSendRequest(blink::WebFrame* frame, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 #if defined(ENABLE_PRINT_PREVIEW) | 246 #if defined(ENABLE_PRINT_PREVIEW) |
246 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; | 247 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; |
247 #endif | 248 #endif |
248 #if defined(ENABLE_PLUGINS) | 249 #if defined(ENABLE_PLUGINS) |
249 std::set<std::string> allowed_camera_device_origins_; | 250 std::set<std::string> allowed_camera_device_origins_; |
250 std::set<std::string> allowed_compositor_origins_; | 251 std::set<std::string> allowed_compositor_origins_; |
251 #endif | 252 #endif |
252 }; | 253 }; |
253 | 254 |
254 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 255 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |