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 void GetNavigationErrorStrings(content::RenderView* render_view, | 98 void GetNavigationErrorStrings(content::RenderView* render_view, |
99 blink::WebFrame* frame, | 99 blink::WebFrame* frame, |
100 const blink::WebURLRequest& failed_request, | 100 const blink::WebURLRequest& failed_request, |
101 const blink::WebURLError& error, | 101 const blink::WebURLError& error, |
102 std::string* error_html, | 102 std::string* error_html, |
103 base::string16* error_description) override; | 103 base::string16* error_description) override; |
104 void DeferMediaLoad(content::RenderFrame* render_frame, | 104 void DeferMediaLoad(content::RenderFrame* render_frame, |
105 bool has_played_media_before, | 105 bool has_played_media_before, |
106 const base::Closure& closure) override; | 106 const base::Closure& closure) override; |
107 bool RunIdleHandlerWhenWidgetsHidden() override; | 107 bool RunIdleHandlerWhenWidgetsHidden() override; |
| 108 bool AllowTimerSuspensionWhenProcessBackgrounded() override; |
108 bool AllowPopup() override; | 109 bool AllowPopup() override; |
109 bool ShouldFork(blink::WebLocalFrame* frame, | 110 bool ShouldFork(blink::WebLocalFrame* frame, |
110 const GURL& url, | 111 const GURL& url, |
111 const std::string& http_method, | 112 const std::string& http_method, |
112 bool is_initial_navigation, | 113 bool is_initial_navigation, |
113 bool is_server_redirect, | 114 bool is_server_redirect, |
114 bool* send_referrer) override; | 115 bool* send_referrer) override; |
115 bool WillSendRequest(blink::WebFrame* frame, | 116 bool WillSendRequest(blink::WebFrame* frame, |
116 ui::PageTransition transition_type, | 117 ui::PageTransition transition_type, |
117 const GURL& url, | 118 const GURL& url, |
(...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 |