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

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

Issue 1270663002: Validate the Origin HTTP header in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 5 years, 4 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"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 ChromeContentBrowserClientExtensionsPart(); 24 ChromeContentBrowserClientExtensionsPart();
25 ~ChromeContentBrowserClientExtensionsPart() override; 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 IsIllegalOrigin(content::ResourceContext* resource_context,
34 int child_process_id,
35 const GURL& origin);
33 static bool IsSuitableHost(Profile* profile, 36 static bool IsSuitableHost(Profile* profile,
34 content::RenderProcessHost* process_host, 37 content::RenderProcessHost* process_host,
35 const GURL& site_url); 38 const GURL& site_url);
36 static bool ShouldTryToUseExistingProcessHost(Profile* profile, 39 static bool ShouldTryToUseExistingProcessHost(Profile* profile,
37 const GURL& url); 40 const GURL& url);
38 static bool ShouldSwapBrowsingInstancesForNavigation( 41 static bool ShouldSwapBrowsingInstancesForNavigation(
39 content::SiteInstance* site_instance, 42 content::SiteInstance* site_instance,
40 const GURL& current_url, 43 const GURL& current_url,
41 const GURL& new_url); 44 const GURL& new_url);
42 static bool ShouldSwapProcessesForRedirect( 45 static bool ShouldSwapProcessesForRedirect(
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 80
78 scoped_ptr<BrowserPermissionsPolicyDelegate> permissions_policy_delegate_; 81 scoped_ptr<BrowserPermissionsPolicyDelegate> permissions_policy_delegate_;
79 82
80 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); 83 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart);
81 }; 84 };
82 85
83 } // namespace extensions 86 } // namespace extensions
84 87
85 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_ 88 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_
86 89
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698