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

Side by Side Diff: content/shell/app/shell_main_delegate.cc

Issue 401523002: Move media related mimetype functionality out of net/ and into media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and add content/common/mime_util.h for realz Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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/shell/app/shell_main_delegate.h" 5 #include "content/shell/app/shell_main_delegate.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/cpu.h" 9 #include "base/cpu.h"
10 #include "base/files/file.h" 10 #include "base/files/file.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "cc/base/switches.h" 15 #include "cc/base/switches.h"
16 #include "content/public/browser/browser_main_runner.h" 16 #include "content/public/browser/browser_main_runner.h"
17 #include "content/public/common/content_switches.h" 17 #include "content/public/common/content_switches.h"
18 #include "content/public/common/url_constants.h" 18 #include "content/public/common/url_constants.h"
19 #include "content/public/test/layouttest_support.h" 19 #include "content/public/test/layouttest_support.h"
20 #include "content/shell/app/shell_breakpad_client.h" 20 #include "content/shell/app/shell_breakpad_client.h"
21 #include "content/shell/app/webkit_test_platform_support.h" 21 #include "content/shell/app/webkit_test_platform_support.h"
22 #include "content/shell/browser/shell_browser_main.h" 22 #include "content/shell/browser/shell_browser_main.h"
23 #include "content/shell/browser/shell_content_browser_client.h" 23 #include "content/shell/browser/shell_content_browser_client.h"
24 #include "content/shell/common/shell_switches.h" 24 #include "content/shell/common/shell_switches.h"
25 #include "content/shell/renderer/shell_content_renderer_client.h" 25 #include "content/shell/renderer/shell_content_renderer_client.h"
26 #include "media/base/mime_util.h"
26 #include "net/cookies/cookie_monster.h" 27 #include "net/cookies/cookie_monster.h"
27 #include "ui/base/resource/resource_bundle.h" 28 #include "ui/base/resource/resource_bundle.h"
28 #include "ui/base/ui_base_paths.h" 29 #include "ui/base/ui_base_paths.h"
29 #include "ui/base/ui_base_switches.h" 30 #include "ui/base/ui_base_switches.h"
30 #include "ui/events/event_switches.h" 31 #include "ui/events/event_switches.h"
31 #include "ui/gfx/switches.h" 32 #include "ui/gfx/switches.h"
32 #include "ui/gl/gl_switches.h" 33 #include "ui/gl/gl_switches.h"
33 34
34 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. 35 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
35 36
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 command_line.AppendSwitch(cc::switches::kCompositeToMailbox); 169 command_line.AppendSwitch(cc::switches::kCompositeToMailbox);
169 #endif 170 #endif
170 171
171 command_line.AppendSwitch(switches::kEnableFileCookies); 172 command_line.AppendSwitch(switches::kEnableFileCookies);
172 173
173 command_line.AppendSwitch(switches::kEnablePreciseMemoryInfo); 174 command_line.AppendSwitch(switches::kEnablePreciseMemoryInfo);
174 175
175 // Unless/until WebM files are added to the media layout tests, we need to 176 // Unless/until WebM files are added to the media layout tests, we need to
176 // avoid removing MP4/H264/AAC so that layout tests can run on Android. 177 // avoid removing MP4/H264/AAC so that layout tests can run on Android.
177 #if !defined(OS_ANDROID) 178 #if !defined(OS_ANDROID)
178 net::RemoveProprietaryMediaTypesAndCodecsForTests(); 179 media::RemoveProprietaryMediaTypesAndCodecsForTests();
179 #endif 180 #endif
180 181
181 if (!WebKitTestPlatformInitialize()) { 182 if (!WebKitTestPlatformInitialize()) {
182 if (exit_code) 183 if (exit_code)
183 *exit_code = 1; 184 *exit_code = 1;
184 return true; 185 return true;
185 } 186 }
186 } 187 }
187 SetContentClient(&content_client_); 188 SetContentClient(&content_client_);
188 return false; 189 return false;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 browser_client_.reset(new ShellContentBrowserClient); 296 browser_client_.reset(new ShellContentBrowserClient);
296 return browser_client_.get(); 297 return browser_client_.get();
297 } 298 }
298 299
299 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { 300 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() {
300 renderer_client_.reset(new ShellContentRendererClient); 301 renderer_client_.reset(new ShellContentRendererClient);
301 return renderer_client_.get(); 302 return renderer_client_.get();
302 } 303 }
303 304
304 } // namespace content 305 } // namespace content
OLDNEW
« content/common/mime_util.cc ('K') | « content/shell/DEPS ('k') | media/base/mime_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698