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

Side by Side Diff: content/browser/renderer_host/backing_store_manager.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: fix exports for switches, content_main Created 9 years, 3 months 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/process.h" 12 #include "base/process.h"
13 #include "content/common/content_export.h"
13 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
14 #include "ui/gfx/size.h" 15 #include "ui/gfx/size.h"
15 #include "ui/gfx/surface/transport_dib.h" 16 #include "ui/gfx/surface/transport_dib.h"
16 17
17 class BackingStore; 18 class BackingStore;
18 class RenderWidgetHost; 19 class RenderWidgetHost;
19 20
20 // This class manages backing stores in the browsr. Every RenderWidgetHost is 21 // This class manages backing stores in the browsr. Every RenderWidgetHost is
21 // associated with a backing store which it requests from this class. The 22 // 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 23 // hosts don't maintain any references to the backing stores. These backing
(...skipping 29 matching lines...) Expand all
52 bool* needs_full_paint); 53 bool* needs_full_paint);
53 54
54 // Returns a matching backing store for the host. 55 // Returns a matching backing store for the host.
55 // Returns NULL if we fail to find one. 56 // Returns NULL if we fail to find one.
56 static BackingStore* Lookup(RenderWidgetHost* host); 57 static BackingStore* Lookup(RenderWidgetHost* host);
57 58
58 // Removes the backing store for the host. 59 // Removes the backing store for the host.
59 static void RemoveBackingStore(RenderWidgetHost* host); 60 static void RemoveBackingStore(RenderWidgetHost* host);
60 61
61 // Removes all backing stores. 62 // Removes all backing stores.
62 static void RemoveAllBackingStores(); 63 CONTENT_EXPORT static void RemoveAllBackingStores();
63 64
64 // Expires the given backing store. This emulates something getting evicted 65 // Expires the given backing store. This emulates something getting evicted
65 // from the cache for the purpose of testing. Returns true if the host was 66 // from the cache for the purpose of testing. Returns true if the host was
66 // removed, false if it wasn't found. 67 // removed, false if it wasn't found.
67 static bool ExpireBackingStoreForTest(RenderWidgetHost* host); 68 static bool ExpireBackingStoreForTest(RenderWidgetHost* host);
68 69
69 // Current size in bytes of the backing store cache. 70 // Current size in bytes of the backing store cache.
70 static size_t MemorySize(); 71 CONTENT_EXPORT static size_t MemorySize();
71 72
72 private: 73 private:
73 // Not intended for instantiation. 74 // Not intended for instantiation.
74 BackingStoreManager() {} 75 BackingStoreManager() {}
75 76
76 DISALLOW_COPY_AND_ASSIGN(BackingStoreManager); 77 DISALLOW_COPY_AND_ASSIGN(BackingStoreManager);
77 }; 78 };
78 79
79 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ 80 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698