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

Side by Side Diff: components/plugins/renderer/mobile_youtube_plugin.h

Issue 1148223004: Plugin Placeholders: Factor out common BindWebFrame method into base class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_ 5 #ifndef COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_
6 #define COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_ 6 #define COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_
7 7
8 #include "components/plugins/renderer/plugin_placeholder.h" 8 #include "components/plugins/renderer/plugin_placeholder.h"
9 9
10 namespace plugins { 10 namespace plugins {
(...skipping 13 matching lines...) Expand all
24 24
25 // Whether this is a youtube url. 25 // Whether this is a youtube url.
26 static bool IsYouTubeURL(const GURL& url, const std::string& mime_type); 26 static bool IsYouTubeURL(const GURL& url, const std::string& mime_type);
27 27
28 private: 28 private:
29 ~MobileYouTubePlugin() override; 29 ~MobileYouTubePlugin() override;
30 30
31 // Opens a youtube app in the current tab. 31 // Opens a youtube app in the current tab.
32 void OpenYoutubeUrlCallback(); 32 void OpenYoutubeUrlCallback();
33 33
34 // WebViewPlugin::Delegate (via PluginPlaceholder) method
35 void BindWebFrame(blink::WebFrame* frame) override;
36
37 // gin::Wrappable (via PluginPlaceholder) method 34 // gin::Wrappable (via PluginPlaceholder) method
38 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 35 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
39 v8::Isolate* isolate) override; 36 v8::Isolate* isolate) override;
40 37
41 DISALLOW_COPY_AND_ASSIGN(MobileYouTubePlugin); 38 DISALLOW_COPY_AND_ASSIGN(MobileYouTubePlugin);
42 }; 39 };
43 40
44 } // namespace plugins 41 } // namespace plugins
45 42
46 #endif // COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_ 43 #endif // COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_
OLDNEW
« no previous file with comments | « components/plugins/renderer/loadable_plugin_placeholder.cc ('k') | components/plugins/renderer/mobile_youtube_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698