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

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

Issue 10918174: Remove PluginGroup (Closed) Base URL: http://git.chromium.org/chromium/src.git@remove_async_plugin_finder
Patch Set: Created 8 years, 3 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
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_piece.h" 10 #include "base/string_piece.h"
(...skipping 22 matching lines...) Expand all
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h"
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCaseSensitivit y.h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCaseSensitivit y.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
39 #include "ui/base/l10n/l10n_util.h" 39 #include "ui/base/l10n/l10n_util.h"
40 #include "ui/base/layout.h" 40 #include "ui/base/layout.h"
41 #include "ui/base/resource/resource_bundle.h" 41 #include "ui/base/resource/resource_bundle.h"
42 #include "webkit/glue/webpreferences.h" 42 #include "webkit/glue/webpreferences.h"
43 #include "webkit/plugins/npapi/plugin_group.h"
44 #include "webkit/plugins/npapi/plugin_list.h" 43 #include "webkit/plugins/npapi/plugin_list.h"
45 #include "webkit/plugins/webview_plugin.h" 44 #include "webkit/plugins/webview_plugin.h"
46 45
47 using content::RenderThread; 46 using content::RenderThread;
48 using content::RenderView; 47 using content::RenderView;
49 using WebKit::WebContextMenuData; 48 using WebKit::WebContextMenuData;
50 using WebKit::WebDocument; 49 using WebKit::WebDocument;
51 using WebKit::WebElement; 50 using WebKit::WebElement;
52 using WebKit::WebFrame; 51 using WebKit::WebFrame;
53 using WebKit::WebMenuItemInfo; 52 using WebKit::WebMenuItemInfo;
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 bool PluginPlaceholder::IsYouTubeURL(const GURL& url, 626 bool PluginPlaceholder::IsYouTubeURL(const GURL& url,
628 const std::string& mime_type) { 627 const std::string& mime_type) {
629 std::string host = url.host(); 628 std::string host = url.host();
630 bool is_youtube = EndsWith(host, "youtube.com", true) || 629 bool is_youtube = EndsWith(host, "youtube.com", true) ||
631 EndsWith(host, "youtube-nocookie.com", true); 630 EndsWith(host, "youtube-nocookie.com", true);
632 631
633 return is_youtube && IsValidYouTubeVideo(url.path()) && 632 return is_youtube && IsValidYouTubeVideo(url.path()) &&
634 LowerCaseEqualsASCII(mime_type, "application/x-shockwave-flash"); 633 LowerCaseEqualsASCII(mime_type, "application/x-shockwave-flash");
635 } 634 }
636 #endif 635 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698