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