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 #ifndef WEBKIT_GLUE_WEB_DISCARDABLE_MEMORY_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEB_DISCARDABLE_MEMORY_IMPL_H_ |
6 #define WEBKIT_GLUE_WEB_DISCARDABLE_MEMORY_IMPL_H_ | 6 #define WEBKIT_GLUE_WEB_DISCARDABLE_MEMORY_IMPL_H_ |
7 | 7 |
8 #include "base/memory/discardable_memory.h" | 8 #include "base/memory/discardable_memory.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebDiscardableMemor
y.h" | 10 #include "third_party/WebKit/public/platform/WebDiscardableMemory.h" |
11 #include "webkit/glue/webkit_glue_export.h" | 11 #include "webkit/glue/webkit_glue_export.h" |
12 | 12 |
13 namespace WebKit { | 13 namespace WebKit { |
14 class WebDiscardableMemory; | 14 class WebDiscardableMemory; |
15 } | 15 } |
16 | 16 |
17 namespace webkit_glue { | 17 namespace webkit_glue { |
18 | 18 |
19 // Implementation of WebDiscardableMemory that is responsible for allocating | 19 // Implementation of WebDiscardableMemory that is responsible for allocating |
20 // discardable memory. | 20 // discardable memory. |
(...skipping 14 matching lines...) Expand all Loading... |
35 bool InitializeAndLock(size_t size); | 35 bool InitializeAndLock(size_t size); |
36 | 36 |
37 private: | 37 private: |
38 scoped_ptr<base::DiscardableMemory> discardable_; | 38 scoped_ptr<base::DiscardableMemory> discardable_; |
39 DISALLOW_COPY_AND_ASSIGN(WebDiscardableMemoryImpl); | 39 DISALLOW_COPY_AND_ASSIGN(WebDiscardableMemoryImpl); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace webkit_glue | 42 } // namespace webkit_glue |
43 | 43 |
44 #endif // WEBKIT_GLUE_WEB_DISCARDABLE_MEMORY_IMPL_H_ | 44 #endif // WEBKIT_GLUE_WEB_DISCARDABLE_MEMORY_IMPL_H_ |
OLD | NEW |