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