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

Unified Diff: components/plugins/renderer/mobile_youtube_plugin.h

Issue 2468423009: Remove plugins::MobileYouTubePlugin, deprecated by Flash embed override. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/plugins/renderer/BUILD.gn ('k') | components/plugins/renderer/mobile_youtube_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/mobile_youtube_plugin.h
diff --git a/components/plugins/renderer/mobile_youtube_plugin.h b/components/plugins/renderer/mobile_youtube_plugin.h
deleted file mode 100644
index 7def319a80c4c122f4d4d8e71fc20c3e50d1a5ab..0000000000000000000000000000000000000000
--- a/components/plugins/renderer/mobile_youtube_plugin.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_
-#define COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_
-
-#include "base/macros.h"
-#include "components/plugins/renderer/plugin_placeholder.h"
-
-namespace plugins {
-
-// Class representing placeholders for old style embedded youtube video on
-// mobile device. For old style embedded youtube video, it has a url in the form
-// of http://www.youtube.com/v/VIDEO_ID. This placeholder replaces the url with
-// a simple html page and clicking the play image redirects the user to the
-// mobile youtube app.
-class MobileYouTubePlugin final : public PluginPlaceholderBase,
- public gin::Wrappable<MobileYouTubePlugin> {
- public:
- static gin::WrapperInfo kWrapperInfo;
-
- MobileYouTubePlugin(content::RenderFrame* render_frame,
- blink::WebLocalFrame* frame,
- const blink::WebPluginParams& params,
- base::StringPiece& template_html);
-
- // Whether this is a youtube url.
- static bool IsYouTubeURL(const GURL& url, const std::string& mime_type);
-
- private:
- ~MobileYouTubePlugin() override;
-
- // Opens a youtube app in the current tab.
- void OpenYoutubeUrlCallback();
-
- // WebViewPlugin::Delegate methods:
- v8::Local<v8::Value> GetV8Handle(v8::Isolate* isolate) override;
-
- // gin::Wrappable (via PluginPlaceholder) method
- gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
- v8::Isolate* isolate) final;
-
- DISALLOW_COPY_AND_ASSIGN(MobileYouTubePlugin);
-};
-
-} // namespace plugins
-
-#endif // COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_
« no previous file with comments | « components/plugins/renderer/BUILD.gn ('k') | components/plugins/renderer/mobile_youtube_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698