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

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

Issue 2468673003: [Extensions] Remove ExtensionWebUI (Closed)
Patch Set: maybefix Created 4 years, 1 month 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 struct OpenURLParams;
13 class ResourceContext; 14 class ResourceContext;
14 class VpnServiceProxy; 15 class VpnServiceProxy;
15 } 16 }
16 17
17 namespace extensions { 18 namespace extensions {
18 19
19 // Implements the extensions portion of ChromeContentBrowserClient. 20 // Implements the extensions portion of ChromeContentBrowserClient.
20 class ChromeContentBrowserClientExtensionsPart 21 class ChromeContentBrowserClientExtensionsPart
21 : public ChromeContentBrowserClientParts { 22 : public ChromeContentBrowserClientParts {
22 public: 23 public:
(...skipping 30 matching lines...) Expand all
53 int render_process_id, 54 int render_process_id,
54 int render_frame_id); 55 int render_frame_id);
55 56
56 // Similiar to ChromeContentBrowserClient::ShouldAllowOpenURL(), but the 57 // Similiar to ChromeContentBrowserClient::ShouldAllowOpenURL(), but the
57 // return value indicates whether to use |result| or not. 58 // return value indicates whether to use |result| or not.
58 static bool ShouldAllowOpenURL(content::SiteInstance* site_instance, 59 static bool ShouldAllowOpenURL(content::SiteInstance* site_instance,
59 const GURL& from_url, 60 const GURL& from_url,
60 const GURL& to_url, 61 const GURL& to_url,
61 bool* result); 62 bool* result);
62 63
64 static void OverrideOpenURLParams(content::SiteInstance* site_instance,
65 content::OpenURLParams* params);
66
63 // Helper function to call InfoMap::SetSigninProcess(). 67 // Helper function to call InfoMap::SetSigninProcess().
64 static void SetSigninProcess(content::SiteInstance* site_instance); 68 static void SetSigninProcess(content::SiteInstance* site_instance);
65 69
66 // Creates a new VpnServiceProxy. The caller owns the returned value. It's 70 // Creates a new VpnServiceProxy. The caller owns the returned value. It's
67 // valid to return nullptr. 71 // valid to return nullptr.
68 static std::unique_ptr<content::VpnServiceProxy> GetVpnServiceProxy( 72 static std::unique_ptr<content::VpnServiceProxy> GetVpnServiceProxy(
69 content::BrowserContext* browser_context); 73 content::BrowserContext* browser_context);
70 74
71 private: 75 private:
72 // ChromeContentBrowserClientParts: 76 // ChromeContentBrowserClientParts:
(...skipping 17 matching lines...) Expand all
90 Profile* profile) override; 94 Profile* profile) override;
91 void ResourceDispatcherHostCreated() override; 95 void ResourceDispatcherHostCreated() override;
92 96
93 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); 97 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart);
94 }; 98 };
95 99
96 } // namespace extensions 100 } // namespace extensions
97 101
98 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_ 102 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_
99 103
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698