Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 1133143003: [Android] Suspend shared timers for hidden renderers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@input_remove_suspend
Patch Set: Use ContentRendererClient Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698