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/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
11 #include "base/metrics/user_metrics_action.h" | 11 #include "base/metrics/user_metrics_action.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "ipc/ipc_channel_proxy.h" | 13 #include "ipc/ipc_channel_proxy.h" |
14 #include "ipc/ipc_sender.h" | 14 #include "ipc/ipc_sender.h" |
15 | 15 |
16 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
17 #include <windows.h> | 17 #include <windows.h> |
18 #endif | 18 #endif |
19 | 19 |
20 class GURL; | 20 class GURL; |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 class MessageLoop; | 23 class MessageLoop; |
24 class MessageLoopProxy; | 24 class MessageLoopProxy; |
25 class WaitableEvent; | 25 class WaitableEvent; |
26 } | 26 } |
27 | 27 |
| 28 namespace cc { |
| 29 class SharedBitmapManager; |
| 30 } |
| 31 |
28 namespace IPC { | 32 namespace IPC { |
29 class MessageFilter; | 33 class MessageFilter; |
30 class SyncChannel; | 34 class SyncChannel; |
31 class SyncMessageFilter; | 35 class SyncMessageFilter; |
32 } | 36 } |
33 | 37 |
34 namespace v8 { | 38 namespace v8 { |
35 class Extension; | 39 class Extension; |
36 } | 40 } |
37 | 41 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Sends over a string to be recorded by user metrics as a computed action. | 99 // Sends over a string to be recorded by user metrics as a computed action. |
96 // When you use this you need to also update the rules for extracting known | 100 // When you use this you need to also update the rules for extracting known |
97 // actions in chrome/tools/extract_actions.py. | 101 // actions in chrome/tools/extract_actions.py. |
98 virtual void RecordComputedAction(const std::string& action) = 0; | 102 virtual void RecordComputedAction(const std::string& action) = 0; |
99 | 103 |
100 // Asks the host to create a block of shared memory for the renderer. | 104 // Asks the host to create a block of shared memory for the renderer. |
101 // The shared memory allocated by the host is returned back. | 105 // The shared memory allocated by the host is returned back. |
102 virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( | 106 virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( |
103 size_t buffer_size) = 0; | 107 size_t buffer_size) = 0; |
104 | 108 |
| 109 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
| 110 |
105 // Registers the given V8 extension with WebKit. | 111 // Registers the given V8 extension with WebKit. |
106 virtual void RegisterExtension(v8::Extension* extension) = 0; | 112 virtual void RegisterExtension(v8::Extension* extension) = 0; |
107 | 113 |
108 // Schedule a call to IdleHandler with the given initial delay. | 114 // Schedule a call to IdleHandler with the given initial delay. |
109 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; | 115 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; |
110 | 116 |
111 // A task we invoke periodically to assist with idle cleanup. | 117 // A task we invoke periodically to assist with idle cleanup. |
112 virtual void IdleHandler() = 0; | 118 virtual void IdleHandler() = 0; |
113 | 119 |
114 // Get/Set the delay for how often the idle handler is called. | 120 // Get/Set the delay for how often the idle handler is called. |
(...skipping 23 matching lines...) Expand all Loading... |
138 virtual void ReleaseCachedFonts() = 0; | 144 virtual void ReleaseCachedFonts() = 0; |
139 #endif | 145 #endif |
140 | 146 |
141 // Returns the ServiceRegistry for this thread. | 147 // Returns the ServiceRegistry for this thread. |
142 virtual ServiceRegistry* GetServiceRegistry() = 0; | 148 virtual ServiceRegistry* GetServiceRegistry() = 0; |
143 }; | 149 }; |
144 | 150 |
145 } // namespace content | 151 } // namespace content |
146 | 152 |
147 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 153 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |