summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extensions_ui.h
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 04:43:45 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 04:43:45 +0000
commit5cbb809a7203d91c05021aae74e16fdcefff9352 (patch)
tree0627479ed7960568638b118d8e01c0aac41d5a25 /chrome/browser/extensions/extensions_ui.h
parentb00e86cf9afb44beb3f8fd51e85318505cabaa89 (diff)
downloadchromium_src-5cbb809a7203d91c05021aae74e16fdcefff9352.zip
chromium_src-5cbb809a7203d91c05021aae74e16fdcefff9352.tar.gz
chromium_src-5cbb809a7203d91c05021aae74e16fdcefff9352.tar.bz2
This reverts: HTML Pack Extension Dialog / Linux & Mac Packaging Support.
original issue: http://codereview.chromium.org/207062/ TBR=sky Review URL: http://codereview.chromium.org/270001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_ui.h')
-rw-r--r--chrome/browser/extensions/extensions_ui.h23
1 files changed, 6 insertions, 17 deletions
diff --git a/chrome/browser/extensions/extensions_ui.h b/chrome/browser/extensions/extensions_ui.h
index 908c9f3..80ddf4d 100644
--- a/chrome/browser/extensions/extensions_ui.h
+++ b/chrome/browser/extensions/extensions_ui.h
@@ -10,7 +10,6 @@
#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
#include "chrome/browser/dom_ui/dom_ui.h"
-#include "chrome/browser/extensions/pack_extension_job.h"
#include "chrome/browser/shell_dialogs.h"
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
@@ -53,7 +52,6 @@ class ExtensionsUIHTMLSource : public ChromeURLDataManager::DataSource {
class ExtensionsDOMHandler
: public DOMMessageHandler,
public NotificationObserver,
- public PackExtensionJob::Client,
public SelectFileDialog::Listener {
public:
explicit ExtensionsDOMHandler(ExtensionsService* extension_service);
@@ -73,13 +71,13 @@ class ExtensionsDOMHandler
const UserScript& script,
const FilePath& extension_path);
- // ExtensionPackJob::Client
- virtual void OnPackSuccess(const FilePath& crx_file,
- const FilePath& key_file);
-
- virtual void OnPackFailure(const std::wstring& message);
-
private:
+#if defined(OS_WIN)
+ // The implementation of this method is platform-specific and defined
+ // elsewhere.
+ static void ShowPackDialog();
+#endif
+
// Callback for "requestExtensionsData" message.
void HandleRequestExtensionsData(const Value* value);
@@ -104,12 +102,6 @@ class ExtensionsDOMHandler
// Callback for "autoupdate" message.
void HandleAutoUpdateMessage(const Value* value);
- // Utility for calling javascript window.alert in the page.
- void ShowAlert(const std::string& message);
-
- // Callback for "selectFilePath" message.
- void HandleSelectFilePathMessage(const Value* value);
-
// SelectFileDialog::Listener
virtual void FileSelected(const FilePath& path,
int index, void* params);
@@ -134,9 +126,6 @@ class ExtensionsDOMHandler
// Used to pick the directory when loading an extension.
scoped_refptr<SelectFileDialog> load_extension_dialog_;
- // Used to package the extension.
- scoped_refptr<PackExtensionJob> pack_job_;
-
// We monitor changes to the extension system so that we can reload when
// necessary.
NotificationRegistrar registrar_;