OLD | NEW |
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 #include "content/renderer/renderer_main_platform_delegate.h" | 5 #include "content/renderer/renderer_main_platform_delegate.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "content/common/sandbox_linux/sandbox_linux.h" | 13 #include "content/common/sandbox_linux/sandbox_linux.h" |
14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
15 #include "content/public/common/sandbox_init.h" | 15 #include "content/public/common/sandbox_init.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 RendererMainPlatformDelegate::RendererMainPlatformDelegate( | 19 RendererMainPlatformDelegate::RendererMainPlatformDelegate( |
20 const MainFunctionParams& parameters) | 20 const MainFunctionParams& parameters) {} |
21 : parameters_(parameters) { | |
22 } | |
23 | 21 |
24 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { | 22 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { |
25 } | 23 } |
26 | 24 |
27 void RendererMainPlatformDelegate::PlatformInitialize() { | 25 void RendererMainPlatformDelegate::PlatformInitialize() { |
28 } | 26 } |
29 | 27 |
30 void RendererMainPlatformDelegate::PlatformUninitialize() { | 28 void RendererMainPlatformDelegate::PlatformUninitialize() { |
31 } | 29 } |
32 | 30 |
(...skipping 26 matching lines...) Expand all Loading... |
59 // but we know that under the seccomp-bpf sandbox, this should return EPERM. | 57 // but we know that under the seccomp-bpf sandbox, this should return EPERM. |
60 CHECK_EQ(fchmod(-1, 07777), -1); | 58 CHECK_EQ(fchmod(-1, 07777), -1); |
61 CHECK_EQ(errno, EPERM); | 59 CHECK_EQ(errno, EPERM); |
62 } | 60 } |
63 #endif // __x86_64__ | 61 #endif // __x86_64__ |
64 | 62 |
65 return true; | 63 return true; |
66 } | 64 } |
67 | 65 |
68 } // namespace content | 66 } // namespace content |
OLD | NEW |