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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 #include "content/browser/renderer_host/pepper/pepper_external_file_ref_backend. h" 5 #include "content/browser/renderer_host/pepper/pepper_external_file_ref_backend. h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util_proxy.h" 10 #include "base/files/file_util_proxy.h"
11 #include "content/browser/child_process_security_policy_impl.h" 11 #include "content/browser/child_process_security_policy_impl.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "ppapi/c/pp_errors.h" 13 #include "ppapi/c/pp_errors.h"
14 #include "ppapi/c/pp_time.h" 14 #include "ppapi/c/pp_time.h"
15 #include "ppapi/host/ppapi_host.h" 15 #include "ppapi/host/ppapi_host.h"
16 #include "ppapi/proxy/ppapi_messages.h" 16 #include "ppapi/proxy/ppapi_messages.h"
17 #include "ppapi/shared_impl/file_type_conversion.h" 17 #include "ppapi/shared_impl/file_type_conversion.h"
18 #include "ppapi/shared_impl/time_conversion.h" 18 #include "ppapi/shared_impl/time_conversion.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 PepperExternalFileRefBackend::PepperExternalFileRefBackend( 22 PepperExternalFileRefBackend::PepperExternalFileRefBackend(
23 ppapi::host::PpapiHost* host, 23 ppapi::host::PpapiHost* host,
24 int render_process_id, 24 int render_process_id,
25 const base::FilePath& path) 25 const base::FilePath& path)
26 : host_(host), 26 : host_(host),
27 path_(path), 27 path_(path),
28 render_process_id_(render_process_id), 28 render_process_id_(render_process_id),
29 weak_factory_(this) { 29 weak_factory_(this) {
30 task_runner_ = 30 task_runner_ = BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE);
31 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE);
32 } 31 }
33 32
34 PepperExternalFileRefBackend::~PepperExternalFileRefBackend() {} 33 PepperExternalFileRefBackend::~PepperExternalFileRefBackend() {}
35 34
36 int32_t PepperExternalFileRefBackend::MakeDirectory( 35 int32_t PepperExternalFileRefBackend::MakeDirectory(
37 ppapi::host::ReplyMessageContext reply_context, 36 ppapi::host::ReplyMessageContext reply_context,
38 int32_t make_directory_flags) { 37 int32_t make_directory_flags) {
39 // This operation isn't supported for external filesystems. 38 // This operation isn't supported for external filesystems.
40 return PP_ERROR_NOACCESS; 39 return PP_ERROR_NOACCESS;
41 } 40 }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 file_info, PP_FILESYSTEMTYPE_EXTERNAL, &pp_file_info); 152 file_info, PP_FILESYSTEMTYPE_EXTERNAL, &pp_file_info);
154 } else { 153 } else {
155 memset(&pp_file_info, 0, sizeof(pp_file_info)); 154 memset(&pp_file_info, 0, sizeof(pp_file_info));
156 } 155 }
157 156
158 host_->SendReply(reply_context, 157 host_->SendReply(reply_context,
159 PpapiPluginMsg_FileRef_QueryReply(pp_file_info)); 158 PpapiPluginMsg_FileRef_QueryReply(pp_file_info));
160 } 159 }
161 160
162 } // namespace content 161 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698