Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: webkit/child/web_discardable_memory_impl.h

Issue 61553006: Rename WebKit namespace to blink (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_ 5 #ifndef WEBKIT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_
6 #define WEBKIT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_ 6 #define WEBKIT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/discardable_memory.h" 9 #include "base/memory/discardable_memory.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "third_party/WebKit/public/platform/WebDiscardableMemory.h" 11 #include "third_party/WebKit/public/platform/WebDiscardableMemory.h"
12 #include "webkit/child/webkit_child_export.h" 12 #include "webkit/child/webkit_child_export.h"
13 13
14 namespace WebKit { 14 namespace blink {
15 class WebDiscardableMemory; 15 class WebDiscardableMemory;
16 } 16 }
17 17
18 namespace webkit_glue { 18 namespace webkit_glue {
19 19
20 // Implementation of WebDiscardableMemory that is responsible for allocating 20 // Implementation of WebDiscardableMemory that is responsible for allocating
21 // discardable memory. 21 // discardable memory.
22 class WEBKIT_CHILD_EXPORT WebDiscardableMemoryImpl 22 class WEBKIT_CHILD_EXPORT WebDiscardableMemoryImpl
23 : NON_EXPORTED_BASE(public WebKit::WebDiscardableMemory) { 23 : NON_EXPORTED_BASE(public blink::WebDiscardableMemory) {
24 public: 24 public:
25 virtual ~WebDiscardableMemoryImpl(); 25 virtual ~WebDiscardableMemoryImpl();
26 26
27 static scoped_ptr<WebDiscardableMemoryImpl> CreateLockedMemory(size_t size); 27 static scoped_ptr<WebDiscardableMemoryImpl> CreateLockedMemory(size_t size);
28 28
29 // WebKit::WebDiscardableMemory: 29 // blink::WebDiscardableMemory:
30 virtual bool lock(); 30 virtual bool lock();
31 virtual void unlock(); 31 virtual void unlock();
32 virtual void* data(); 32 virtual void* data();
33 33
34 private: 34 private:
35 WebDiscardableMemoryImpl(scoped_ptr<base::DiscardableMemory> memory); 35 WebDiscardableMemoryImpl(scoped_ptr<base::DiscardableMemory> memory);
36 36
37 scoped_ptr<base::DiscardableMemory> discardable_; 37 scoped_ptr<base::DiscardableMemory> discardable_;
38 38
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_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_ 44 #endif // WEBKIT_CHILD_WEB_DISCARDABLE_MEMORY_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/child/touch_fling_gesture_curve_unittest.cc ('k') | webkit/child/webfallbackthemeengine_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698