Index: chrome/browser/safe_browsing/safe_browsing_service.h |
=================================================================== |
--- chrome/browser/safe_browsing/safe_browsing_service.h (revision 106177) |
+++ chrome/browser/safe_browsing/safe_browsing_service.h (working copy) |
@@ -18,6 +18,7 @@ |
#include "base/hash_tables.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
+#include "base/memory/weak_ptr.h" |
#include "base/observer_list.h" |
#include "base/synchronization/lock.h" |
#include "base/task.h" |
@@ -50,6 +51,7 @@ |
// Construction needs to happen on the main thread. |
class SafeBrowsingService |
: public base::RefCountedThreadSafe<SafeBrowsingService>, |
+ public base::SupportsWeakPtr<SafeBrowsingService>, |
mattm
2011/10/19 18:54:12
Are you aiming to make SafeBrowsingService not ref
Brian Ryner
2011/10/19 19:20:11
So, the issue I'm trying to address here is that c
mattm
2011/10/19 20:04:10
Still thinking this through, but I think we could:
mattm
2011/10/19 20:06:07
Oh, the one thing I forgot to mention: Since we ar
|
public NotificationObserver { |
public: |
class Client; |