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

Side by Side Diff: content/renderer/npapi/webplugin_delegate_proxy.cc

Issue 121033002: Update uses of UTF conversions in content/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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/npapi/webplugin_delegate_proxy.h" 5 #include "content/renderer/npapi/webplugin_delegate_proxy.h"
6 6
7 #if defined(TOOLKIT_GTK) 7 #if defined(TOOLKIT_GTK)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #elif defined(USE_X11) 9 #elif defined(USE_X11)
10 #include <cairo/cairo.h> 10 #include <cairo/cairo.h>
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 if (plugin_) 1204 if (plugin_)
1205 plugin_->AcceleratedPluginSwappedIOSurface(); 1205 plugin_->AcceleratedPluginSwappedIOSurface();
1206 } 1206 }
1207 #endif 1207 #endif
1208 1208
1209 #if defined(OS_WIN) 1209 #if defined(OS_WIN)
1210 bool WebPluginDelegateProxy::UseSynchronousGeometryUpdates() { 1210 bool WebPluginDelegateProxy::UseSynchronousGeometryUpdates() {
1211 // Need to update geometry synchronously with WMP, otherwise if a site 1211 // Need to update geometry synchronously with WMP, otherwise if a site
1212 // scripts the plugin to start playing while it's in the middle of handling 1212 // scripts the plugin to start playing while it's in the middle of handling
1213 // an update geometry message, videos don't play. See urls in bug 20260. 1213 // an update geometry message, videos don't play. See urls in bug 20260.
1214 if (info_.name.find(ASCIIToUTF16("Windows Media Player")) != 1214 if (info_.name.find(base::ASCIIToUTF16("Windows Media Player")) !=
1215 base::string16::npos) 1215 base::string16::npos)
1216 return true; 1216 return true;
1217 1217
1218 // The move networks plugin needs to be informed of geometry updates 1218 // The move networks plugin needs to be informed of geometry updates
1219 // synchronously. 1219 // synchronously.
1220 std::vector<WebPluginMimeType>::iterator index; 1220 std::vector<WebPluginMimeType>::iterator index;
1221 for (index = info_.mime_types.begin(); index != info_.mime_types.end(); 1221 for (index = info_.mime_types.begin(); index != info_.mime_types.end();
1222 index++) { 1222 index++) {
1223 if (index->mime_type == "application/x-vnd.moveplayer.qm" || 1223 if (index->mime_type == "application/x-vnd.moveplayer.qm" ||
1224 index->mime_type == "application/x-vnd.moveplay2.qm" || 1224 index->mime_type == "application/x-vnd.moveplay2.qm" ||
(...skipping 13 matching lines...) Expand all
1238 1238
1239 plugin_->URLRedirectResponse(allow, resource_id); 1239 plugin_->URLRedirectResponse(allow, resource_id);
1240 } 1240 }
1241 1241
1242 void WebPluginDelegateProxy::OnCheckIfRunInsecureContent(const GURL& url, 1242 void WebPluginDelegateProxy::OnCheckIfRunInsecureContent(const GURL& url,
1243 bool* result) { 1243 bool* result) {
1244 *result = plugin_->CheckIfRunInsecureContent(url); 1244 *result = plugin_->CheckIfRunInsecureContent(url);
1245 } 1245 }
1246 1246
1247 } // namespace content 1247 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_peer_connection_handler_unittest.cc ('k') | content/renderer/npapi/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698