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

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

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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/browser/renderer_host/pepper/pepper_host_resolver_private_mess age_filter.h" 5 #include "content/browser/renderer_host/pepper/pepper_host_resolver_private_mess age_filter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" 9 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h"
10 #include "content/browser/renderer_host/pepper/pepper_lookup_request.h" 10 #include "content/browser/renderer_host/pepper/pepper_lookup_request.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 116
117 int32_t PepperHostResolverPrivateMessageFilter::OnMsgResolve( 117 int32_t PepperHostResolverPrivateMessageFilter::OnMsgResolve(
118 const ppapi::host::HostMessageContext* context, 118 const ppapi::host::HostMessageContext* context,
119 const ppapi::HostPortPair& host_port, 119 const ppapi::HostPortPair& host_port,
120 const PP_HostResolver_Private_Hint& hint) { 120 const PP_HostResolver_Private_Hint& hint) {
121 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 121 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
122 122
123 // Check plugin permissions. 123 // Check plugin permissions.
124 SocketPermissionRequest request( 124 SocketPermissionRequest request(
125 content::SocketPermissionRequest::NONE, "", 0); 125 content::SocketPermissionRequest::NONE, std::string(), 0);
126 RenderViewHost* render_view_host = RenderViewHost::FromID(render_process_id_, 126 RenderViewHost* render_view_host =
127 render_view_id_); 127 RenderViewHost::FromID(render_process_id_, render_view_id_);
128 if (!render_view_host || 128 if (!render_view_host ||
129 !pepper_socket_utils::CanUseSocketAPIs(external_plugin_, 129 !pepper_socket_utils::CanUseSocketAPIs(external_plugin_,
130 request, 130 request,
131 render_view_host)) { 131 render_view_host)) {
132 return PP_ERROR_FAILED; 132 return PP_ERROR_FAILED;
133 } 133 }
134 134
135 RenderProcessHost* render_process_host = 135 RenderProcessHost* render_process_host =
136 RenderProcessHost::FromID(render_process_id_); 136 RenderProcessHost::FromID(render_process_id_);
137 if (!render_process_host) 137 if (!render_process_host)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 PpapiPluginMsg_HostResolverPrivate_ResolveReply( 208 PpapiPluginMsg_HostResolverPrivate_ResolveReply(
209 canonical_name, net_address_list)); 209 canonical_name, net_address_list));
210 } 210 }
211 211
212 void PepperHostResolverPrivateMessageFilter::SendResolveError( 212 void PepperHostResolverPrivateMessageFilter::SendResolveError(
213 const ReplyMessageContext& context) { 213 const ReplyMessageContext& context) {
214 SendResolveReply(PP_ERROR_FAILED, std::string(), NetAddressList(), context); 214 SendResolveReply(PP_ERROR_FAILED, std::string(), NetAddressList(), context);
215 } 215 }
216 216
217 } // namespace content 217 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698