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

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

Issue 1647443002: Delay destructing ChildDiscardableSharedMemoryManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | 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_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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Allow to be used for single-process mode and for in process gpu mode via 73 // Allow to be used for single-process mode and for in process gpu mode via
74 // options. 74 // options.
75 explicit ChildThreadImpl(const Options& options); 75 explicit ChildThreadImpl(const Options& options);
76 // ChildProcess::main_thread() is reset after Shutdown(), and before the 76 // ChildProcess::main_thread() is reset after Shutdown(), and before the
77 // destructor, so any subsystem that relies on ChildProcess::main_thread() 77 // destructor, so any subsystem that relies on ChildProcess::main_thread()
78 // must be terminated before Shutdown returns. In particular, if a subsystem 78 // must be terminated before Shutdown returns. In particular, if a subsystem
79 // has a thread that post tasks to ChildProcess::main_thread(), that thread 79 // has a thread that post tasks to ChildProcess::main_thread(), that thread
80 // should be joined in Shutdown(). 80 // should be joined in Shutdown().
81 ~ChildThreadImpl() override; 81 ~ChildThreadImpl() override;
82 virtual void Shutdown(); 82 virtual void Shutdown();
83 void ShutdownDiscardableSharedMemoryManager();
83 84
84 // IPC::Sender implementation: 85 // IPC::Sender implementation:
85 bool Send(IPC::Message* msg) override; 86 bool Send(IPC::Message* msg) override;
86 87
87 // ChildThread implementation: 88 // ChildThread implementation:
88 #if defined(OS_WIN) 89 #if defined(OS_WIN)
89 void PreCacheFont(const LOGFONT& log_font) override; 90 void PreCacheFont(const LOGFONT& log_font) override;
90 void ReleaseCachedFonts() override; 91 void ReleaseCachedFonts() override;
91 #endif 92 #endif
92 93
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 326
326 private: 327 private:
327 struct Options options_; 328 struct Options options_;
328 329
329 DISALLOW_COPY_AND_ASSIGN(Builder); 330 DISALLOW_COPY_AND_ASSIGN(Builder);
330 }; 331 };
331 332
332 } // namespace content 333 } // namespace content
333 334
334 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 335 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698