| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 virtual base::SharedMemoryHandle HostAllocateSharedMemoryBuffer( | 78 virtual base::SharedMemoryHandle HostAllocateSharedMemoryBuffer( |
| 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 virtual void ResetIdleTimer() = 0; |
| 89 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; | |
| 90 | |
| 91 // A task we invoke periodically to assist with idle cleanup. | |
| 92 virtual void IdleHandler() = 0; | |
| 93 | |
| 94 // Get/Set the delay for how often the idle handler is called. | |
| 95 virtual int64 GetIdleNotificationDelayInMs() const = 0; | |
| 96 virtual void SetIdleNotificationDelayInMs( | |
| 97 int64 idle_notification_delay_in_ms) = 0; | |
| 98 | 89 |
| 99 #if defined(OS_WIN) | 90 #if defined(OS_WIN) |
| 100 // Request that the given font be loaded by the browser so it's cached by the | 91 // Request that the given font be loaded by the browser so it's cached by the |
| 101 // OS. Please see ChildProcessHost::PreCacheFont for details. | 92 // OS. Please see ChildProcessHost::PreCacheFont for details. |
| 102 virtual void PreCacheFont(const LOGFONT& log_font) = 0; | 93 virtual void PreCacheFont(const LOGFONT& log_font) = 0; |
| 103 | 94 |
| 104 // Release cached font. | 95 // Release cached font. |
| 105 virtual void ReleaseCachedFonts() = 0; | 96 virtual void ReleaseCachedFonts() = 0; |
| 106 #endif | 97 #endif |
| 107 }; | 98 }; |
| 108 | 99 |
| 109 } // namespace content | 100 } // namespace content |
| 110 | 101 |
| 111 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 102 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
| OLD | NEW |