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

Side by Side Diff: content/shell/shell_content_renderer_client.cc

Issue 8519001: Schedule idle timer of render thread when user is idle. Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_content_renderer_client.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/shell/shell_content_renderer_client.h" 5 #include "content/shell/shell_content_renderer_client.h"
6 6
7 #include "v8/include/v8.h" 7 #include "v8/include/v8.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const WebKit::WebURLRequest& failed_request, 45 const WebKit::WebURLRequest& failed_request,
46 const WebKit::WebURLError& error, 46 const WebKit::WebURLError& error,
47 std::string* error_html, 47 std::string* error_html,
48 string16* error_description) { 48 string16* error_description) {
49 } 49 }
50 50
51 bool ShellContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { 51 bool ShellContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
52 return true; 52 return true;
53 } 53 }
54 54
55 bool ShellContentRendererClient::RunIdleHandlerWhenUserIdle() {
56 return true;
57 }
58
55 bool ShellContentRendererClient::AllowPopup(const GURL& creator) { 59 bool ShellContentRendererClient::AllowPopup(const GURL& creator) {
56 return false; 60 return false;
57 } 61 }
58 62
59 bool ShellContentRendererClient::ShouldFork(WebKit::WebFrame* frame, 63 bool ShellContentRendererClient::ShouldFork(WebKit::WebFrame* frame,
60 const GURL& url, 64 const GURL& url,
61 bool is_content_initiated, 65 bool is_content_initiated,
62 bool is_initial_navigation, 66 bool is_initial_navigation,
63 bool* send_referrer) { 67 bool* send_referrer) {
64 return false; 68 return false;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 123
120 bool ShellContentRendererClient::IsProtocolSupportedForMedia(const GURL& url) { 124 bool ShellContentRendererClient::IsProtocolSupportedForMedia(const GURL& url) {
121 return false; 125 return false;
122 } 126 }
123 127
124 void ShellContentRendererClient::RegisterPPAPIInterfaceFactories( 128 void ShellContentRendererClient::RegisterPPAPIInterfaceFactories(
125 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { 129 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {
126 } 130 }
127 131
128 } // namespace content 132 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_content_renderer_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698