Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: content/public/renderer/render_thread.h

Issue 11469015: Renderer process can allocate anonymous shared memory without help from browser process on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void WidgetRestored() = 0; 75 virtual void WidgetRestored() = 0;
76 76
77 // We initialize WebKit as late as possible. Call this to force 77 // We initialize WebKit as late as possible. Call this to force
78 // initialization. 78 // initialization.
79 virtual void EnsureWebKitInitialized() = 0; 79 virtual void EnsureWebKitInitialized() = 0;
80 80
81 // Helper function to send over a string to be recorded by user metrics 81 // Helper function to send over a string to be recorded by user metrics
82 virtual void RecordUserMetrics(const std::string& action) = 0; 82 virtual void RecordUserMetrics(const std::string& action) = 0;
83 83
84 // Asks the host to create a block of shared memory for the renderer. 84 // Asks the host to create a block of shared memory for the renderer.
85 // The shared memory handle allocated by the host is returned back. 85 // The shared memory allocated by the host is returned back.
86 virtual base::SharedMemoryHandle HostAllocateSharedMemoryBuffer( 86 virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer(
87 uint32 buffer_size) = 0; 87 uint32 buffer_size) = 0;
88 88
89 // Registers the given V8 extension with WebKit. 89 // Registers the given V8 extension with WebKit.
90 virtual void RegisterExtension(v8::Extension* extension) = 0; 90 virtual void RegisterExtension(v8::Extension* extension) = 0;
91 91
92 // Schedule a call to IdleHandler with the given initial delay. 92 // Schedule a call to IdleHandler with the given initial delay.
93 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; 93 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0;
94 94
95 // A task we invoke periodically to assist with idle cleanup. 95 // A task we invoke periodically to assist with idle cleanup.
96 virtual void IdleHandler() = 0; 96 virtual void IdleHandler() = 0;
(...skipping 14 matching lines...) Expand all
111 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 111 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
112 112
113 // Release cached font. 113 // Release cached font.
114 virtual void ReleaseCachedFonts() = 0; 114 virtual void ReleaseCachedFonts() = 0;
115 #endif 115 #endif
116 }; 116 };
117 117
118 } // namespace content 118 } // namespace content
119 119
120 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 120 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper_linux.cc ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698