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

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

Issue 11340029: Move remaining files in content\browser to the content namespace. (Closed) Base URL: svn://chrome-svn/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
tfarina 2012/10/30 21:59:50 extra blank line
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "content/public/browser/child_process_security_policy.h" 17 #include "content/public/browser/child_process_security_policy.h"
18 18
19 class FilePath; 19 class FilePath;
20 class GURL; 20 class GURL;
21 21
22 namespace content {
23
22 class CONTENT_EXPORT ChildProcessSecurityPolicyImpl 24 class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
23 : NON_EXPORTED_BASE(public content::ChildProcessSecurityPolicy) { 25 : NON_EXPORTED_BASE(public ChildProcessSecurityPolicy) {
24 public: 26 public:
25 // Object can only be created through GetInstance() so the constructor is 27 // Object can only be created through GetInstance() so the constructor is
26 // private. 28 // private.
27 virtual ~ChildProcessSecurityPolicyImpl(); 29 virtual ~ChildProcessSecurityPolicyImpl();
28 30
29 static ChildProcessSecurityPolicyImpl* GetInstance(); 31 static ChildProcessSecurityPolicyImpl* GetInstance();
30 32
31 // ChildProcessSecurityPolicy implementation. 33 // ChildProcessSecurityPolicy implementation.
32 virtual void RegisterWebSafeScheme(const std::string& scheme) OVERRIDE; 34 virtual void RegisterWebSafeScheme(const std::string& scheme) OVERRIDE;
33 virtual bool IsWebSafeScheme(const std::string& scheme) OVERRIDE; 35 virtual bool IsWebSafeScheme(const std::string& scheme) OVERRIDE;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // not escape this class. 202 // not escape this class.
201 SecurityStateMap security_state_; 203 SecurityStateMap security_state_;
202 204
203 // This maps keeps the record of which js worker thread child process 205 // This maps keeps the record of which js worker thread child process
204 // corresponds to which main js thread child process. 206 // corresponds to which main js thread child process.
205 WorkerToMainProcessMap worker_map_; 207 WorkerToMainProcessMap worker_map_;
206 208
207 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl); 209 DISALLOW_COPY_AND_ASSIGN(ChildProcessSecurityPolicyImpl);
208 }; 210 };
209 211
212 } // namespace content
213
210 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_ 214 #endif // CONTENT_BROWSER_CHILD_PROCESS_SECURITY_POLICY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698