| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ | 5 #ifndef CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ |
| 6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ | 6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include <gtk/gtk.h> | 11 #include <gtk/gtk.h> |
| 12 | 12 |
| 13 #include "chrome/default_plugin/plugin_installer_base.h" | 13 #include "chrome/default_plugin/plugin_installer_base.h" |
| 14 #include "third_party/npapi/bindings/npapi.h" | 14 #include "third_party/npapi/bindings/npapi.h" |
| 15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
| 16 | 16 |
| 17 // Possible plugin installer states. | 17 // Possible plugin installer states. |
| 18 enum PluginInstallerState { | 18 enum PluginInstallerState { |
| 19 PluginInstallerStateUndefined, | 19 PluginInstallerStateUndefined, |
| 20 PluginListDownloadInitiated, | 20 PluginListDownloadInitiated, |
| 21 PluginListDownloaded, | 21 PluginListDownloaded, |
| 22 PluginListDownloadedPluginNotFound, | 22 PluginListDownloadedPluginNotFound, |
| 23 PluginListDownloadFailed, | 23 PluginListDownloadFailed, |
| 24 PluginDownloadInitiated, | 24 PluginDownloadInitiated, |
| 25 PluginDownloadCompleted, | 25 PluginDownloadCompleted, |
| 26 PluginDownloadFailed, | 26 PluginDownloadFailed, |
| 27 PluginInstallerLaunchSuccess, | 27 PluginInstallerLaunchSuccess, |
| 28 PluginInstallerLaunchFailure | 28 PluginInstallerLaunchFailure |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 class PluginInstallDialog; | |
| 32 class PluginDatabaseHandler; | |
| 33 | |
| 34 // Provides the plugin installation functionality. This class is | 31 // Provides the plugin installation functionality. This class is |
| 35 // instantiated with the information like the mime type of the | 32 // instantiated with the information like the mime type of the |
| 36 // target plugin, the display mode, etc. | 33 // target plugin, the display mode, etc. |
| 37 class PluginInstallerImpl : public PluginInstallerBase { | 34 class PluginInstallerImpl : public PluginInstallerBase { |
| 38 public: | 35 public: |
| 39 // mode is the plugin instantiation mode, i.e. whether it is a full | 36 // mode is the plugin instantiation mode, i.e. whether it is a full |
| 40 // page plugin (NP_FULL) or an embedded plugin (NP_EMBED) | 37 // page plugin (NP_FULL) or an embedded plugin (NP_EMBED) |
| 41 explicit PluginInstallerImpl(int16 mode); | 38 explicit PluginInstallerImpl(int16 mode); |
| 42 virtual ~PluginInstallerImpl(); | 39 virtual ~PluginInstallerImpl(); |
| 43 | 40 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 std::string mime_type_; | 272 std::string mime_type_; |
| 276 // The current state of the plugin installer. | 273 // The current state of the plugin installer. |
| 277 PluginInstallerState plugin_installer_state_; | 274 PluginInstallerState plugin_installer_state_; |
| 278 // GtkPlug containing everything in the plugin. | 275 // GtkPlug containing everything in the plugin. |
| 279 GtkWidget* container_; | 276 GtkWidget* container_; |
| 280 | 277 |
| 281 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); | 278 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); |
| 282 }; | 279 }; |
| 283 | 280 |
| 284 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ | 281 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ |
| OLD | NEW |