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

Unified Diff: webkit/glue/plugins/pepper_resource_tracker.h

Issue 5682008: Make members of Singleton<T> private and only visible to the singleton type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 side-by-side diff with in-line comments
Download patch
Index: webkit/glue/plugins/pepper_resource_tracker.h
diff --git a/webkit/glue/plugins/pepper_resource_tracker.h b/webkit/glue/plugins/pepper_resource_tracker.h
index 09ff976e2d6cbcf95128c960432edccf450e51d8..0e463b4d982b07af6a2f37d3514dcde7e2f1eeee 100644
--- a/webkit/glue/plugins/pepper_resource_tracker.h
+++ b/webkit/glue/plugins/pepper_resource_tracker.h
@@ -12,11 +12,14 @@
#include "base/gtest_prod_util.h"
#include "base/hash_tables.h"
#include "base/ref_counted.h"
-#include "base/singleton.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_resource.h"
+namespace base {
+template <typename T> struct DefaultLazyInstanceTraits;
+}
+
namespace pepper {
class PluginInstance;
@@ -91,7 +94,7 @@ class ResourceTracker {
PluginInstance* GetInstance(PP_Instance instance);
private:
- friend struct DefaultSingletonTraits<ResourceTracker>;
+ friend struct base::DefaultLazyInstanceTraits<ResourceTracker>;
friend class Resource;
friend class ResourceTrackerTest;

Powered by Google App Engine
This is Rietveld 408576698