gpu: Add memory tracing of GPU transfer buffers.
[chromium-blink-merge.git] / content / common / pepper_file_util.h
blob8c4744016c303bed0b26c9d572117735c2ee191e
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/memory/shared_memory.h"
10 #include "base/sync_socket.h"
11 #include "ppapi/c/pp_file_info.h"
12 #include "storage/common/fileapi/file_system_types.h"
14 #if !defined(ENABLE_PLUGINS)
15 #error "Plugins should be enabled"
16 #endif
18 namespace content {
20 storage::FileSystemType PepperFileSystemTypeToFileSystemType(
21 PP_FileSystemType type);
23 int IntegerFromSyncSocketHandle(
24 const base::SyncSocket::Handle& socket_handle);
26 } // namespace content
28 #endif // CONTENT_COMMON_PEPPER_FILE_UTIL_H_