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

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: 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(const std::string& id,
116 const std::string& error) OVERRIDE; 116 const std::string& error,
117 bool cancelled) OVERRIDE;
117 118
118 void CompleteInstall(const std::string& error); 119 void CompleteInstall(const std::string& error);
119 120
120 // Checks whether the install is initiated by a page in the verified site 121 // 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). 122 // (which is at least a domain, but can also have a port or a path).
122 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, 123 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url,
123 const std::string& verified_site); 124 const std::string& verified_site);
124 125
125 std::string id_; 126 std::string id_;
126 bool require_verified_site_; 127 bool require_verified_site_;
(...skipping 15 matching lines...) Expand all
142 scoped_ptr<DictionaryValue> manifest_; 143 scoped_ptr<DictionaryValue> manifest_;
143 scoped_refptr<Extension> dummy_extension_; 144 scoped_refptr<Extension> dummy_extension_;
144 SkBitmap icon_; 145 SkBitmap icon_;
145 146
146 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); 147 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller);
147 }; 148 };
148 149
149 } // namespace extensions 150 } // namespace extensions
150 151
151 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ 152 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698