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

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

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 | Annotate | Revision Log
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_file_ref_host.h" 5 #include "content/browser/renderer_host/pepper/pepper_file_ref_host.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "content/browser/renderer_host/pepper/pepper_external_file_ref_backend. h" 9 #include "content/browser/renderer_host/pepper/pepper_external_file_ref_backend. h"
10 #include "content/browser/renderer_host/pepper/pepper_file_system_browser_host.h " 10 #include "content/browser/renderer_host/pepper/pepper_file_system_browser_host.h "
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 PepperFileRefHost::~PepperFileRefHost() {} 104 PepperFileRefHost::~PepperFileRefHost() {}
105 105
106 bool PepperFileRefHost::IsFileRefHost() { return true; } 106 bool PepperFileRefHost::IsFileRefHost() { return true; }
107 107
108 PP_FileSystemType PepperFileRefHost::GetFileSystemType() const { 108 PP_FileSystemType PepperFileRefHost::GetFileSystemType() const {
109 return fs_type_; 109 return fs_type_;
110 } 110 }
111 111
112 fileapi::FileSystemURL PepperFileRefHost::GetFileSystemURL() const { 112 storage::FileSystemURL PepperFileRefHost::GetFileSystemURL() const {
113 if (backend_) 113 if (backend_)
114 return backend_->GetFileSystemURL(); 114 return backend_->GetFileSystemURL();
115 return fileapi::FileSystemURL(); 115 return storage::FileSystemURL();
116 } 116 }
117 117
118 base::FilePath PepperFileRefHost::GetExternalFilePath() const { 118 base::FilePath PepperFileRefHost::GetExternalFilePath() const {
119 if (backend_) 119 if (backend_)
120 return backend_->GetExternalFilePath(); 120 return backend_->GetExternalFilePath();
121 return base::FilePath(); 121 return base::FilePath();
122 } 122 }
123 123
124 base::WeakPtr<PepperFileSystemBrowserHost> 124 base::WeakPtr<PepperFileSystemBrowserHost>
125 PepperFileRefHost::GetFileSystemHost() const { 125 PepperFileRefHost::GetFileSystemHost() const {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 int32_t PepperFileRefHost::OnGetAbsolutePath( 242 int32_t PepperFileRefHost::OnGetAbsolutePath(
243 ppapi::host::HostMessageContext* context) { 243 ppapi::host::HostMessageContext* context) {
244 if (!host_->GetPpapiHost()->permissions().HasPermission( 244 if (!host_->GetPpapiHost()->permissions().HasPermission(
245 ppapi::PERMISSION_PRIVATE)) 245 ppapi::PERMISSION_PRIVATE))
246 return PP_ERROR_NOACCESS; 246 return PP_ERROR_NOACCESS;
247 return backend_->GetAbsolutePath(context->MakeReplyMessageContext()); 247 return backend_->GetAbsolutePath(context->MakeReplyMessageContext());
248 } 248 }
249 249
250 } // namespace content 250 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698