Refactor management of overview window copy lifetime into a separate class.
[chromium-blink-merge.git] / content / renderer / renderer_main_platform_delegate_android.cc
blob4a19706360269bd76526fc348869c5c37775a198
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"
11 #endif
13 namespace content {
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();
28 #endif
31 void RendererMainPlatformDelegate::PlatformUninitialize() {
34 bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox) {
35 return true;
38 bool RendererMainPlatformDelegate::EnableSandbox() {
39 return true;
42 void RendererMainPlatformDelegate::RunSandboxTests(bool no_sandbox) {
45 } // namespace content