Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: content/common/pepper_file_util.h

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/native_types.typemap ('k') | content/common/pepper_plugin_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_PEPPER_FILE_UTIL_H_ 5 #ifndef CONTENT_COMMON_PEPPER_FILE_UTIL_H_
6 #define CONTENT_COMMON_PEPPER_FILE_UTIL_H_ 6 #define CONTENT_COMMON_PEPPER_FILE_UTIL_H_
7 7
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/sync_socket.h" 9 #include "base/sync_socket.h"
10 #include "ppapi/c/pp_file_info.h" 10 #include "ppapi/c/pp_file_info.h"
11 #include "ppapi/features/features.h"
11 #include "storage/common/fileapi/file_system_types.h" 12 #include "storage/common/fileapi/file_system_types.h"
12 13
13 #if !defined(ENABLE_PLUGINS) 14 #if !BUILDFLAG(ENABLE_PLUGINS)
14 #error "Plugins should be enabled" 15 #error "Plugins should be enabled"
15 #endif 16 #endif
16 17
17 namespace content { 18 namespace content {
18 19
19 storage::FileSystemType PepperFileSystemTypeToFileSystemType( 20 storage::FileSystemType PepperFileSystemTypeToFileSystemType(
20 PP_FileSystemType type); 21 PP_FileSystemType type);
21 22
22 int IntegerFromSyncSocketHandle( 23 int IntegerFromSyncSocketHandle(
23 const base::SyncSocket::Handle& socket_handle); 24 const base::SyncSocket::Handle& socket_handle);
24 25
25 } // namespace content 26 } // namespace content
26 27
27 #endif // CONTENT_COMMON_PEPPER_FILE_UTIL_H_ 28 #endif // CONTENT_COMMON_PEPPER_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « content/common/native_types.typemap ('k') | content/common/pepper_plugin_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698