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

Side by Side Diff: content/renderer/pepper/pepper_file_system_host.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/renderer/pepper/pepper_file_system_host.h" 5 #include "content/renderer/pepper/pepper_file_system_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/child/child_thread_impl.h" 9 #include "content/child/child_thread_impl.h"
10 #include "content/child/fileapi/file_system_dispatcher.h" 10 #include "content/child/fileapi/file_system_dispatcher.h"
11 #include "content/common/pepper_file_util.h" 11 #include "content/common/pepper_file_util.h"
12 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
13 #include "content/public/renderer/render_view.h" 12 #include "content/public/renderer/render_view.h"
14 #include "content/public/renderer/renderer_ppapi_host.h" 13 #include "content/public/renderer/renderer_ppapi_host.h"
14 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
15 #include "ppapi/c/pp_errors.h" 15 #include "ppapi/c/pp_errors.h"
16 #include "ppapi/host/dispatch_host_message.h" 16 #include "ppapi/host/dispatch_host_message.h"
17 #include "ppapi/host/ppapi_host.h" 17 #include "ppapi/host/ppapi_host.h"
18 #include "ppapi/proxy/ppapi_messages.h" 18 #include "ppapi/proxy/ppapi_messages.h"
19 #include "ppapi/shared_impl/file_system_util.h" 19 #include "ppapi/shared_impl/file_system_util.h"
20 #include "ppapi/shared_impl/file_type_conversion.h" 20 #include "ppapi/shared_impl/file_type_conversion.h"
21 #include "storage/common/fileapi/file_system_util.h" 21 #include "storage/common/fileapi/file_system_util.h"
22 #include "third_party/WebKit/public/web/WebDocument.h" 22 #include "third_party/WebKit/public/web/WebDocument.h"
23 #include "third_party/WebKit/public/web/WebFrame.h" 23 #include "third_party/WebKit/public/web/WebFrame.h"
24 #include "third_party/WebKit/public/web/WebView.h" 24 #include "third_party/WebKit/public/web/WebView.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const std::string& /* name_unused */, 70 const std::string& /* name_unused */,
71 const GURL& root) { 71 const GURL& root) {
72 opened_ = true; 72 opened_ = true;
73 root_url_ = root; 73 root_url_ = root;
74 reply_context_.params.set_result(PP_OK); 74 reply_context_.params.set_result(PP_OK);
75 host()->SendReply(reply_context_, PpapiPluginMsg_FileSystem_OpenReply()); 75 host()->SendReply(reply_context_, PpapiPluginMsg_FileSystem_OpenReply());
76 reply_context_ = ppapi::host::ReplyMessageContext(); 76 reply_context_ = ppapi::host::ReplyMessageContext();
77 } 77 }
78 78
79 void PepperFileSystemHost::DidFailOpenFileSystem(base::File::Error error) { 79 void PepperFileSystemHost::DidFailOpenFileSystem(base::File::Error error) {
80 int32 pp_error = ppapi::FileErrorToPepperError(error); 80 int32_t pp_error = ppapi::FileErrorToPepperError(error);
81 opened_ = (pp_error == PP_OK); 81 opened_ = (pp_error == PP_OK);
82 reply_context_.params.set_result(pp_error); 82 reply_context_.params.set_result(pp_error);
83 host()->SendReply(reply_context_, PpapiPluginMsg_FileSystem_OpenReply()); 83 host()->SendReply(reply_context_, PpapiPluginMsg_FileSystem_OpenReply());
84 reply_context_ = ppapi::host::ReplyMessageContext(); 84 reply_context_ = ppapi::host::ReplyMessageContext();
85 } 85 }
86 86
87 int32_t PepperFileSystemHost::OnHostMsgOpen( 87 int32_t PepperFileSystemHost::OnHostMsgOpen(
88 ppapi::host::HostMessageContext* context, 88 ppapi::host::HostMessageContext* context,
89 int64_t expected_size) { 89 int64_t expected_size) {
90 // Not allow multiple opens. 90 // Not allow multiple opens.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const std::string root_name = ppapi::IsolatedFileSystemTypeToRootName(type); 136 const std::string root_name = ppapi::IsolatedFileSystemTypeToRootName(type);
137 if (root_name.empty()) 137 if (root_name.empty())
138 return PP_ERROR_BADARGUMENT; 138 return PP_ERROR_BADARGUMENT;
139 root_url_ = GURL(storage::GetIsolatedFileSystemRootURIString( 139 root_url_ = GURL(storage::GetIsolatedFileSystemRootURIString(
140 url.GetOrigin(), fsid, root_name)); 140 url.GetOrigin(), fsid, root_name));
141 opened_ = true; 141 opened_ = true;
142 return PP_OK; 142 return PP_OK;
143 } 143 }
144 144
145 } // namespace content 145 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_file_system_host.h ('k') | content/renderer/pepper/pepper_graphics_2d_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698