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

Unified Diff: content/browser/shared/child_process_security_policy_helper.h

Issue 2108053005: Pull ChildProcessSecurityPolicyImpl out to shared subfolder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/shared/DEPS ('k') | content/browser/shared/child_process_security_policy_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/shared/child_process_security_policy_helper.h
diff --git a/content/browser/child_process_security_policy_impl.h b/content/browser/shared/child_process_security_policy_helper.h
similarity index 94%
rename from content/browser/child_process_security_policy_impl.h
rename to content/browser/shared/child_process_security_policy_helper.h
index 271e69c0acd110ed0e3d74f7b1d0c8512300973f..e68524c62d3d6aa1d19ae7a3a855088b7dcf2dd9 100644
--- a/content/browser/child_process_security_policy_impl.h
+++ b/content/browser/shared/child_process_security_policy_helper.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
-#define CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
+#ifndef CONTENT_BROWSER_SHARED_CHILD_PROCESS_SECURITY_POLICY_HELPER_H_
+#define CONTENT_BROWSER_SHARED_CHILD_PROCESS_SECURITY_POLICY_HELPER_H_
#include <map>
#include <set>
@@ -31,14 +31,14 @@ class FileSystemURL;
namespace content {
-class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
+class CONTENT_EXPORT ChildProcessSecurityPolicyHelper
: NON_EXPORTED_BASE(public ChildProcessSecurityPolicy) {
public:
// Object can only be created through GetInstance() so the constructor is
// private.
- ~ChildProcessSecurityPolicyImpl() override;
+ ~ChildProcessSecurityPolicyHelper() override;
- static ChildProcessSecurityPolicyImpl* GetInstance();
+ static ChildProcessSecurityPolicyHelper* GetInstance();
// ChildProcessSecurityPolicy implementation.
void RegisterWebSafeScheme(const std::string& scheme) override;
@@ -178,9 +178,9 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
typedef std::map<int, int> WorkerToMainProcessMap;
typedef std::map<storage::FileSystemType, int> FileSystemPermissionPolicyMap;
- // Obtain an instance of ChildProcessSecurityPolicyImpl via GetInstance().
- ChildProcessSecurityPolicyImpl();
- friend struct base::DefaultSingletonTraits<ChildProcessSecurityPolicyImpl>;
+ // Obtain an instance of ChildProcessSecurityPolicyHelper via GetInstance().
+ ChildProcessSecurityPolicyHelper();
+ friend struct base::DefaultSingletonTraits<ChildProcessSecurityPolicyHelper>;
// Adds child process during registration.
void AddChild(int child_id);
@@ -251,9 +251,9 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
FileSystemPermissionPolicyMap file_system_policy_map_;
- DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl);
+ DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyHelper);
};
} // namespace content
-#endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
+#endif // CONTENT_BROWSER_SHARED_CHILD_PROCESS_SECURITY_POLICY_HELPER_H_
« no previous file with comments | « content/browser/shared/DEPS ('k') | content/browser/shared/child_process_security_policy_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698