Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / content / public / common / file_chooser_file_info.h
1 // Copyright 2014 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.
4
5 #ifndef CONTENT_PUBLIC_COMMON_FILE_CHOOSER_FILE_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_FILE_CHOOSER_FILE_INFO_H_
7
8 #include "base/files/file_path.h"
9 #include "base/time/time.h"
10 #include "content/common/content_export.h"
11 #include "url/gurl.h"
12
13 namespace content {
14
15 // Result of file chooser.
16 struct CONTENT_EXPORT FileChooserFileInfo {
17   FileChooserFileInfo();
18   ~FileChooserFileInfo();
19
20   base::FilePath file_path;
21
22   // For native files.
23   base::FilePath::StringType display_name;
24
25   // For non-native files.
26   GURL file_system_url;
27   base::Time modification_time;
28   int64 length;
29
30   bool is_directory;
31 };
32
33 }  // namespace content
34
35 #endif  // CONTENT_PUBLIC_COMMON_FILE_CHOOSER_FILE_INFO_H_