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 "base/macros.h" |
8 #include "components/plugins/renderer/plugin_placeholder.h" | 9 #include "components/plugins/renderer/plugin_placeholder.h" |
9 | 10 |
10 namespace plugins { | 11 namespace plugins { |
11 | 12 |
12 // Class representing placeholders for old style embedded youtube video on | 13 // Class representing placeholders for old style embedded youtube video on |
13 // mobile device. For old style embedded youtube video, it has a url in the form | 14 // mobile device. For old style embedded youtube video, it has a url in the form |
14 // of http://www.youtube.com/v/VIDEO_ID. This placeholder replaces the url with | 15 // of http://www.youtube.com/v/VIDEO_ID. This placeholder replaces the url with |
15 // a simple html page and clicking the play image redirects the user to the | 16 // a simple html page and clicking the play image redirects the user to the |
16 // mobile youtube app. | 17 // mobile youtube app. |
17 class MobileYouTubePlugin final : public PluginPlaceholderBase, | 18 class MobileYouTubePlugin final : public PluginPlaceholderBase, |
(...skipping 21 matching lines...) Expand all Loading... |
39 // gin::Wrappable (via PluginPlaceholder) method | 40 // gin::Wrappable (via PluginPlaceholder) method |
40 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 41 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
41 v8::Isolate* isolate) final; | 42 v8::Isolate* isolate) final; |
42 | 43 |
43 DISALLOW_COPY_AND_ASSIGN(MobileYouTubePlugin); | 44 DISALLOW_COPY_AND_ASSIGN(MobileYouTubePlugin); |
44 }; | 45 }; |
45 | 46 |
46 } // namespace plugins | 47 } // namespace plugins |
47 | 48 |
48 #endif // COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_ | 49 #endif // COMPONENTS_PLUGINS_RENDERER_MOBILE_YOUTUBE_PLUGIN_H_ |
OLD | NEW |