OLD | NEW |
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 14 matching lines...) Expand all Loading... |
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 virtual ~MobileYouTubePlugin(); | 29 virtual ~MobileYouTubePlugin(); |
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 | 34 // WebViewPlugin::Delegate (via PluginPlaceholder) method |
35 virtual void BindWebFrame(blink::WebFrame* frame) OVERRIDE; | 35 virtual void BindWebFrame(blink::WebFrame* frame) override; |
36 | 36 |
37 // gin::Wrappable (via PluginPlaceholder) method | 37 // gin::Wrappable (via PluginPlaceholder) method |
38 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 38 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
39 v8::Isolate* isolate) OVERRIDE; | 39 v8::Isolate* isolate) override; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(MobileYouTubePlugin); | 41 DISALLOW_COPY_AND_ASSIGN(MobileYouTubePlugin); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace plugins | 44 } // namespace plugins |
45 | 45 |
46 #endif // COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_ | 46 #endif // COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_ |
OLD | NEW |