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

Side by Side Diff: chrome/common/transport_dib.h

Issue 79020: linux (and some posix): multiprocess plugins compiling. (Closed)
Patch Set: rebased Created 11 years, 8 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
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('k') | chrome/plugin/chrome_plugin_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 CHROME_COMMON_TRANSPORT_DIB_H_ 5 #ifndef CHROME_COMMON_TRANSPORT_DIB_H_
6 #define CHROME_COMMON_TRANSPORT_DIB_H_ 6 #define CHROME_COMMON_TRANSPORT_DIB_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #if defined(OS_WIN) || defined(OS_MACOSX) 10 #if defined(OS_WIN) || defined(OS_MACOSX)
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #endif 12 #endif
13 13
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 #include <windows.h> 15 #include <windows.h>
16 #elif defined(OS_LINUX) 16 #elif defined(OS_LINUX)
17 #include "chrome/common/x11_util.h" 17 #include "chrome/common/x11_util.h"
18 #endif 18 #endif
19 19
20 namespace gfx { 20 namespace gfx {
21 class Size; 21 class Size;
22 } 22 }
23 23
24 // ----------------------------------------------------------------------------- 24 // -----------------------------------------------------------------------------
25 // A TransportDIB is a block of memory that is used to transport pixels 25 // A TransportDIB is a block of memory that is used to transport pixels
26 // from the renderer process to the browser. 26 // between processes: from the renderer process to the browser, and
27 // between renderer and plugin processes.
27 // ----------------------------------------------------------------------------- 28 // -----------------------------------------------------------------------------
28 class TransportDIB { 29 class TransportDIB {
29 public: 30 public:
30 ~TransportDIB(); 31 ~TransportDIB();
31 32
32 // Two typedefs are defined. A Handle is the type which can be sent over 33 // Two typedefs are defined. A Handle is the type which can be sent over
33 // the wire so that the remote side can map the transport DIB. The Id typedef 34 // the wire so that the remote side can map the transport DIB. The Id typedef
34 // is sufficient to identify the transport DIB when you know that the remote 35 // is sufficient to identify the transport DIB when you know that the remote
35 // side already may have it mapped. 36 // side already may have it mapped.
36 #if defined(OS_WIN) 37 #if defined(OS_WIN)
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void* address_; // mapped address 118 void* address_; // mapped address
118 XID x_shm_; // X id for the shared segment 119 XID x_shm_; // X id for the shared segment
119 Display* display_; // connection to the X server 120 Display* display_; // connection to the X server
120 #endif 121 #endif
121 size_t size_; // length, in bytes 122 size_t size_; // length, in bytes
122 }; 123 };
123 124
124 class MessageLoop; 125 class MessageLoop;
125 126
126 #endif // CHROME_COMMON_TRANSPORT_DIB_H_ 127 #endif // CHROME_COMMON_TRANSPORT_DIB_H_
OLDNEW
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('k') | chrome/plugin/chrome_plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698