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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.h

Issue 19770009: PepperFileRefHost: Port to use explicit permission grants in ChildProcessSecurityPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0044-write-support-remove-child-process-security-policy-bitmask-usage
Patch Set: merge Created 7 years, 5 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/browser/renderer_host/pepper/pepper_file_ref_host.h" 10 #include "content/browser/renderer_host/pepper/pepper_file_ref_host.h"
(...skipping 29 matching lines...) Expand all
40 virtual int32_t Query(ppapi::host::ReplyMessageContext context) OVERRIDE; 40 virtual int32_t Query(ppapi::host::ReplyMessageContext context) OVERRIDE;
41 virtual int32_t ReadDirectoryEntries( 41 virtual int32_t ReadDirectoryEntries(
42 ppapi::host::ReplyMessageContext context) OVERRIDE; 42 ppapi::host::ReplyMessageContext context) OVERRIDE;
43 virtual int32_t GetAbsolutePath(ppapi::host::ReplyMessageContext context) 43 virtual int32_t GetAbsolutePath(ppapi::host::ReplyMessageContext context)
44 OVERRIDE; 44 OVERRIDE;
45 45
46 virtual fileapi::FileSystemURL GetFileSystemURL() const OVERRIDE; 46 virtual fileapi::FileSystemURL GetFileSystemURL() const OVERRIDE;
47 virtual std::string GetFileSystemURLSpec() const OVERRIDE; 47 virtual std::string GetFileSystemURLSpec() const OVERRIDE;
48 virtual base::FilePath GetExternalPath() const OVERRIDE; 48 virtual base::FilePath GetExternalPath() const OVERRIDE;
49 49
50 virtual int32_t HasPermissions(int permissions) const OVERRIDE; 50 virtual int32_t CanRead() const OVERRIDE;
51 virtual int32_t CanWrite() const OVERRIDE;
52 virtual int32_t CanCreate() const OVERRIDE;
53 virtual int32_t CanReadWrite() const OVERRIDE;
51 54
52 private: 55 private:
53 // Generic reply callback. 56 // Generic reply callback.
54 void DidFinish(ppapi::host::ReplyMessageContext reply_context, 57 void DidFinish(ppapi::host::ReplyMessageContext reply_context,
55 const IPC::Message& msg, 58 const IPC::Message& msg,
56 base::PlatformFileError error); 59 base::PlatformFileError error);
57 60
58 // Operation specific callbacks. 61 // Operation specific callbacks.
59 void GetMetadataComplete( 62 void GetMetadataComplete(
60 ppapi::host::ReplyMessageContext reply_context, 63 ppapi::host::ReplyMessageContext reply_context,
(...skipping 14 matching lines...) Expand all
75 std::string path_; 78 std::string path_;
76 79
77 mutable fileapi::FileSystemURL fs_url_; 80 mutable fileapi::FileSystemURL fs_url_;
78 81
79 base::WeakPtrFactory<PepperInternalFileRefBackend> weak_factory_; 82 base::WeakPtrFactory<PepperInternalFileRefBackend> weak_factory_;
80 }; 83 };
81 84
82 } // namespace content 85 } // namespace content
83 86
84 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND _H_ 87 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698