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

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

Issue 21219002: Remove PluginDelegate completely. In a followup I'll rename PepperPluginDelegateImpl to something c… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/url_request_info_util.h" 5 #include "content/renderer/pepper/url_request_info_util.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "content/common/fileapi/file_system_messages.h" 9 #include "content/common/fileapi/file_system_messages.h"
10 #include "content/renderer/pepper/common.h" 10 #include "content/renderer/pepper/common.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 WebHTTPBody *http_body) { 51 WebHTTPBody *http_body) {
52 // Get the underlying file ref impl. 52 // Get the underlying file ref impl.
53 if (!file_ref_resource) 53 if (!file_ref_resource)
54 return false; 54 return false;
55 PPB_FileRef_API* file_ref_api = file_ref_resource->AsPPB_FileRef_API(); 55 PPB_FileRef_API* file_ref_api = file_ref_resource->AsPPB_FileRef_API();
56 if (!file_ref_api) 56 if (!file_ref_api)
57 return false; 57 return false;
58 const PPB_FileRef_Impl* file_ref = 58 const PPB_FileRef_Impl* file_ref =
59 static_cast<PPB_FileRef_Impl*>(file_ref_api); 59 static_cast<PPB_FileRef_Impl*>(file_ref_api);
60 60
61 PluginDelegate* plugin_delegate = 61 PepperPluginDelegateImpl* plugin_delegate =
62 ResourceHelper::GetPluginDelegate(file_ref_resource); 62 ResourceHelper::GetPluginDelegate(file_ref_resource);
63 if (!plugin_delegate) 63 if (!plugin_delegate)
64 return false; 64 return false;
65 65
66 base::FilePath platform_path; 66 base::FilePath platform_path;
67 switch (file_ref->GetFileSystemType()) { 67 switch (file_ref->GetFileSystemType()) {
68 case PP_FILESYSTEMTYPE_LOCALTEMPORARY: 68 case PP_FILESYSTEMTYPE_LOCALTEMPORARY:
69 case PP_FILESYSTEMTYPE_LOCALPERSISTENT: 69 case PP_FILESYSTEMTYPE_LOCALPERSISTENT:
70 // TODO(kinuko): remove this sync IPC when we fully support 70 // TODO(kinuko): remove this sync IPC when we fully support
71 // AppendURLRange for FileSystem URL. 71 // AppendURLRange for FileSystem URL.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 bool URLRequestRequiresUniversalAccess( 197 bool URLRequestRequiresUniversalAccess(
198 const ::ppapi::URLRequestInfoData& data) { 198 const ::ppapi::URLRequestInfoData& data) {
199 return 199 return
200 data.has_custom_referrer_url || 200 data.has_custom_referrer_url ||
201 data.has_custom_content_transfer_encoding || 201 data.has_custom_content_transfer_encoding ||
202 data.has_custom_user_agent || 202 data.has_custom_user_agent ||
203 url_util::FindAndCompareScheme(data.url, "javascript", NULL); 203 url_util::FindAndCompareScheme(data.url, "javascript", NULL);
204 } 204 }
205 205
206 } // namespace content 206 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/resource_helper.cc ('k') | content/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698