OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 const Callback& callback); | 27 const Callback& callback); |
28 | 28 |
29 protected: | 29 protected: |
30 friend class base::RefCountedThreadSafe<AppInstaller>; | 30 friend class base::RefCountedThreadSafe<AppInstaller>; |
31 | 31 |
32 virtual ~AppInstaller(); | 32 virtual ~AppInstaller(); |
33 | 33 |
34 void OnWebContentsDestroyed(content::WebContents* web_contents); | 34 void OnWebContentsDestroyed(content::WebContents* web_contents); |
35 | 35 |
36 // WebstoreStandaloneInstaller implementation. | 36 // WebstoreStandaloneInstaller implementation. |
37 virtual bool CheckRequestorAlive() const OVERRIDE; | 37 virtual bool CheckRequestorAlive() const override; |
38 virtual const GURL& GetRequestorURL() const OVERRIDE; | 38 virtual const GURL& GetRequestorURL() const override; |
39 virtual bool ShouldShowPostInstallUI() const OVERRIDE; | 39 virtual bool ShouldShowPostInstallUI() const override; |
40 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; | 40 virtual bool ShouldShowAppInstalledBubble() const override; |
41 virtual content::WebContents* GetWebContents() const OVERRIDE; | 41 virtual content::WebContents* GetWebContents() const override; |
42 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() | 42 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() |
43 const OVERRIDE; | 43 const override; |
44 virtual bool CheckInlineInstallPermitted( | 44 virtual bool CheckInlineInstallPermitted( |
45 const base::DictionaryValue& webstore_data, | 45 const base::DictionaryValue& webstore_data, |
46 std::string* error) const OVERRIDE; | 46 std::string* error) const override; |
47 virtual bool CheckRequestorPermitted( | 47 virtual bool CheckRequestorPermitted( |
48 const base::DictionaryValue& webstore_data, | 48 const base::DictionaryValue& webstore_data, |
49 std::string* error) const OVERRIDE; | 49 std::string* error) const override; |
50 | 50 |
51 private: | 51 private: |
52 class WebContentsObserver; | 52 class WebContentsObserver; |
53 | 53 |
54 bool silent_installation_; | 54 bool silent_installation_; |
55 Callback callback_; | 55 Callback callback_; |
56 content::WebContents* web_contents_; | 56 content::WebContents* web_contents_; |
57 scoped_ptr<WebContentsObserver> web_contents_observer_; | 57 scoped_ptr<WebContentsObserver> web_contents_observer_; |
58 | 58 |
59 DISALLOW_IMPLICIT_CONSTRUCTORS(AppInstaller); | 59 DISALLOW_IMPLICIT_CONSTRUCTORS(AppInstaller); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace file_manager | 62 } // namespace file_manager |
63 | 63 |
64 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_ | 64 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_APP_INSTALLER_H_ |
OLD | NEW |