OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WEB_DISCARDABLE_MEMORY_IMPL_H_ | 5 #ifndef CONTENT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_ |
6 #define CONTENT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_ | 6 #define CONTENT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include <stddef.h> |
| 9 |
| 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
10 #include "third_party/WebKit/public/platform/WebDiscardableMemory.h" | 12 #include "third_party/WebKit/public/platform/WebDiscardableMemory.h" |
11 | 13 |
12 namespace base { | 14 namespace base { |
13 class DiscardableMemory; | 15 class DiscardableMemory; |
14 } | 16 } |
15 | 17 |
16 namespace content { | 18 namespace content { |
17 | 19 |
18 // Implementation of WebDiscardableMemory that is responsible for allocating | 20 // Implementation of WebDiscardableMemory that is responsible for allocating |
(...skipping 16 matching lines...) Expand all Loading... |
35 WebDiscardableMemoryImpl(scoped_ptr<base::DiscardableMemory> memory); | 37 WebDiscardableMemoryImpl(scoped_ptr<base::DiscardableMemory> memory); |
36 | 38 |
37 scoped_ptr<base::DiscardableMemory> discardable_; | 39 scoped_ptr<base::DiscardableMemory> discardable_; |
38 | 40 |
39 DISALLOW_COPY_AND_ASSIGN(WebDiscardableMemoryImpl); | 41 DISALLOW_COPY_AND_ASSIGN(WebDiscardableMemoryImpl); |
40 }; | 42 }; |
41 | 43 |
42 } // namespace content | 44 } // namespace content |
43 | 45 |
44 #endif // CONTENT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_ | 46 #endif // CONTENT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_ |
OLD | NEW |