Chromium Code Reviews

Side by Side Diff: content/public/renderer/content_renderer_client.h

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.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/idle_user_detector.h » ('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) 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 #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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 75 matching lines...)
86 virtual void GetNavigationErrorStrings( 86 virtual void GetNavigationErrorStrings(
87 const WebKit::WebURLRequest& failed_request, 87 const WebKit::WebURLRequest& failed_request,
88 const WebKit::WebURLError& error, 88 const WebKit::WebURLError& error,
89 std::string* error_html, 89 std::string* error_html,
90 string16* error_description) = 0; 90 string16* error_description) = 0;
91 91
92 // Returns true if the renderer process should schedule the idle handler when 92 // Returns true if the renderer process should schedule the idle handler when
93 // all widgets are hidden. 93 // all widgets are hidden.
94 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0; 94 virtual bool RunIdleHandlerWhenWidgetsHidden() = 0;
95 95
96 // Returns true if the renderer process should schedule the idle handler when
97 // the user is idle.
98 virtual bool RunIdleHandlerWhenUserIdle() = 0;
99
96 // Returns true if the given url can create popup windows. 100 // Returns true if the given url can create popup windows.
97 virtual bool AllowPopup(const GURL& creator) = 0; 101 virtual bool AllowPopup(const GURL& creator) = 0;
98 102
99 // Returns true if we should fork a new process for the given navigation. 103 // Returns true if we should fork a new process for the given navigation.
100 virtual bool ShouldFork(WebKit::WebFrame* frame, 104 virtual bool ShouldFork(WebKit::WebFrame* frame,
101 const GURL& url, 105 const GURL& url,
102 bool is_content_initiated, 106 bool is_content_initiated,
103 bool is_initial_navigation, 107 bool is_initial_navigation,
104 bool* send_referrer) = 0; 108 bool* send_referrer) = 0;
105 109
(...skipping 42 matching lines...)
148 // by the media engine. 152 // by the media engine.
149 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0; 153 virtual bool IsProtocolSupportedForMedia(const GURL& url) = 0;
150 154
151 virtual void RegisterPPAPIInterfaceFactories( 155 virtual void RegisterPPAPIInterfaceFactories(
152 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0; 156 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) = 0;
153 }; 157 };
154 158
155 } // namespace content 159 } // namespace content
156 160
157 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 161 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/idle_user_detector.h » ('j') | no next file with comments »

Powered by Google App Engine