Index: ui/base/resource/resource_bundle.h |
diff --git a/ui/base/resource/resource_bundle.h b/ui/base/resource/resource_bundle.h |
index 570de5c12fd7a04b1a2add446fd01db08c0c1067..f127ae10cf998d932e87480dc455b5e536c57555 100644 |
--- a/ui/base/resource/resource_bundle.h |
+++ b/ui/base/resource/resource_bundle.h |
@@ -15,6 +15,7 @@ |
#include "base/gtest_prod_util.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/scoped_vector.h" |
+#include "base/memory/weak_ptr.h" |
#include "base/platform_file.h" |
#include "base/string16.h" |
#include "base/string_piece.h" |
@@ -37,7 +38,7 @@ class ResourceHandle; |
// ResourceBundle is a central facility to load images and other resources, |
// such as theme graphics. Every resource is loaded only once. |
-class UI_EXPORT ResourceBundle { |
+class UI_EXPORT ResourceBundle : public base::SupportsWeakPtr<ResourceBundle> { |
public: |
// An enumeration of the various font styles used throughout Chrome. |
// The following holds true for the font sizes: |
@@ -247,6 +248,8 @@ class UI_EXPORT ResourceBundle { |
FRIEND_TEST_ALL_PREFIXES(ResourceBundle, GetRawDataResource); |
FRIEND_TEST_ALL_PREFIXES(ResourceBundle, LoadDataResourceBytes); |
FRIEND_TEST_ALL_PREFIXES(ResourceBundle, LocaleDataPakExists); |
+ FRIEND_TEST_ALL_PREFIXES(ResourceBundle, GetImageNamed); |
+ FRIEND_TEST_ALL_PREFIXES(ResourceBundle, ImageLifetime); |
tony
2012/09/18 18:43:42
Nit: In a separate change, it would probably be wo
|
class ResourceBundleImageSource; |
friend class ResourceBundleImageSource; |