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

Side by Side Diff: chrome/browser/extensions/webstore_inline_installer.h

Issue 10980002: Mac Web Intents Part 1: Show extension download progress (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove downloads code Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // ExtensionInstallPrompt::Delegate interface implementation. 105 // ExtensionInstallPrompt::Delegate interface implementation.
106 virtual void InstallUIProceed() OVERRIDE; 106 virtual void InstallUIProceed() OVERRIDE;
107 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; 107 virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
108 108
109 // content::WebContentsObserver interface implementation. 109 // content::WebContentsObserver interface implementation.
110 virtual void WebContentsDestroyed( 110 virtual void WebContentsDestroyed(
111 content::WebContents* web_contents) OVERRIDE; 111 content::WebContents* web_contents) OVERRIDE;
112 112
113 // WebstoreInstaller::Delegate interface implementation. 113 // WebstoreInstaller::Delegate interface implementation.
114 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE; 114 virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE;
115 virtual void OnExtensionInstallFailure(const std::string& id, 115 virtual void OnExtensionInstallFailure(
116 const std::string& error) OVERRIDE; 116 const std::string& id,
117 const std::string& error,
118 WebstoreInstaller::FailureReason reason) OVERRIDE;
117 119
118 void CompleteInstall(const std::string& error); 120 void CompleteInstall(const std::string& error);
119 121
120 // Checks whether the install is initiated by a page in the verified site 122 // Checks whether the install is initiated by a page in the verified site
121 // (which is at least a domain, but can also have a port or a path). 123 // (which is at least a domain, but can also have a port or a path).
122 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, 124 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url,
123 const std::string& verified_site); 125 const std::string& verified_site);
124 126
125 std::string id_; 127 std::string id_;
126 bool require_verified_site_; 128 bool require_verified_site_;
(...skipping 15 matching lines...) Expand all
142 scoped_ptr<DictionaryValue> manifest_; 144 scoped_ptr<DictionaryValue> manifest_;
143 scoped_refptr<Extension> dummy_extension_; 145 scoped_refptr<Extension> dummy_extension_;
144 SkBitmap icon_; 146 SkBitmap icon_;
145 147
146 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); 148 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller);
147 }; 149 };
148 150
149 } // namespace extensions 151 } // namespace extensions
150 152
151 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 153 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/bundle_installer.cc ('k') | chrome/browser/extensions/webstore_inline_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698