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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 CreateInstallPrompt() const OVERRIDE; | 51 CreateInstallPrompt() 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( | 61 virtual void WebContentsDestroyed() OVERRIDE; |
62 content::WebContents* web_contents) OVERRIDE; | |
63 | 62 |
64 // 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 |
65 // (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). |
66 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, | 65 static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, |
67 const std::string& verified_site); | 66 const std::string& verified_site); |
68 | 67 |
69 GURL requestor_url_; | 68 GURL requestor_url_; |
70 | 69 |
71 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); | 70 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); |
72 }; | 71 }; |
73 | 72 |
74 } // namespace extensions | 73 } // namespace extensions |
75 | 74 |
76 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ | 75 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_H_ |
OLD | NEW |