OLD | NEW |
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_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/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; | 89 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; |
90 | 90 |
91 // A task we invoke periodically to assist with idle cleanup. | 91 // A task we invoke periodically to assist with idle cleanup. |
92 virtual void IdleHandler() = 0; | 92 virtual void IdleHandler() = 0; |
93 | 93 |
94 // Get/Set the delay for how often the idle handler is called. | 94 // Get/Set the delay for how often the idle handler is called. |
95 virtual int64 GetIdleNotificationDelayInMs() const = 0; | 95 virtual int64 GetIdleNotificationDelayInMs() const = 0; |
96 virtual void SetIdleNotificationDelayInMs( | 96 virtual void SetIdleNotificationDelayInMs( |
97 int64 idle_notification_delay_in_ms) = 0; | 97 int64 idle_notification_delay_in_ms) = 0; |
98 | 98 |
| 99 // Causes the idle handler to skip sending idle notifications |
| 100 // on the two next scheduled calls, so idle notifications are |
| 101 // not sent for at least one notification delay. |
| 102 virtual void PostponeIdleNotification() = 0; |
| 103 |
99 #if defined(OS_WIN) | 104 #if defined(OS_WIN) |
100 // Request that the given font be loaded by the browser so it's cached by the | 105 // Request that the given font be loaded by the browser so it's cached by the |
101 // OS. Please see ChildProcessHost::PreCacheFont for details. | 106 // OS. Please see ChildProcessHost::PreCacheFont for details. |
102 virtual void PreCacheFont(const LOGFONT& log_font) = 0; | 107 virtual void PreCacheFont(const LOGFONT& log_font) = 0; |
103 | 108 |
104 // Release cached font. | 109 // Release cached font. |
105 virtual void ReleaseCachedFonts() = 0; | 110 virtual void ReleaseCachedFonts() = 0; |
106 #endif | 111 #endif |
107 }; | 112 }; |
108 | 113 |
109 } // namespace content | 114 } // namespace content |
110 | 115 |
111 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 116 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |