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(); |