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

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

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_ 5 #ifndef CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_
6 #define CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_ 6 #define CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
11 #include "content/public/browser/browser_child_process_observer.h" 12 #include "content/public/browser/browser_child_process_observer.h"
12 #include "content/public/browser/render_process_host_observer.h" 13 #include "content/public/browser/render_process_host_observer.h"
13 #include "content/public/common/sandbox_type.h" 14 #include "content/public/common/sandbox_type.h"
14 15
15 namespace sandbox { 16 namespace sandbox {
16 class BootstrapSandbox; 17 class BootstrapSandbox;
17 struct BootstrapSandboxPolicy; 18 struct BootstrapSandboxPolicy;
18 } 19 }
19 20
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 private: 54 private:
54 friend struct base::DefaultSingletonTraits<BootstrapSandboxManager>; 55 friend struct base::DefaultSingletonTraits<BootstrapSandboxManager>;
55 BootstrapSandboxManager(); 56 BootstrapSandboxManager();
56 ~BootstrapSandboxManager() override; 57 ~BootstrapSandboxManager() override;
57 58
58 void RegisterSandboxPolicies(); 59 void RegisterSandboxPolicies();
59 void RegisterRendererPolicy(); 60 void RegisterRendererPolicy();
60 61
61 void AddBaselinePolicy(sandbox::BootstrapSandboxPolicy* policy); 62 void AddBaselinePolicy(sandbox::BootstrapSandboxPolicy* policy);
62 63
63 scoped_ptr<sandbox::BootstrapSandbox> sandbox_; 64 std::unique_ptr<sandbox::BootstrapSandbox> sandbox_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(BootstrapSandboxManager); 66 DISALLOW_COPY_AND_ASSIGN(BootstrapSandboxManager);
66 }; 67 };
67 68
68 } // namespace content 69 } // namespace content
69 70
70 #endif // CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_ 71 #endif // CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/browser/browser_child_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698