OLD | NEW |
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_STANDALONE_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 } | 170 } |
171 Profile* profile() const { return profile_; } | 171 Profile* profile() const { return profile_; } |
172 const std::string& id() const { return id_; } | 172 const std::string& id() const { return id_; } |
173 const base::DictionaryValue* manifest() const { return manifest_.get(); } | 173 const base::DictionaryValue* manifest() const { return manifest_.get(); } |
174 const Extension* localized_extension_for_display() const { | 174 const Extension* localized_extension_for_display() const { |
175 return localized_extension_for_display_.get(); | 175 return localized_extension_for_display_.get(); |
176 } | 176 } |
177 | 177 |
178 private: | 178 private: |
179 friend class base::RefCountedThreadSafe<WebstoreStandaloneInstaller>; | 179 friend class base::RefCountedThreadSafe<WebstoreStandaloneInstaller>; |
180 FRIEND_TEST_ALL_PREFIXES(WebstoreStandaloneInstallerTest, DomainVerification); | |
181 | 180 |
182 // Several delegate/client interface implementations follow. The normal flow | 181 // Several delegate/client interface implementations follow. The normal flow |
183 // (for successful installs) is: | 182 // (for successful installs) is: |
184 // | 183 // |
185 // 1. BeginInstall: starts the fetch of data from the webstore | 184 // 1. BeginInstall: starts the fetch of data from the webstore |
186 // 2. OnURLFetchComplete: starts the parsing of data from the webstore | 185 // 2. OnURLFetchComplete: starts the parsing of data from the webstore |
187 // 3. OnWebstoreResponseParseSuccess: starts the parsing of the manifest and | 186 // 3. OnWebstoreResponseParseSuccess: starts the parsing of the manifest and |
188 // fetching of icon data. | 187 // fetching of icon data. |
189 // 4. OnWebstoreParseSuccess: shows the install UI | 188 // 4. OnWebstoreParseSuccess: shows the install UI |
190 // 5. InstallUIProceed: initiates the .crx download/install | 189 // 5. InstallUIProceed: initiates the .crx download/install |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // Created by ShowInstallUI() when a prompt is shown (if | 247 // Created by ShowInstallUI() when a prompt is shown (if |
249 // the implementor returns a non-NULL in CreateInstallPrompt()). | 248 // the implementor returns a non-NULL in CreateInstallPrompt()). |
250 scoped_refptr<Extension> localized_extension_for_display_; | 249 scoped_refptr<Extension> localized_extension_for_display_; |
251 | 250 |
252 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreStandaloneInstaller); | 251 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreStandaloneInstaller); |
253 }; | 252 }; |
254 | 253 |
255 } // namespace extensions | 254 } // namespace extensions |
256 | 255 |
257 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ | 256 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ |
OLD | NEW |