Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(865)

Side by Side Diff: chrome/browser/extensions/webstore_inline_installer.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_data_fetcher.h ('k') | chrome/browser/extensions/webstore_inline_installer_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698