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 CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; | 104 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; |
105 | 105 |
106 // A task we invoke periodically to assist with idle cleanup. | 106 // A task we invoke periodically to assist with idle cleanup. |
107 virtual void IdleHandler() = 0; | 107 virtual void IdleHandler() = 0; |
108 | 108 |
109 // Get/Set the delay for how often the idle handler is called. | 109 // Get/Set the delay for how often the idle handler is called. |
110 virtual int64 GetIdleNotificationDelayInMs() const = 0; | 110 virtual int64 GetIdleNotificationDelayInMs() const = 0; |
111 virtual void SetIdleNotificationDelayInMs( | 111 virtual void SetIdleNotificationDelayInMs( |
112 int64 idle_notification_delay_in_ms) = 0; | 112 int64 idle_notification_delay_in_ms) = 0; |
113 | 113 |
114 // Suspend/resume the webkit timer for this renderer. | |
115 virtual void ToggleWebKitSharedTimer(bool suspend) = 0; | |
116 | |
117 virtual void UpdateHistograms(int sequence_number) = 0; | 114 virtual void UpdateHistograms(int sequence_number) = 0; |
118 | 115 |
119 // Post task to all worker threads. Returns number of workers. | 116 // Post task to all worker threads. Returns number of workers. |
120 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) = 0; | 117 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) = 0; |
121 | 118 |
122 // Resolve the proxy servers to use for a given url. On success true is | 119 // Resolve the proxy servers to use for a given url. On success true is |
123 // returned and |proxy_list| is set to a PAC string containing a list of | 120 // returned and |proxy_list| is set to a PAC string containing a list of |
124 // proxy servers. | 121 // proxy servers. |
125 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) = 0; | 122 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) = 0; |
126 | 123 |
127 #if defined(OS_WIN) | 124 #if defined(OS_WIN) |
128 // Request that the given font be loaded by the browser so it's cached by the | 125 // Request that the given font be loaded by the browser so it's cached by the |
129 // OS. Please see ChildProcessHost::PreCacheFont for details. | 126 // OS. Please see ChildProcessHost::PreCacheFont for details. |
130 virtual void PreCacheFont(const LOGFONT& log_font) = 0; | 127 virtual void PreCacheFont(const LOGFONT& log_font) = 0; |
131 | 128 |
132 // Release cached font. | 129 // Release cached font. |
133 virtual void ReleaseCachedFonts() = 0; | 130 virtual void ReleaseCachedFonts() = 0; |
134 #endif | 131 #endif |
135 }; | 132 }; |
136 | 133 |
137 } // namespace content | 134 } // namespace content |
138 | 135 |
139 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 136 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |