OLD | NEW |
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 #include "chrome/browser/renderer_host/pepper/pepper_isolated_file_system_messag
e_filter.h" | 5 #include "chrome/browser/renderer_host/pepper/pepper_isolated_file_system_messag
e_filter.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
11 #include "chrome/common/pepper_permission_util.h" | 14 #include "chrome/common/pepper_permission_util.h" |
12 #include "content/public/browser/browser_ppapi_host.h" | 15 #include "content/public/browser/browser_ppapi_host.h" |
13 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/child_process_security_policy.h" | 17 #include "content/public/browser/child_process_security_policy.h" |
15 #include "content/public/browser/render_view_host.h" | 18 #include "content/public/browser/render_view_host.h" |
16 #if defined(ENABLE_EXTENSIONS) | 19 #if defined(ENABLE_EXTENSIONS) |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // Grant full access of isolated filesystem to renderer process. | 193 // Grant full access of isolated filesystem to renderer process. |
191 content::ChildProcessSecurityPolicy* policy = | 194 content::ChildProcessSecurityPolicy* policy = |
192 content::ChildProcessSecurityPolicy::GetInstance(); | 195 content::ChildProcessSecurityPolicy::GetInstance(); |
193 policy->GrantCreateReadWriteFileSystem(render_process_id_, fsid); | 196 policy->GrantCreateReadWriteFileSystem(render_process_id_, fsid); |
194 | 197 |
195 context->reply_msg = PpapiPluginMsg_IsolatedFileSystem_BrowserOpenReply(fsid); | 198 context->reply_msg = PpapiPluginMsg_IsolatedFileSystem_BrowserOpenReply(fsid); |
196 return PP_OK; | 199 return PP_OK; |
197 } | 200 } |
198 | 201 |
199 } // namespace chrome | 202 } // namespace chrome |
OLD | NEW |