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_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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 const std::string& webstore_item_id, | 35 const std::string& webstore_item_id, |
36 const GURL& requestor_url, | 36 const GURL& requestor_url, |
37 const Callback& callback); | 37 const Callback& callback); |
38 | 38 |
39 protected: | 39 protected: |
40 friend class base::RefCountedThreadSafe<WebstoreInlineInstaller>; | 40 friend class base::RefCountedThreadSafe<WebstoreInlineInstaller>; |
41 | 41 |
42 virtual ~WebstoreInlineInstaller(); | 42 virtual ~WebstoreInlineInstaller(); |
43 | 43 |
44 // Implementations WebstoreStandaloneInstaller Template Method's hooks. | 44 // Implementations WebstoreStandaloneInstaller Template Method's hooks. |
45 virtual bool CheckRequestorAlive() const OVERRIDE; | 45 virtual bool CheckRequestorAlive() const override; |
46 virtual const GURL& GetRequestorURL() const OVERRIDE; | 46 virtual const GURL& GetRequestorURL() const override; |
47 virtual bool ShouldShowPostInstallUI() const OVERRIDE; | 47 virtual bool ShouldShowPostInstallUI() const override; |
48 virtual bool ShouldShowAppInstalledBubble() const OVERRIDE; | 48 virtual bool ShouldShowAppInstalledBubble() const override; |
49 virtual content::WebContents* GetWebContents() const OVERRIDE; | 49 virtual content::WebContents* GetWebContents() const override; |
50 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() | 50 virtual scoped_refptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() |
51 const OVERRIDE; | 51 const override; |
52 virtual bool CheckInlineInstallPermitted( | 52 virtual bool CheckInlineInstallPermitted( |
53 const base::DictionaryValue& webstore_data, | 53 const base::DictionaryValue& webstore_data, |
54 std::string* error) const OVERRIDE; | 54 std::string* error) const override; |
55 virtual bool CheckRequestorPermitted( | 55 virtual bool CheckRequestorPermitted( |
56 const base::DictionaryValue& webstore_data, | 56 const base::DictionaryValue& webstore_data, |
57 std::string* error) const OVERRIDE; | 57 std::string* error) const override; |
58 | 58 |
59 private: | 59 private: |
60 // content::WebContentsObserver interface implementation. | 60 // content::WebContentsObserver interface implementation. |
61 virtual void WebContentsDestroyed() OVERRIDE; | 61 virtual void WebContentsDestroyed() override; |
62 | 62 |
63 // Checks whether the install is initiated by a page in a verified site | 63 // Checks whether the install is initiated by a page in a verified site |
64 // (which is at least a domain, but can also have a port or a path). | 64 // (which is at least a domain, but can also have a port or a path). |
65 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, | 65 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, |
66 const std::string& verified_site); | 66 const std::string& verified_site); |
67 | 67 |
68 GURL requestor_url_; | 68 GURL requestor_url_; |
69 | 69 |
70 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); | 70 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace extensions | 73 } // namespace extensions |
74 | 74 |
75 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ | 75 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
OLD | NEW |