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/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; | 97 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; |
98 | 98 |
99 // A task we invoke periodically to assist with idle cleanup. | 99 // A task we invoke periodically to assist with idle cleanup. |
100 virtual void IdleHandler() = 0; | 100 virtual void IdleHandler() = 0; |
101 | 101 |
102 // Get/Set the delay for how often the idle handler is called. | 102 // Get/Set the delay for how often the idle handler is called. |
103 virtual int64 GetIdleNotificationDelayInMs() const = 0; | 103 virtual int64 GetIdleNotificationDelayInMs() const = 0; |
104 virtual void SetIdleNotificationDelayInMs( | 104 virtual void SetIdleNotificationDelayInMs( |
105 int64 idle_notification_delay_in_ms) = 0; | 105 int64 idle_notification_delay_in_ms) = 0; |
106 | 106 |
| 107 virtual void UpdateHistograms(int sequence_number) = 0; |
| 108 |
107 #if defined(OS_WIN) | 109 #if defined(OS_WIN) |
108 // Request that the given font be loaded by the browser so it's cached by the | 110 // Request that the given font be loaded by the browser so it's cached by the |
109 // OS. Please see ChildProcessHost::PreCacheFont for details. | 111 // OS. Please see ChildProcessHost::PreCacheFont for details. |
110 virtual void PreCacheFont(const LOGFONT& log_font) = 0; | 112 virtual void PreCacheFont(const LOGFONT& log_font) = 0; |
111 | 113 |
112 // Release cached font. | 114 // Release cached font. |
113 virtual void ReleaseCachedFonts() = 0; | 115 virtual void ReleaseCachedFonts() = 0; |
114 #endif | 116 #endif |
115 }; | 117 }; |
116 | 118 |
117 } // namespace content | 119 } // namespace content |
118 | 120 |
119 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 121 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |