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

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

Issue 2468673003: [Extensions] Remove ExtensionWebUI (Closed)
Patch Set: nit 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 #include "ui/base/page_transition_types.h"
11 12
12 namespace content { 13 namespace content {
14 struct Referrer;
13 class ResourceContext; 15 class ResourceContext;
14 class VpnServiceProxy; 16 class VpnServiceProxy;
15 } 17 }
16 18
17 namespace extensions { 19 namespace extensions {
18 20
19 // Implements the extensions portion of ChromeContentBrowserClient. 21 // Implements the extensions portion of ChromeContentBrowserClient.
20 class ChromeContentBrowserClientExtensionsPart 22 class ChromeContentBrowserClientExtensionsPart
21 : public ChromeContentBrowserClientParts { 23 : public ChromeContentBrowserClientParts {
22 public: 24 public:
(...skipping 22 matching lines...) Expand all
45 const GURL& new_url); 47 const GURL& new_url);
46 static bool ShouldSwapProcessesForRedirect( 48 static bool ShouldSwapProcessesForRedirect(
47 content::BrowserContext* browser_context, 49 content::BrowserContext* browser_context,
48 const GURL& current_url, 50 const GURL& current_url,
49 const GURL& new_url); 51 const GURL& new_url);
50 static bool AllowServiceWorker(const GURL& scope, 52 static bool AllowServiceWorker(const GURL& scope,
51 const GURL& first_party_url, 53 const GURL& first_party_url,
52 content::ResourceContext* context, 54 content::ResourceContext* context,
53 int render_process_id, 55 int render_process_id,
54 int render_frame_id); 56 int render_frame_id);
57 static void OverrideNavigationParams(content::SiteInstance* site_instance,
58 ui::PageTransition* transition,
59 bool* is_renderer_initiated,
60 content::Referrer* referrer);
55 61
56 // Similiar to ChromeContentBrowserClient::ShouldAllowOpenURL(), but the 62 // Similiar to ChromeContentBrowserClient::ShouldAllowOpenURL(), but the
57 // return value indicates whether to use |result| or not. 63 // return value indicates whether to use |result| or not.
58 static bool ShouldAllowOpenURL(content::SiteInstance* site_instance, 64 static bool ShouldAllowOpenURL(content::SiteInstance* site_instance,
59 const GURL& to_url, 65 const GURL& to_url,
60 bool* result); 66 bool* result);
61 67
62 // Helper function to call InfoMap::SetSigninProcess(). 68 // Helper function to call InfoMap::SetSigninProcess().
63 static void SetSigninProcess(content::SiteInstance* site_instance); 69 static void SetSigninProcess(content::SiteInstance* site_instance);
64 70
(...skipping 24 matching lines...) Expand all
89 Profile* profile) override; 95 Profile* profile) override;
90 void ResourceDispatcherHostCreated() override; 96 void ResourceDispatcherHostCreated() override;
91 97
92 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); 98 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart);
93 }; 99 };
94 100
95 } // namespace extensions 101 } // namespace extensions
96 102
97 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_ 103 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_
98 104
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698