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
3 // found in the LICENSE file.
5 #include "content/renderer/renderer_main_platform_delegate.h"
6 #include "base/logging.h"
8 #ifdef ENABLE_VTUNE_JIT_INTERFACE
9 #include "content/public/common/content_switches.h"
10 #include "v8/src/third_party/vtune/v8-vtune.h"
15 RendererMainPlatformDelegate::RendererMainPlatformDelegate(
16 const MainFunctionParams
& parameters
)
17 : parameters_(parameters
) {
20 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() {
23 void RendererMainPlatformDelegate::PlatformInitialize() {
24 #ifdef ENABLE_VTUNE_JIT_INTERFACE
25 const CommandLine
& command_line
= parameters_
.command_line
;
26 if (command_line
.HasSwitch(switches::kEnableVtune
))
27 vTune::InitializeVtuneForV8();
31 void RendererMainPlatformDelegate::PlatformUninitialize() {
34 bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox
) {
38 bool RendererMainPlatformDelegate::EnableSandbox() {
42 void RendererMainPlatformDelegate::RunSandboxTests(bool no_sandbox
) {
45 } // namespace content