| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/process.h" | 13 #include "base/process.h" |
| 14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
| 15 #include "ui/gfx/size.h" | 15 #include "ui/gfx/size.h" |
| 16 #include "ui/gfx/surface/transport_dib.h" | 16 #include "ui/surface/transport_dib.h" |
| 17 | 17 |
| 18 class BackingStore; | 18 class BackingStore; |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class RenderWidgetHost; | 21 class RenderWidgetHost; |
| 22 } | 22 } |
| 23 | 23 |
| 24 // This class manages backing stores in the browsr. Every RenderWidgetHost is | 24 // This class manages backing stores in the browsr. Every RenderWidgetHost is |
| 25 // associated with a backing store which it requests from this class. The | 25 // associated with a backing store which it requests from this class. The |
| 26 // hosts don't maintain any references to the backing stores. These backing | 26 // hosts don't maintain any references to the backing stores. These backing |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 static size_t MemorySize(); | 71 static size_t MemorySize(); |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 // Not intended for instantiation. | 74 // Not intended for instantiation. |
| 75 BackingStoreManager() {} | 75 BackingStoreManager() {} |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(BackingStoreManager); | 77 DISALLOW_COPY_AND_ASSIGN(BackingStoreManager); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ | 80 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ |
| OLD | NEW |