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

Side by Side Diff: content/child/child_thread_impl.h

Issue 1137453002: content: Pass IOSurface references using Mach IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment Created 5 years, 7 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
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_CHILD_CHILD_THREAD_IMPL_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_IMPL_H_
6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/shared_memory.h" 12 #include "base/memory/shared_memory.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/power_monitor/power_monitor.h" 14 #include "base/power_monitor/power_monitor.h"
15 #include "base/sequenced_task_runner.h" 15 #include "base/sequenced_task_runner.h"
16 #include "base/tracked_objects.h" 16 #include "base/tracked_objects.h"
17 #include "content/child/mojo/mojo_application.h" 17 #include "content/child/mojo/mojo_application.h"
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "content/common/message_router.h" 19 #include "content/common/message_router.h"
20 #include "content/public/child/child_thread.h" 20 #include "content/public/child/child_thread.h"
21 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. 21 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
22 22
23 #if defined(OS_MACOSX) && !defined(OS_IOS)
24 #include "gpu/command_buffer/common/mailbox.h"
25 #endif
26
23 namespace base { 27 namespace base {
24 class MessageLoop; 28 class MessageLoop;
25 29
26 namespace trace_event { 30 namespace trace_event {
27 class TraceMemoryController; 31 class TraceMemoryController;
28 } // namespace trace_event 32 } // namespace trace_event
29 } // namespace base 33 } // namespace base
30 34
31 namespace IPC { 35 namespace IPC {
32 class MessageFilter; 36 class MessageFilter;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); 229 void OnSetProfilerStatus(tracked_objects::ThreadData::Status status);
226 void OnGetChildProfilerData(int sequence_number, int current_profiling_phase); 230 void OnGetChildProfilerData(int sequence_number, int current_profiling_phase);
227 void OnProfilingPhaseCompleted(int profiling_phase); 231 void OnProfilingPhaseCompleted(int profiling_phase);
228 void OnProcessBackgrounded(bool background); 232 void OnProcessBackgrounded(bool background);
229 #ifdef IPC_MESSAGE_LOG_ENABLED 233 #ifdef IPC_MESSAGE_LOG_ENABLED
230 void OnSetIPCLoggingEnabled(bool enable); 234 void OnSetIPCLoggingEnabled(bool enable);
231 #endif 235 #endif
232 #if defined(USE_TCMALLOC) 236 #if defined(USE_TCMALLOC)
233 void OnGetTcmallocStats(); 237 void OnGetTcmallocStats();
234 #endif 238 #endif
239 #if defined(OS_MACOSX) && !defined(OS_IOS)
240 void OnSetIOSurfaceManagerMailbox(const gpu::Mailbox& mailbox);
241 #endif
235 242
236 void EnsureConnected(); 243 void EnsureConnected();
237 244
238 scoped_ptr<MojoApplication> mojo_application_; 245 scoped_ptr<MojoApplication> mojo_application_;
239 246
240 std::string channel_name_; 247 std::string channel_name_;
241 scoped_ptr<IPC::SyncChannel> channel_; 248 scoped_ptr<IPC::SyncChannel> channel_;
242 249
243 // Allows threads other than the main thread to send sync messages. 250 // Allows threads other than the main thread to send sync messages.
244 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 251 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 335
329 private: 336 private:
330 struct Options options_; 337 struct Options options_;
331 338
332 DISALLOW_COPY_AND_ASSIGN(Builder); 339 DISALLOW_COPY_AND_ASSIGN(Builder);
333 }; 340 };
334 341
335 } // namespace content 342 } // namespace content
336 343
337 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 344 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698