| OLD | NEW |
| 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 #ifndef CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ | 5 #ifndef CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ |
| 6 #define CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ | 6 #define CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ |
| 7 | 7 |
| 8 #include "content/public/renderer/render_process_observer.h" | 8 #include "content/public/renderer/render_process_observer.h" |
| 9 #include "content/public/renderer/render_view_observer.h" | 9 #include "content/public/renderer/render_view_observer.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 void OnFinishedDownloadingPlugin(); | 140 void OnFinishedDownloadingPlugin(); |
| 141 void OnErrorDownloadingPlugin(const std::string& error); | 141 void OnErrorDownloadingPlugin(const std::string& error); |
| 142 void OnCancelledDownloadingPlugin(); | 142 void OnCancelledDownloadingPlugin(); |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 #if defined(ENABLE_MOBILE_YOUTUBE_PLUGIN) | 145 #if defined(ENABLE_MOBILE_YOUTUBE_PLUGIN) |
| 146 // Check whether the url is valid. | 146 // Check whether the url is valid. |
| 147 static bool IsValidYouTubeVideo(const std::string& path); | 147 static bool IsValidYouTubeVideo(const std::string& path); |
| 148 | 148 |
| 149 // Opens a youtube app in the current tab. | 149 // Opens a youtube app in the current tab. |
| 150 void OpenYoutubeUrlCallback(const CppArgumentList& args, CppVariant* result); | 150 void OpenYoutubeUrlCallback(const webkit_glue::CppArgumentList& args, |
| 151 webkit_glue::CppVariant* result); |
| 151 #endif | 152 #endif |
| 152 | 153 |
| 153 void SetMessage(const string16& message); | 154 void SetMessage(const string16& message); |
| 154 void UpdateMessage(); | 155 void UpdateMessage(); |
| 155 | 156 |
| 156 WebKit::WebFrame* frame_; | 157 WebKit::WebFrame* frame_; |
| 157 WebKit::WebPluginParams plugin_params_; | 158 WebKit::WebPluginParams plugin_params_; |
| 158 webkit::WebViewPlugin* plugin_; | 159 webkit::WebViewPlugin* plugin_; |
| 159 | 160 |
| 160 webkit::WebPluginInfo plugin_info_; | 161 webkit::WebPluginInfo plugin_info_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 180 bool hidden_; | 181 bool hidden_; |
| 181 bool has_host_; | 182 bool has_host_; |
| 182 bool finished_loading_; | 183 bool finished_loading_; |
| 183 string16 plugin_name_; | 184 string16 plugin_name_; |
| 184 std::string identifier_; | 185 std::string identifier_; |
| 185 | 186 |
| 186 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholder); | 187 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholder); |
| 187 }; | 188 }; |
| 188 | 189 |
| 189 #endif // CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ | 190 #endif // CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ |
| OLD | NEW |