| 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 "base/process/memory.h" | 5 #ifndef WEAK_PTR_FACTORY_H_ |
| 6 #define WEAK_PTR_FACTORY_H_ |
| 6 | 7 |
| 7 namespace base { | 8 namespace base { |
| 8 | 9 |
| 9 void EnableTerminationOnOutOfMemory() { | 10 template <typename T> |
| 10 } | 11 class WeakPtrFactory { |
| 11 | 12 public: |
| 12 void EnableTerminationOnHeapCorruption() { | 13 explicit WeakPtrFactory(T*) {} |
| 13 } | 14 }; |
| 14 | |
| 15 bool AdjustOOMScore(ProcessId process, int score) { | |
| 16 return false; | |
| 17 } | |
| 18 | 15 |
| 19 } // namespace base | 16 } // namespace base |
| 17 |
| 18 #endif // WEAK_PTR_FACTORY_H_ |
| OLD | NEW |