summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 22:08:56 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 22:08:56 +0000
commit0034fcdedcb38e955264fde859e7c60edacca948 (patch)
treeec891f4b28fe481acea1363fea2423787b8b6d4b /webkit/fileapi
parent29ad68e431466e1fdc31791c1068505f329a55b8 (diff)
downloadchromium_src-0034fcdedcb38e955264fde859e7c60edacca948.zip
chromium_src-0034fcdedcb38e955264fde859e7c60edacca948.tar.gz
chromium_src-0034fcdedcb38e955264fde859e7c60edacca948.tar.bz2
Clean-up inline members of nested classes (webkit/)
Due to a bug, the Clang-plugin style checker failed to warn about inline constructors, destructors, non-empty virtual methods, etc. for nested classes. The plugin has been fixed, and this patch is part of a clean-up of all the code that now causes the plugin to issue errors. BUG=139346 Review URL: https://chromiumcodereview.appspot.com/10829258 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi')
-rw-r--r--webkit/fileapi/file_system_file_util.cc25
-rw-r--r--webkit/fileapi/file_system_file_util.h8
-rw-r--r--webkit/fileapi/webkit_fileapi.gypi1
3 files changed, 30 insertions, 4 deletions
diff --git a/webkit/fileapi/file_system_file_util.cc b/webkit/fileapi/file_system_file_util.cc
new file mode 100644
index 0000000..46b8b02
--- /dev/null
+++ b/webkit/fileapi/file_system_file_util.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 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/fileapi/file_system_file_util.h"
+
+namespace fileapi {
+
+FilePath FileSystemFileUtil::EmptyFileEnumerator::Next() {
+ return FilePath();
+}
+
+int64 FileSystemFileUtil::EmptyFileEnumerator::Size() {
+ return 0;
+}
+
+base::Time FileSystemFileUtil::EmptyFileEnumerator::LastModifiedTime() {
+ return base::Time();
+}
+
+bool FileSystemFileUtil::EmptyFileEnumerator::IsDirectory() {
+ return false;
+}
+
+} // namespace fileapi
diff --git a/webkit/fileapi/file_system_file_util.h b/webkit/fileapi/file_system_file_util.h
index 8205dfd..26b98dd 100644
--- a/webkit/fileapi/file_system_file_util.h
+++ b/webkit/fileapi/file_system_file_util.h
@@ -61,10 +61,10 @@ class FILEAPI_EXPORT FileSystemFileUtil {
};
class EmptyFileEnumerator : public AbstractFileEnumerator {
- virtual FilePath Next() OVERRIDE { return FilePath(); }
- virtual int64 Size() OVERRIDE { return 0; }
- virtual base::Time LastModifiedTime() OVERRIDE { return base::Time(); }
- virtual bool IsDirectory() OVERRIDE { return false; }
+ virtual FilePath Next() OVERRIDE;
+ virtual int64 Size() OVERRIDE;
+ virtual base::Time LastModifiedTime() OVERRIDE;
+ virtual bool IsDirectory() OVERRIDE;
};
virtual ~FileSystemFileUtil() {}
diff --git a/webkit/fileapi/webkit_fileapi.gypi b/webkit/fileapi/webkit_fileapi.gypi
index 7bcb666..b5928bd 100644
--- a/webkit/fileapi/webkit_fileapi.gypi
+++ b/webkit/fileapi/webkit_fileapi.gypi
@@ -30,6 +30,7 @@
'file_system_directory_database.h',
'file_system_file_stream_reader.cc',
'file_system_file_stream_reader.h',
+ 'file_system_file_util.cc',
'file_system_file_util.h',
'file_system_file_util_proxy.cc',
'file_system_file_util_proxy.h',