BlinkGCPlugin: Factor out CheckFieldsVisitor from BlinkGCPlugin.cpp.
[chromium-blink-merge.git] / content / common / pepper_file_util.h
blob25a586dfc6d7b21f26b6664d64a908703d2a8d39
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.
5 #ifndef CONTENT_COMMON_PEPPER_FILE_UTIL_H_
6 #define CONTENT_COMMON_PEPPER_FILE_UTIL_H_
8 #include "base/files/file.h"
9 #include "base/sync_socket.h"
10 #include "ppapi/c/pp_file_info.h"
11 #include "storage/common/fileapi/file_system_types.h"
13 #if !defined(ENABLE_PLUGINS)
14 #error "Plugins should be enabled"
15 #endif
17 namespace content {
19 storage::FileSystemType PepperFileSystemTypeToFileSystemType(
20 PP_FileSystemType type);
22 int IntegerFromSyncSocketHandle(
23 const base::SyncSocket::Handle& socket_handle);
25 } // namespace content
27 #endif // CONTENT_COMMON_PEPPER_FILE_UTIL_H_