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 "content/browser/renderer_host/pepper/pepper_file_system_browser_host.h
" | 5 #include "content/browser/renderer_host/pepper/pepper_file_system_browser_host.h
" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "content/browser/renderer_host/pepper/pepper_file_io_host.h" | 9 #include "content/browser/renderer_host/pepper/pepper_file_io_host.h" |
10 #include "content/browser/renderer_host/pepper/quota_reservation.h" | 10 #include "content/browser/renderer_host/pepper/quota_reservation.h" |
11 #include "content/common/pepper_file_util.h" | 11 #include "content/common/pepper_file_util.h" |
12 #include "content/public/browser/browser_ppapi_host.h" | 12 #include "content/public/browser/browser_ppapi_host.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/plugin_service.h" | 14 #include "content/public/browser/plugin_service.h" |
15 #include "content/public/browser/render_process_host.h" | 15 #include "content/public/browser/render_process_host.h" |
16 #include "content/public/browser/storage_partition.h" | 16 #include "content/public/browser/storage_partition.h" |
17 #include "content/public/common/pepper_plugin_info.h" | 17 #include "content/public/common/pepper_plugin_info.h" |
18 #include "net/base/mime_util.h" | 18 #include "net/base/mime_util.h" |
19 #include "ppapi/c/pp_errors.h" | 19 #include "ppapi/c/pp_errors.h" |
20 #include "ppapi/host/dispatch_host_message.h" | 20 #include "ppapi/host/dispatch_host_message.h" |
21 #include "ppapi/host/ppapi_host.h" | 21 #include "ppapi/host/ppapi_host.h" |
22 #include "ppapi/proxy/ppapi_messages.h" | 22 #include "ppapi/proxy/ppapi_messages.h" |
23 #include "ppapi/shared_impl/file_system_util.h" | 23 #include "ppapi/shared_impl/file_system_util.h" |
24 #include "ppapi/shared_impl/file_type_conversion.h" | 24 #include "ppapi/shared_impl/file_type_conversion.h" |
| 25 #include "storage/browser/fileapi/file_system_operation_runner.h" |
| 26 #include "storage/browser/fileapi/isolated_context.h" |
| 27 #include "storage/browser/quota/quota_manager_proxy.h" |
25 #include "storage/common/fileapi/file_system_util.h" | 28 #include "storage/common/fileapi/file_system_util.h" |
26 #include "storage/common/quota/quota_types.h" | 29 #include "storage/common/quota/quota_types.h" |
27 #include "webkit/browser/fileapi/file_system_operation_runner.h" | |
28 #include "webkit/browser/fileapi/isolated_context.h" | |
29 #include "webkit/browser/quota/quota_manager_proxy.h" | |
30 | 30 |
31 namespace content { | 31 namespace content { |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 // This is the minimum amount of quota we reserve per file system. | 35 // This is the minimum amount of quota we reserve per file system. |
36 const int64_t kMinimumQuotaReservationSize = 1024 * 1024; // 1 MB | 36 const int64_t kMinimumQuotaReservationSize = 1024 * 1024; // 1 MB |
37 | 37 |
38 scoped_refptr<storage::FileSystemContext> GetFileSystemContextFromRenderId( | 38 scoped_refptr<storage::FileSystemContext> GetFileSystemContextFromRenderId( |
39 int render_process_id) { | 39 int render_process_id) { |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 if (!IsAsciiAlpha(*it) && !IsAsciiDigit(*it) && *it != '.' && *it != '_' && | 501 if (!IsAsciiAlpha(*it) && !IsAsciiDigit(*it) && *it != '.' && *it != '_' && |
502 *it != '-') { | 502 *it != '-') { |
503 LOG(WARNING) << "Failed to generate a plugin id."; | 503 LOG(WARNING) << "Failed to generate a plugin id."; |
504 return std::string(); | 504 return std::string(); |
505 } | 505 } |
506 } | 506 } |
507 return output; | 507 return output; |
508 } | 508 } |
509 | 509 |
510 } // namespace content | 510 } // namespace content |
OLD | NEW |