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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; | 92 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; |
93 | 93 |
94 // A task we invoke periodically to assist with idle cleanup. | 94 // A task we invoke periodically to assist with idle cleanup. |
95 virtual void IdleHandler() = 0; | 95 virtual void IdleHandler() = 0; |
96 | 96 |
97 // Get/Set the delay for how often the idle handler is called. | 97 // Get/Set the delay for how often the idle handler is called. |
98 virtual int64 GetIdleNotificationDelayInMs() const = 0; | 98 virtual int64 GetIdleNotificationDelayInMs() const = 0; |
99 virtual void SetIdleNotificationDelayInMs( | 99 virtual void SetIdleNotificationDelayInMs( |
100 int64 idle_notification_delay_in_ms) = 0; | 100 int64 idle_notification_delay_in_ms) = 0; |
101 | 101 |
| 102 virtual void UpdateHistograms(int sequence_number) = 0; |
| 103 |
102 #if defined(OS_WIN) | 104 #if defined(OS_WIN) |
103 // 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 |
104 // OS. Please see ChildProcessHost::PreCacheFont for details. | 106 // OS. Please see ChildProcessHost::PreCacheFont for details. |
105 virtual void PreCacheFont(const LOGFONT& log_font) = 0; | 107 virtual void PreCacheFont(const LOGFONT& log_font) = 0; |
106 | 108 |
107 // Release cached font. | 109 // Release cached font. |
108 virtual void ReleaseCachedFonts() = 0; | 110 virtual void ReleaseCachedFonts() = 0; |
109 #endif | 111 #endif |
110 }; | 112 }; |
111 | 113 |
112 } // namespace content | 114 } // namespace content |
113 | 115 |
114 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 116 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |