Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Unified Diff: chrome/browser/extensions/extension_tab_helper.h

Issue 7741037: Add WebstoreInlineInstaller (downloads store data, shows the install UI, and starts the install). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put webstore response in the right directory. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_tab_helper.h
diff --git a/chrome/browser/extensions/extension_tab_helper.h b/chrome/browser/extensions/extension_tab_helper.h
index b5f16848cb86206244660f11c8deaedc7ac9c2c9..1b1b5ad8fe126d4a85cc2efdbfdd0f233cfb919a 100644
--- a/chrome/browser/extensions/extension_tab_helper.h
+++ b/chrome/browser/extensions/extension_tab_helper.h
@@ -9,6 +9,7 @@
#include "content/browser/tab_contents/tab_contents_observer.h"
#include "chrome/browser/extensions/extension_function_dispatcher.h"
#include "chrome/browser/extensions/image_loading_tracker.h"
+#include "chrome/browser/extensions/webstore_inline_installer.h"
#include "chrome/common/web_apps.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -23,7 +24,8 @@ struct LoadCommittedDetails;
// Per-tab extension helper. Also handles non-extension apps.
class ExtensionTabHelper : public TabContentsObserver,
public ExtensionFunctionDispatcher::Delegate,
- public ImageLoadingTracker::Observer {
+ public ImageLoadingTracker::Observer,
+ public WebstoreInlineInstaller::Delegate {
public:
explicit ExtensionTabHelper(TabContentsWrapper* wrapper);
virtual ~ExtensionTabHelper();
@@ -85,13 +87,12 @@ class ExtensionTabHelper : public TabContentsObserver,
virtual void DidNavigateMainFramePostCommit(
const content::LoadCommittedDetails& details,
const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE;
- virtual bool OnMessageReceived(const IPC::Message& message);
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
// ExtensionFunctionDispatcher::Delegate overrides.
- virtual Browser* GetBrowser();
- virtual gfx::NativeView GetNativeViewOfHost();
- virtual gfx::NativeWindow GetCustomFrameNativeWindow();
- virtual TabContents* GetAssociatedTabContents() const;
+ virtual Browser* GetBrowser() OVERRIDE;
+ virtual gfx::NativeView GetNativeViewOfHost() OVERRIDE;
+ virtual TabContents* GetAssociatedTabContents() const OVERRIDE;
// Message handlers.
void OnDidGetApplicationInfo(int32 page_id, const WebApplicationInfo& info);
@@ -107,7 +108,11 @@ class ExtensionTabHelper : public TabContentsObserver,
// ImageLoadingTracker::Observer.
virtual void OnImageLoaded(SkBitmap* image, const ExtensionResource& resource,
- int index);
+ int index) OVERRIDE;
+
+ // WebstoreInlineInstaller::Delegate.
+ virtual void OnInlineInstallSuccess() OVERRIDE;
+ virtual void OnInlineInstallFailure(const std::string& error) OVERRIDE;
// Data for app extensions ---------------------------------------------------
« no previous file with comments | « chrome/browser/extensions/extension_install_dialog.cc ('k') | chrome/browser/extensions/extension_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698