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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Add/remove observers for the process. | 70 // Add/remove observers for the process. |
71 virtual void AddObserver(RenderProcessObserver* observer) = 0; | 71 virtual void AddObserver(RenderProcessObserver* observer) = 0; |
72 virtual void RemoveObserver(RenderProcessObserver* observer) = 0; | 72 virtual void RemoveObserver(RenderProcessObserver* observer) = 0; |
73 | 73 |
74 // Set the ResourceDispatcher delegate object for this process. | 74 // Set the ResourceDispatcher delegate object for this process. |
75 virtual void SetResourceDispatcherDelegate( | 75 virtual void SetResourceDispatcherDelegate( |
76 ResourceDispatcherDelegate* delegate) = 0; | 76 ResourceDispatcherDelegate* delegate) = 0; |
77 | 77 |
78 // Asks the host to create a block of shared memory for the renderer. | 78 // Asks the host to create a block of shared memory for the renderer. |
79 // The shared memory allocated by the host is returned back. | 79 // The shared memory allocated by the host is returned back. |
80 virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( | 80 virtual std::unique_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( |
81 size_t buffer_size) = 0; | 81 size_t buffer_size) = 0; |
82 | 82 |
83 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 83 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
84 | 84 |
85 // Registers the given V8 extension with WebKit. | 85 // Registers the given V8 extension with WebKit. |
86 virtual void RegisterExtension(v8::Extension* extension) = 0; | 86 virtual void RegisterExtension(v8::Extension* extension) = 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(int64_t initial_delay_ms) = 0; | 89 virtual void ScheduleIdleHandler(int64_t initial_delay_ms) = 0; |
90 | 90 |
(...skipping 18 matching lines...) Expand all Loading... |
109 // Gets the shutdown event for the process. | 109 // Gets the shutdown event for the process. |
110 virtual base::WaitableEvent* GetShutdownEvent() = 0; | 110 virtual base::WaitableEvent* GetShutdownEvent() = 0; |
111 | 111 |
112 // Returns the ServiceRegistry for this thread. Never returns nullptr. | 112 // Returns the ServiceRegistry for this thread. Never returns nullptr. |
113 virtual ServiceRegistry* GetServiceRegistry() = 0; | 113 virtual ServiceRegistry* GetServiceRegistry() = 0; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace content | 116 } // namespace content |
117 | 117 |
118 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 118 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |