diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-22 21:15:53 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-22 21:15:53 +0000 |
commit | 3ea7dc5140fe9b2e3d91f12e3a6d7f54eb4762ee (patch) | |
tree | 6e727ae81e3136d0cc153e8269f84f73638c3288 /webkit/quota | |
parent | ec23f52894e3660862bc822940ae8899e1fef2df (diff) | |
download | chromium_src-3ea7dc5140fe9b2e3d91f12e3a6d7f54eb4762ee.zip chromium_src-3ea7dc5140fe9b2e3d91f12e3a6d7f54eb4762ee.tar.gz chromium_src-3ea7dc5140fe9b2e3d91f12e3a6d7f54eb4762ee.tar.bz2 |
Fix a memory leak and add the webkit_quota library to the project.
BUG=73268
TEST=look at the memory bots this time
Review URL: http://codereview.chromium.org/6469036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75633 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/quota')
-rw-r--r-- | webkit/quota/special_storage_policy.cc | 13 | ||||
-rw-r--r-- | webkit/quota/special_storage_policy.h | 6 | ||||
-rw-r--r-- | webkit/quota/webkit_quota.gypi | 27 |
3 files changed, 46 insertions, 0 deletions
diff --git a/webkit/quota/special_storage_policy.cc b/webkit/quota/special_storage_policy.cc new file mode 100644 index 0000000..c428346 --- /dev/null +++ b/webkit/quota/special_storage_policy.cc @@ -0,0 +1,13 @@ +// Copyright (c) 2011 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. + +#include "webkit/quota/special_storage_policy.h" + +namespace quota { + +SpecialStoragePolicy::SpecialStoragePolicy() {} + +SpecialStoragePolicy::~SpecialStoragePolicy() {} + +} // namespace quota diff --git a/webkit/quota/special_storage_policy.h b/webkit/quota/special_storage_policy.h index 1f17dac..90526f0 100644 --- a/webkit/quota/special_storage_policy.h +++ b/webkit/quota/special_storage_policy.h @@ -19,11 +19,17 @@ namespace quota { class SpecialStoragePolicy : public base::RefCountedThreadSafe<SpecialStoragePolicy> { public: + SpecialStoragePolicy(); + // Protected storage is not subject to removal by the browsing data remover. virtual bool IsStorageProtected(const GURL& origin) = 0; // Unlimited storage is not subject to 'quotas'. virtual bool IsStorageUnlimited(const GURL& origin) = 0; + + protected: + friend class base::RefCountedThreadSafe<SpecialStoragePolicy>; + virtual ~SpecialStoragePolicy(); }; } // namespace quota diff --git a/webkit/quota/webkit_quota.gypi b/webkit/quota/webkit_quota.gypi new file mode 100644 index 0000000..b738d43 --- /dev/null +++ b/webkit/quota/webkit_quota.gypi @@ -0,0 +1,27 @@ +# Copyright (c) 2011 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. + +{ + 'targets': [ + { + 'target_name': 'quota', + 'type': '<(library)', + 'msvs_guid': '36A9AAD2-10DD-42CF-BF51-3CC79D26FCB4', + 'dependencies': [ + '<(DEPTH)/base/base.gyp:base', + ], + 'sources': [ + 'special_storage_policy.cc', + 'special_storage_policy.h', + ], + 'conditions': [ + ['inside_chromium_build==0', { + 'dependencies': [ + '<(DEPTH)/webkit/support/setup_third_party.gyp:third_party_headers', + ], + }], + ], + }, + ], +} |