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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 uint32 buffer_size) = 0; | 79 uint32 buffer_size) = 0; |
80 | 80 |
81 // Registers the given V8 extension with WebKit. | 81 // Registers the given V8 extension with WebKit. |
82 virtual void RegisterExtension(v8::Extension* extension) = 0; | 82 virtual void RegisterExtension(v8::Extension* extension) = 0; |
83 | 83 |
84 // Returns true iff the extension is registered. | 84 // Returns true iff the extension is registered. |
85 virtual bool IsRegisteredExtension( | 85 virtual bool IsRegisteredExtension( |
86 const std::string& v8_extension_name) const = 0; | 86 const std::string& v8_extension_name) const = 0; |
87 | 87 |
88 // Schedule a call to IdleHandler with the given initial delay. | 88 // Schedule a call to IdleHandler with the given initial delay. |
89 virtual void ScheduleIdleHandler(double initial_delay_s) = 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 double GetIdleNotificationDelayInS() const = 0; | 95 virtual int64 GetIdleNotificationDelayInMs() const = 0; |
96 virtual void SetIdleNotificationDelayInS( | 96 virtual void SetIdleNotificationDelayInMs( |
97 double idle_notification_delay_in_s) = 0; | 97 int64 idle_notification_delay_in_ms) = 0; |
98 | 98 |
99 #if defined(OS_WIN) | 99 #if defined(OS_WIN) |
100 // Request that the given font be loaded by the browser so it's cached by the | 100 // Request that the given font be loaded by the browser so it's cached by the |
101 // OS. Please see ChildProcessHost::PreCacheFont for details. | 101 // OS. Please see ChildProcessHost::PreCacheFont for details. |
102 virtual void PreCacheFont(const LOGFONT& log_font) = 0; | 102 virtual void PreCacheFont(const LOGFONT& log_font) = 0; |
103 | 103 |
104 // Release cached font. | 104 // Release cached font. |
105 virtual void ReleaseCachedFonts() = 0; | 105 virtual void ReleaseCachedFonts() = 0; |
106 #endif | 106 #endif |
107 }; | 107 }; |
108 | 108 |
109 } // namespace content | 109 } // namespace content |
110 | 110 |
111 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 111 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |