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

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

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. 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
« no previous file with comments | « content/child/child_histogram_message_filter.cc ('k') | content/child/child_thread_impl.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) 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_PROCESS_H_ 5 #ifndef CONTENT_CHILD_CHILD_PROCESS_H_
6 #define CONTENT_CHILD_CHILD_PROCESS_H_ 6 #define CONTENT_CHILD_CHILD_PROCESS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
(...skipping 25 matching lines...) Expand all
36 virtual ~ChildProcess(); 36 virtual ~ChildProcess();
37 37
38 // May be NULL if the main thread hasn't been set explicitly. 38 // May be NULL if the main thread hasn't been set explicitly.
39 ChildThreadImpl* main_thread(); 39 ChildThreadImpl* main_thread();
40 40
41 // Sets the object associated with the main thread of this process. 41 // Sets the object associated with the main thread of this process.
42 // Takes ownership of the pointer. 42 // Takes ownership of the pointer.
43 void set_main_thread(ChildThreadImpl* thread); 43 void set_main_thread(ChildThreadImpl* thread);
44 44
45 base::MessageLoop* io_message_loop() { return io_thread_.message_loop(); } 45 base::MessageLoop* io_message_loop() { return io_thread_.message_loop(); }
46 base::MessageLoopProxy* io_message_loop_proxy() { 46 base::SingleThreadTaskRunner* io_task_runner() {
47 return io_thread_.message_loop_proxy().get(); 47 return io_thread_.task_runner().get();
48 } 48 }
49 49
50 // A global event object that is signalled when the main thread's message 50 // A global event object that is signalled when the main thread's message
51 // loop exits. This gives background threads a way to observe the main 51 // loop exits. This gives background threads a way to observe the main
52 // thread shutting down. This can be useful when a background thread is 52 // thread shutting down. This can be useful when a background thread is
53 // waiting for some information from the browser process. If the browser 53 // waiting for some information from the browser process. If the browser
54 // process goes away prematurely, the background thread can at least notice 54 // process goes away prematurely, the background thread can at least notice
55 // the child processes's main thread exiting to determine that it should give 55 // the child processes's main thread exiting to determine that it should give
56 // up waiting. 56 // up waiting.
57 // For example, see the renderer code used to implement GetCookies(). 57 // For example, see the renderer code used to implement GetCookies().
(...skipping 24 matching lines...) Expand all
82 // it depends on it (indirectly through IPC::SyncChannel). Same for 82 // it depends on it (indirectly through IPC::SyncChannel). Same for
83 // io_thread_. 83 // io_thread_.
84 scoped_ptr<ChildThreadImpl> main_thread_; 84 scoped_ptr<ChildThreadImpl> main_thread_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(ChildProcess); 86 DISALLOW_COPY_AND_ASSIGN(ChildProcess);
87 }; 87 };
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_CHILD_CHILD_PROCESS_H_ 91 #endif // CONTENT_CHILD_CHILD_PROCESS_H_
OLDNEW
« no previous file with comments | « content/child/child_histogram_message_filter.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698