Revert 268405 "Make sure that ScratchBuffer::Allocate() always r..."
[chromium-blink-merge.git] / content / browser / renderer_host / pepper / pepper_security_helper.h
blobd0a39831324cb998bbb01a2022d9b03ab4dbe1fc
1 // Copyright 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 CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SECURITY_HELPER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SECURITY_HELPER_H_
8 #include "base/files/file_path.h"
9 #include "content/common/content_export.h"
10 #include "webkit/browser/fileapi/file_system_url.h"
12 namespace content {
14 // Helper function that returns whether or not the child process is allowed to
15 // open the specified |file| with the specified |pp_open_flags|.
16 CONTENT_EXPORT bool CanOpenWithPepperFlags(int pp_open_flags,
17 int child_id,
18 const base::FilePath& file);
20 // Helper function that returns whether or not the child process is allowed to
21 // open the specified file system |url| with the specified |pp_open_flags|.
22 CONTENT_EXPORT bool CanOpenFileSystemURLWithPepperFlags(
23 int pp_open_flags,
24 int child_id,
25 const fileapi::FileSystemURL& url);
27 } // namespace content
29 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SECURITY_HELPER_H_