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

Unified Diff: content/child/child_thread_impl.h

Issue 2010563004: content: Not all memory creation failures are out of memory errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/child_shared_bitmap_manager.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.h
diff --git a/content/child/child_thread_impl.h b/content/child/child_thread_impl.h
index 5a59f363e328840ebd79943c3697e72bc1ad0655..da51e2b48154d597044464918232bc6bc0416e61 100644
--- a/content/child/child_thread_impl.h
+++ b/content/child/child_thread_impl.h
@@ -103,9 +103,12 @@ class CONTENT_EXPORT ChildThreadImpl
// A static variant that can be called on background threads provided
// the |sender| passed in is safe to use on background threads.
+ // |out_of_memory| is an output variable populated on failure which tells the
+ // caller whether the failure was caused by an out of memory error.
static std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
size_t buf_size,
- IPC::Sender* sender);
+ IPC::Sender* sender,
+ bool* out_of_memory);
ChildSharedBitmapManager* shared_bitmap_manager() const {
return shared_bitmap_manager_.get();
« no previous file with comments | « content/child/child_shared_bitmap_manager.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698