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

Side by Side Diff: content/browser/renderer_host/render_widget_helper.h

Issue 16085007: Use an explicitly-sized int type across the IPC boundary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: uint32 instead of _t, for Windows. Created 7 years, 6 months 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 int* route_id, 155 int* route_id,
156 int* surface_id); 156 int* surface_id);
157 void CreateNewFullscreenWidget(int opener_id, int* route_id, int* surface_id); 157 void CreateNewFullscreenWidget(int opener_id, int* route_id, int* surface_id);
158 158
159 #if defined(OS_POSIX) 159 #if defined(OS_POSIX)
160 // Called on the IO thread to handle the allocation of a TransportDIB. If 160 // Called on the IO thread to handle the allocation of a TransportDIB. If
161 // |cache_in_browser| is |true|, then a copy of the shmem is kept by the 161 // |cache_in_browser| is |true|, then a copy of the shmem is kept by the
162 // browser, and it is the caller's repsonsibility to call 162 // browser, and it is the caller's repsonsibility to call
163 // FreeTransportDIB(). In all cases, the caller is responsible for deleting 163 // FreeTransportDIB(). In all cases, the caller is responsible for deleting
164 // the resulting TransportDIB. 164 // the resulting TransportDIB.
165 void AllocTransportDIB(size_t size, 165 void AllocTransportDIB(uint32 size,
166 bool cache_in_browser, 166 bool cache_in_browser,
167 TransportDIB::Handle* result); 167 TransportDIB::Handle* result);
168 168
169 // Called on the IO thread to handle the freeing of a transport DIB 169 // Called on the IO thread to handle the freeing of a transport DIB
170 void FreeTransportDIB(TransportDIB::Id dib_id); 170 void FreeTransportDIB(TransportDIB::Id dib_id);
171 #endif 171 #endif
172 172
173 private: 173 private:
174 // A class used to proxy a paint message. PaintMsgProxy objects are created 174 // A class used to proxy a paint message. PaintMsgProxy objects are created
175 // on the IO thread and destroyed on the UI thread. 175 // on the IO thread and destroyed on the UI thread.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 base::AtomicSequenceNumber next_routing_id_; 239 base::AtomicSequenceNumber next_routing_id_;
240 240
241 ResourceDispatcherHostImpl* resource_dispatcher_host_; 241 ResourceDispatcherHostImpl* resource_dispatcher_host_;
242 242
243 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); 243 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper);
244 }; 244 };
245 245
246 } // namespace content 246 } // namespace content
247 247
248 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ 248 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/browser/renderer_host/render_widget_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698