Add entry to histograms.xml for OverlyLargeOriginLength.
[chromium-blink-merge.git] / webkit / browser / fileapi / transient_file_util.h
blob1e67c852027a417f6340f0575ed3ec1835ffcd0b
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WEBKIT_BROWSER_FILEAPI_TRANSIENT_FILE_UTIL_H_
6 #define WEBKIT_BROWSER_FILEAPI_TRANSIENT_FILE_UTIL_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "webkit/browser/fileapi/local_file_util.h"
10 #include "webkit/browser/webkit_storage_browser_export.h"
12 namespace fileapi {
14 class FileSystemOperationContext;
16 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE TransientFileUtil
17 : public LocalFileUtil {
18 public:
19 TransientFileUtil() {}
20 virtual ~TransientFileUtil() {}
22 // LocalFileUtil overrides.
23 virtual webkit_blob::ScopedFile CreateSnapshotFile(
24 FileSystemOperationContext* context,
25 const FileSystemURL& url,
26 base::PlatformFileError* error,
27 base::PlatformFileInfo* file_info,
28 base::FilePath* platform_path) OVERRIDE;
30 private:
31 DISALLOW_COPY_AND_ASSIGN(TransientFileUtil);
34 } // namespace fileapi
36 #endif // WEBKIT_BROWSER_FILEAPI_TRANSIENT_FILE_UTIL_H_