OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "content/browser/android/in_process/context_provider_in_process.h" | 5 #include "content/browser/android/in_process/context_provider_in_process.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "cc/output/managed_memory_policy.h" | 10 #include "cc/output/managed_memory_policy.h" |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 } | 196 } |
197 | 197 |
198 void ContextProviderInProcess::SetLostContextCallback( | 198 void ContextProviderInProcess::SetLostContextCallback( |
199 const LostContextCallback& lost_context_callback) { | 199 const LostContextCallback& lost_context_callback) { |
200 DCHECK(context_thread_checker_.CalledOnValidThread()); | 200 DCHECK(context_thread_checker_.CalledOnValidThread()); |
201 DCHECK(lost_context_callback_.is_null() || | 201 DCHECK(lost_context_callback_.is_null() || |
202 lost_context_callback.is_null()); | 202 lost_context_callback.is_null()); |
203 lost_context_callback_ = lost_context_callback; | 203 lost_context_callback_ = lost_context_callback; |
204 } | 204 } |
205 | 205 |
206 void ContextProviderInProcess::SetMemoryPolicyChangedCallback( | |
207 const MemoryPolicyChangedCallback& memory_policy_changed_callback) { | |
208 // There's no memory manager for the in-process implementation. | |
209 } | |
210 | |
211 } // namespace content | 206 } // namespace content |
OLD | NEW |