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

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

Issue 666153002: Standardize usage of virtual/override/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_ H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_ H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_ H_ 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_ H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/chrome_content_browser_client_parts.h" 10 #include "chrome/browser/chrome_content_browser_client_parts.h"
11 11
12 namespace content { 12 namespace content {
13 class ResourceContext; 13 class ResourceContext;
14 } 14 }
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 class BrowserPermissionsPolicyDelegate; 18 class BrowserPermissionsPolicyDelegate;
19 19
20 // Implements the extensions portion of ChromeContentBrowserClient. 20 // Implements the extensions portion of ChromeContentBrowserClient.
21 class ChromeContentBrowserClientExtensionsPart 21 class ChromeContentBrowserClientExtensionsPart
22 : public ChromeContentBrowserClientParts { 22 : public ChromeContentBrowserClientParts {
23 public: 23 public:
24 ChromeContentBrowserClientExtensionsPart(); 24 ChromeContentBrowserClientExtensionsPart();
25 virtual ~ChromeContentBrowserClientExtensionsPart(); 25 ~ChromeContentBrowserClientExtensionsPart() override;
26 26
27 // Corresponds to the ChromeContentBrowserClient function of the same name. 27 // Corresponds to the ChromeContentBrowserClient function of the same name.
28 static GURL GetEffectiveURL(Profile* profile, const GURL& url); 28 static GURL GetEffectiveURL(Profile* profile, const GURL& url);
29 static bool ShouldUseProcessPerSite(Profile* profile, 29 static bool ShouldUseProcessPerSite(Profile* profile,
30 const GURL& effective_url); 30 const GURL& effective_url);
31 static bool CanCommitURL(content::RenderProcessHost* process_host, 31 static bool CanCommitURL(content::RenderProcessHost* process_host,
32 const GURL& url); 32 const GURL& url);
33 static bool IsSuitableHost(Profile* profile, 33 static bool IsSuitableHost(Profile* profile,
34 content::RenderProcessHost* process_host, 34 content::RenderProcessHost* process_host,
35 const GURL& site_url); 35 const GURL& site_url);
(...skipping 13 matching lines...) Expand all
49 static bool ShouldAllowOpenURL(content::SiteInstance* site_instance, 49 static bool ShouldAllowOpenURL(content::SiteInstance* site_instance,
50 const GURL& from_url, 50 const GURL& from_url,
51 const GURL& to_url, 51 const GURL& to_url,
52 bool* result); 52 bool* result);
53 53
54 // Helper function to call InfoMap::SetSigninProcess(). 54 // Helper function to call InfoMap::SetSigninProcess().
55 static void SetSigninProcess(content::SiteInstance* site_instance); 55 static void SetSigninProcess(content::SiteInstance* site_instance);
56 56
57 private: 57 private:
58 // ChromeContentBrowserClientParts: 58 // ChromeContentBrowserClientParts:
59 virtual void RenderProcessWillLaunch( 59 void RenderProcessWillLaunch(content::RenderProcessHost* host) override;
60 content::RenderProcessHost* host) override; 60 void SiteInstanceGotProcess(content::SiteInstance* site_instance) override;
61 virtual void SiteInstanceGotProcess( 61 void SiteInstanceDeleting(content::SiteInstance* site_instance) override;
62 content::SiteInstance* site_instance) override; 62 void OverrideWebkitPrefs(content::RenderViewHost* rvh,
63 virtual void SiteInstanceDeleting( 63 const GURL& url,
64 content::SiteInstance* site_instance) override; 64 content::WebPreferences* web_prefs) override;
65 virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh, 65 void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) override;
66 const GURL& url, 66 void GetAdditionalAllowedSchemesForFileSystem(
67 content::WebPreferences* web_prefs) override;
68 virtual void BrowserURLHandlerCreated(
69 content::BrowserURLHandler* handler) override;
70 virtual void GetAdditionalAllowedSchemesForFileSystem(
71 std::vector<std::string>* additional_allowed_schemes) override; 67 std::vector<std::string>* additional_allowed_schemes) override;
72 virtual void GetURLRequestAutoMountHandlers( 68 void GetURLRequestAutoMountHandlers(
73 std::vector<storage::URLRequestAutoMountHandler>* handlers) override; 69 std::vector<storage::URLRequestAutoMountHandler>* handlers) override;
74 virtual void GetAdditionalFileSystemBackends( 70 void GetAdditionalFileSystemBackends(
75 content::BrowserContext* browser_context, 71 content::BrowserContext* browser_context,
76 const base::FilePath& storage_partition_path, 72 const base::FilePath& storage_partition_path,
77 ScopedVector<storage::FileSystemBackend>* additional_backends) override; 73 ScopedVector<storage::FileSystemBackend>* additional_backends) override;
78 virtual void AppendExtraRendererCommandLineSwitches( 74 void AppendExtraRendererCommandLineSwitches(
79 base::CommandLine* command_line, 75 base::CommandLine* command_line,
80 content::RenderProcessHost* process, 76 content::RenderProcessHost* process,
81 Profile* profile) override; 77 Profile* profile) override;
82 78
83 scoped_ptr<BrowserPermissionsPolicyDelegate> permissions_policy_delegate_; 79 scoped_ptr<BrowserPermissionsPolicyDelegate> permissions_policy_delegate_;
84 80
85 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); 81 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart);
86 }; 82 };
87 83
88 } // namespace extensions 84 } // namespace extensions
89 85
90 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_ 86 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_
91 87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698