summaryrefslogtreecommitdiffstats
path: root/chrome/browser/privacy_blacklist
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 01:17:54 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 01:17:54 +0000
commit7a12518454d36fb4ac79431f56106b38cd2482ab (patch)
treeff2fa2bc8761460b9345e0d9c9a1def5a8e5f663 /chrome/browser/privacy_blacklist
parent779c33638f4b10def2d103f4703fa5bf58899aec (diff)
downloadchromium_src-7a12518454d36fb4ac79431f56106b38cd2482ab.zip
chromium_src-7a12518454d36fb4ac79431f56106b38cd2482ab.tar.gz
chromium_src-7a12518454d36fb4ac79431f56106b38cd2482ab.tar.bz2
Make the Blacklist in the URL request context refcounted, since the Profile gets destroyed before the IO thread.
Also some other random misc. cleanup. TBR=darin BUG=none TEST=none Review URL: http://codereview.chromium.org/554140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37596 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/privacy_blacklist')
-rw-r--r--chrome/browser/privacy_blacklist/blacklist.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/privacy_blacklist/blacklist.h b/chrome/browser/privacy_blacklist/blacklist.h
index 4101ac57..181b7f0 100644
--- a/chrome/browser/privacy_blacklist/blacklist.h
+++ b/chrome/browser/privacy_blacklist/blacklist.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/linked_ptr.h"
+#include "base/ref_counted.h"
#include "googleurl/src/gurl.h"
#include "net/url_request/url_request.h"
@@ -27,7 +28,7 @@ class PrefService;
// attributes. Each time a resources matches a pattern the filter-attributes
// are used to determine how the browser handles the matching resource.
////////////////////////////////////////////////////////////////////////////////
-class Blacklist {
+class Blacklist : public base::RefCountedThreadSafe<Blacklist> {
public:
class Entry;
class Provider;