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

Unified Diff: chrome/renderer/renderer_main_platform_delegate_mac.mm

Issue 6878002: Move renderer_main and renderer_glue to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/renderer_main_platform_delegate_mac.mm
===================================================================
--- chrome/renderer/renderer_main_platform_delegate_mac.mm (revision 81952)
+++ chrome/renderer/renderer_main_platform_delegate_mac.mm (working copy)
@@ -1,58 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/renderer/renderer_main_platform_delegate.h"
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/command_line.h"
-#include "chrome/common/chrome_switches.h"
-#import "content/common/chrome_application_mac.h"
-#include "content/common/sandbox_mac.h"
-#include "third_party/WebKit/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.h"
-
-RendererMainPlatformDelegate::RendererMainPlatformDelegate(
- const MainFunctionParams& parameters)
- : parameters_(parameters) {
-}
-
-RendererMainPlatformDelegate::~RendererMainPlatformDelegate() {
-}
-
-// TODO(mac-port): Any code needed to initialize a process for purposes of
-// running a renderer needs to also be reflected in chrome_main.cc for
-// --single-process support.
-void RendererMainPlatformDelegate::PlatformInitialize() {
- // Initialize NSApplication using the custom subclass. Without this call,
- // drawing of native UI elements (e.g. buttons) in WebKit will explode.
- [CrApplication sharedApplication];
-
- // Load WebKit system interfaces.
- InitWebCoreSystemInterface();
-
- if (![NSThread isMultiThreaded]) {
- NSString* string = @"";
- [NSThread detachNewThreadSelector:@selector(length)
- toTarget:string
- withObject:nil];
- }
-}
-
-void RendererMainPlatformDelegate::PlatformUninitialize() {
-}
-
-bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox) {
- return true;
-}
-
-bool RendererMainPlatformDelegate::EnableSandbox() {
- CommandLine* parsed_command_line = CommandLine::ForCurrentProcess();
- SandboxInitWrapper sandbox_wrapper;
- return sandbox_wrapper.InitializeSandbox(*parsed_command_line,
- switches::kRendererProcess);
-}
-
-void RendererMainPlatformDelegate::RunSandboxTests() {
- // TODO(port): Run sandbox unit test here.
-}
« no previous file with comments | « chrome/renderer/renderer_main_platform_delegate_linux.cc ('k') | chrome/renderer/renderer_main_platform_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698