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

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

Issue 1988613005: ppapi: PPB_VpnProvider: Implement Service Helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vpn-permission
Patch Set: Rebase. Created 4 years, 6 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 class VpnServiceProxy;
14 } 15 }
15 16
16 namespace extensions { 17 namespace extensions {
17 18
18 // Implements the extensions portion of ChromeContentBrowserClient. 19 // Implements the extensions portion of ChromeContentBrowserClient.
19 class ChromeContentBrowserClientExtensionsPart 20 class ChromeContentBrowserClientExtensionsPart
20 : public ChromeContentBrowserClientParts { 21 : public ChromeContentBrowserClientParts {
21 public: 22 public:
22 ChromeContentBrowserClientExtensionsPart(); 23 ChromeContentBrowserClientExtensionsPart();
23 ~ChromeContentBrowserClientExtensionsPart() override; 24 ~ChromeContentBrowserClientExtensionsPart() override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Similiar to ChromeContentBrowserClient::ShouldAllowOpenURL(), but the 59 // Similiar to ChromeContentBrowserClient::ShouldAllowOpenURL(), but the
59 // return value indicates whether to use |result| or not. 60 // return value indicates whether to use |result| or not.
60 static bool ShouldAllowOpenURL(content::SiteInstance* site_instance, 61 static bool ShouldAllowOpenURL(content::SiteInstance* site_instance,
61 const GURL& from_url, 62 const GURL& from_url,
62 const GURL& to_url, 63 const GURL& to_url,
63 bool* result); 64 bool* result);
64 65
65 // Helper function to call InfoMap::SetSigninProcess(). 66 // Helper function to call InfoMap::SetSigninProcess().
66 static void SetSigninProcess(content::SiteInstance* site_instance); 67 static void SetSigninProcess(content::SiteInstance* site_instance);
67 68
69 // Creates a new VpnServiceProxy. The caller owns the returned value. It's
70 // valid to return nullptr.
71 static std::unique_ptr<content::VpnServiceProxy> GetVpnServiceProxy(
72 content::BrowserContext* browser_context);
73
68 private: 74 private:
69 // ChromeContentBrowserClientParts: 75 // ChromeContentBrowserClientParts:
70 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; 76 void RenderProcessWillLaunch(content::RenderProcessHost* host) override;
71 void SiteInstanceGotProcess(content::SiteInstance* site_instance) override; 77 void SiteInstanceGotProcess(content::SiteInstance* site_instance) override;
72 void SiteInstanceDeleting(content::SiteInstance* site_instance) override; 78 void SiteInstanceDeleting(content::SiteInstance* site_instance) override;
73 void OverrideWebkitPrefs(content::RenderViewHost* rvh, 79 void OverrideWebkitPrefs(content::RenderViewHost* rvh,
74 content::WebPreferences* web_prefs) override; 80 content::WebPreferences* web_prefs) override;
75 void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) override; 81 void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) override;
76 void GetAdditionalAllowedSchemesForFileSystem( 82 void GetAdditionalAllowedSchemesForFileSystem(
77 std::vector<std::string>* additional_allowed_schemes) override; 83 std::vector<std::string>* additional_allowed_schemes) override;
78 void GetURLRequestAutoMountHandlers( 84 void GetURLRequestAutoMountHandlers(
79 std::vector<storage::URLRequestAutoMountHandler>* handlers) override; 85 std::vector<storage::URLRequestAutoMountHandler>* handlers) override;
80 void GetAdditionalFileSystemBackends( 86 void GetAdditionalFileSystemBackends(
81 content::BrowserContext* browser_context, 87 content::BrowserContext* browser_context,
82 const base::FilePath& storage_partition_path, 88 const base::FilePath& storage_partition_path,
83 ScopedVector<storage::FileSystemBackend>* additional_backends) override; 89 ScopedVector<storage::FileSystemBackend>* additional_backends) override;
84 void AppendExtraRendererCommandLineSwitches( 90 void AppendExtraRendererCommandLineSwitches(
85 base::CommandLine* command_line, 91 base::CommandLine* command_line,
86 content::RenderProcessHost* process, 92 content::RenderProcessHost* process,
87 Profile* profile) override; 93 Profile* profile) override;
88 94
89 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); 95 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart);
90 }; 96 };
91 97
92 } // namespace extensions 98 } // namespace extensions
93 99
94 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_ 100 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_
95 101
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698