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

Side by Side Diff: chrome/renderer/plugins/plugin_placeholder.cc

Issue 16281006: Use a direct include of strings headers in chrome/renderer/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
« no previous file with comments | « chrome/renderer/mock_printer.cc ('k') | chrome/renderer/plugins/plugin_uma.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/renderer/plugins/plugin_placeholder.h" 5 #include "chrome/renderer/plugins/plugin_placeholder.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/json/string_escape.h" 9 #include "base/json/string_escape.h"
10 #include "base/string_util.h"
11 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
11 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/common/prerender_messages.h" 14 #include "chrome/common/prerender_messages.h"
15 #include "chrome/common/render_messages.h" 15 #include "chrome/common/render_messages.h"
16 #include "chrome/renderer/chrome_content_renderer_client.h" 16 #include "chrome/renderer/chrome_content_renderer_client.h"
17 #include "chrome/renderer/custom_menu_commands.h" 17 #include "chrome/renderer/custom_menu_commands.h"
18 #include "chrome/renderer/plugins/plugin_uma.h" 18 #include "chrome/renderer/plugins/plugin_uma.h"
19 #include "content/public/common/context_menu_params.h" 19 #include "content/public/common/context_menu_params.h"
20 #include "content/public/renderer/render_thread.h" 20 #include "content/public/renderer/render_thread.h"
21 #include "content/public/renderer/render_view.h" 21 #include "content/public/renderer/render_view.h"
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 bool PluginPlaceholder::IsYouTubeURL(const GURL& url, 632 bool PluginPlaceholder::IsYouTubeURL(const GURL& url,
633 const std::string& mime_type) { 633 const std::string& mime_type) {
634 std::string host = url.host(); 634 std::string host = url.host();
635 bool is_youtube = EndsWith(host, "youtube.com", true) || 635 bool is_youtube = EndsWith(host, "youtube.com", true) ||
636 EndsWith(host, "youtube-nocookie.com", true); 636 EndsWith(host, "youtube-nocookie.com", true);
637 637
638 return is_youtube && IsValidYouTubeVideo(url.path()) && 638 return is_youtube && IsValidYouTubeVideo(url.path()) &&
639 LowerCaseEqualsASCII(mime_type, kFlashPluginSwfMimeType); 639 LowerCaseEqualsASCII(mime_type, kFlashPluginSwfMimeType);
640 } 640 }
641 #endif 641 #endif
OLDNEW
« no previous file with comments | « chrome/renderer/mock_printer.cc ('k') | chrome/renderer/plugins/plugin_uma.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698