Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_WEBSTORE_APP_INSTALLER_H _ | |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_WEBSTORE_APP_INSTALLER_H _ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/memory/ref_counted.h" | |
| 11 #include "chrome/browser/extensions/webstore_standalone_installer.h" | |
| 12 #include "content/public/browser/web_contents_observer.h" | |
| 13 | |
| 14 namespace content { | |
| 15 class WebContents; | |
| 16 } | |
| 17 | |
| 18 namespace file_manager { | |
| 19 | |
| 20 // Installer for Files.app. | |
| 21 class WebstoreAppInstaller | |
|
asargent_no_longer_on_chrome
2013/08/27 18:22:33
This class name is confusingly similar to Webstor
yoshiki
2013/08/28 13:19:04
Done.
| |
| 22 : public extensions::WebstoreStandaloneInstaller, | |
| 23 public content::WebContentsObserver { | |
| 24 public: | |
| 25 typedef extensions::WebstoreStandaloneInstaller::Callback Callback; | |
| 26 | |
| 27 WebstoreAppInstaller(content::WebContents* web_contents, | |
| 28 const std::string& webstore_item_id, | |
| 29 Profile* profile, | |
| 30 const Callback& callback); | |
|
asargent_no_longer_on_chrome
2013/08/27 18:22:33
nit: indentation is off on these 3 lines
yoshiki
2013/08/28 13:19:04
Done.
| |
| 31 | |
| 32 protected: | |
| 33 friend class base::RefCountedThreadSafe<WebstoreAppInstaller>; | |
| 34 | |
| 35 virtual ~WebstoreAppInstaller(); | |
| 36 | |
| 37 // Implementations WebstoreStandaloneInstaller Template Method's hooks. | |
|
asargent_no_longer_on_chrome
2013/08/27 18:22:33
nit: to be pedantic, it's not a template (in the C
yoshiki
2013/08/28 13:19:04
Thanks, I grep'd and have found "// SomeClassName
| |
| 38 virtual bool CheckRequestorAlive() const OVERRIDE; | |
| 39 virtual const GURL& GetRequestorURL() const OVERRIDE; | |
| 40 virtual bool ShouldShowPostInstallUI() const OVERRIDE; | |
| 41 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; | |
| 42 virtual content::WebContents* GetWebContents() const OVERRIDE; | |
| 43 virtual scoped_ptr<ExtensionInstallPrompt::Prompt> | |
| 44 CreateInstallPrompt() const OVERRIDE; | |
| 45 virtual bool CheckInlineInstallPermitted( | |
| 46 const base::DictionaryValue& webstore_data, | |
| 47 std::string* error) const OVERRIDE; | |
| 48 virtual bool CheckRequestorPermitted( | |
| 49 const base::DictionaryValue& webstore_data, | |
| 50 std::string* error) const OVERRIDE; | |
| 51 | |
| 52 private: | |
| 53 // content::WebContentsObserver interface implementation. | |
| 54 virtual void WebContentsDestroyed( | |
| 55 content::WebContents* web_contents) OVERRIDE; | |
| 56 | |
| 57 GURL dummy_url_; | |
|
asargent_no_longer_on_chrome
2013/08/27 18:22:33
nit: this variable could use a comment since it is
yoshiki
2013/08/28 13:19:04
Done.
| |
| 58 Callback callback_; | |
| 59 | |
| 60 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreAppInstaller); | |
| 61 }; | |
| 62 | |
| 63 } // namespace file_manager | |
| 64 | |
| 65 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_WEBSTORE_APP_INSTALLE R_H_ | |
| OLD | NEW |