summaryrefslogtreecommitdiffstats
path: root/webkit/blob
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 22:05:28 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 22:05:28 +0000
commitd0af7203fccbb273cd4ee112b12ca93c18441efa (patch)
tree6410ef23531cf87aac1981a74326ced5a25fa0df /webkit/blob
parent7f71e75e4eb1decfdc52f28b2ec48671d09f373b (diff)
downloadchromium_src-d0af7203fccbb273cd4ee112b12ca93c18441efa.zip
chromium_src-d0af7203fccbb273cd4ee112b12ca93c18441efa.tar.gz
chromium_src-d0af7203fccbb273cd4ee112b12ca93c18441efa.tar.bz2
Revert "FBTF: Another big ctor/dtor cleanup found by automated tools."
This reverts commit 27ea47d65cf8767f350113d5ad9e25170efde811 (r61237). BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3609005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/blob')
-rw-r--r--webkit/blob/blob_data.cc12
-rw-r--r--webkit/blob/blob_data.h11
2 files changed, 7 insertions, 16 deletions
diff --git a/webkit/blob/blob_data.cc b/webkit/blob/blob_data.cc
index 026408e..838014b 100644
--- a/webkit/blob/blob_data.cc
+++ b/webkit/blob/blob_data.cc
@@ -17,16 +17,6 @@ using WebKit::WebString;
namespace webkit_blob {
-BlobData::Item::Item()
- : type_(TYPE_DATA),
- offset_(0),
- length_(0) {
-}
-
-BlobData::Item::~Item() {}
-
-BlobData::BlobData() {}
-
BlobData::BlobData(const WebBlobData& data) {
size_t i = 0;
WebBlobData::Item item;
@@ -62,6 +52,4 @@ BlobData::BlobData(const WebBlobData& data) {
content_disposition_ = data.contentDisposition().utf8().data();
}
-BlobData::~BlobData() {}
-
} // namespace webkit_blob
diff --git a/webkit/blob/blob_data.h b/webkit/blob/blob_data.h
index 4d84587..ddd0e65 100644
--- a/webkit/blob/blob_data.h
+++ b/webkit/blob/blob_data.h
@@ -29,8 +29,11 @@ class BlobData : public base::RefCounted<BlobData> {
class Item {
public:
- Item();
- ~Item();
+ Item()
+ : type_(TYPE_DATA),
+ offset_(0),
+ length_(0) {
+ }
Type type() const { return type_; }
const std::string& data() const { return data_; }
@@ -87,7 +90,7 @@ class BlobData : public base::RefCounted<BlobData> {
base::Time expected_modification_time_;
};
- BlobData();
+ BlobData() { }
explicit BlobData(const WebKit::WebBlobData& data);
void AppendData(const std::string& data) {
@@ -137,7 +140,7 @@ class BlobData : public base::RefCounted<BlobData> {
private:
friend class base::RefCounted<BlobData>;
- virtual ~BlobData();
+ virtual ~BlobData() { }
std::string content_type_;
std::string content_disposition_;