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

Side by Side Diff: content/browser/child_process_security_policy_impl.h

Issue 11273049: Revert 164120 - content/browser: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
6 #define CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 6 #define CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
7 7
8
8 #include <map> 9 #include <map>
9 #include <set> 10 #include <set>
10 #include <string> 11 #include <string>
11 12
12 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
14 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
15 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
16 #include "content/public/browser/child_process_security_policy.h" 17 #include "content/public/browser/child_process_security_policy.h"
17 18
18 class FilePath; 19 class FilePath;
19 class GURL; 20 class GURL;
20 21
21 namespace content {
22
23 class CONTENT_EXPORT ChildProcessSecurityPolicyImpl 22 class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
24 : NON_EXPORTED_BASE(public ChildProcessSecurityPolicy) { 23 : NON_EXPORTED_BASE(public content::ChildProcessSecurityPolicy) {
25 public: 24 public:
26 // Object can only be created through GetInstance() so the constructor is 25 // Object can only be created through GetInstance() so the constructor is
27 // private. 26 // private.
28 virtual ~ChildProcessSecurityPolicyImpl(); 27 virtual ~ChildProcessSecurityPolicyImpl();
29 28
30 static ChildProcessSecurityPolicyImpl* GetInstance(); 29 static ChildProcessSecurityPolicyImpl* GetInstance();
31 30
32 // ChildProcessSecurityPolicy implementation. 31 // ChildProcessSecurityPolicy implementation.
33 virtual void RegisterWebSafeScheme(const std::string& scheme) OVERRIDE; 32 virtual void RegisterWebSafeScheme(const std::string& scheme) OVERRIDE;
34 virtual bool IsWebSafeScheme(const std::string& scheme) OVERRIDE; 33 virtual bool IsWebSafeScheme(const std::string& scheme) OVERRIDE;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // not escape this class. 200 // not escape this class.
202 SecurityStateMap security_state_; 201 SecurityStateMap security_state_;
203 202
204 // This maps keeps the record of which js worker thread child process 203 // This maps keeps the record of which js worker thread child process
205 // corresponds to which main js thread child process. 204 // corresponds to which main js thread child process.
206 WorkerToMainProcessMap worker_map_; 205 WorkerToMainProcessMap worker_map_;
207 206
208 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); 207 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl);
209 }; 208 };
210 209
211 } // namespace content
212
213 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 210 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_browsertest.cc ('k') | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698