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

Side by Side Diff: chromecast/browser/cast_content_browser_client.cc

Issue 2300703005: DevTools: merge devtools_http_handler into content - it is used in all the embedders anyways. (Closed)
Patch Set: for_landing! Created 4 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chromecast/browser/cast_content_browser_client.h" 5 #include "chromecast/browser/cast_content_browser_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 11 matching lines...) Expand all
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "chromecast/base/cast_constants.h" 23 #include "chromecast/base/cast_constants.h"
24 #include "chromecast/base/cast_paths.h" 24 #include "chromecast/base/cast_paths.h"
25 #include "chromecast/base/chromecast_switches.h" 25 #include "chromecast/base/chromecast_switches.h"
26 #include "chromecast/browser/cast_browser_context.h" 26 #include "chromecast/browser/cast_browser_context.h"
27 #include "chromecast/browser/cast_browser_main_parts.h" 27 #include "chromecast/browser/cast_browser_main_parts.h"
28 #include "chromecast/browser/cast_browser_process.h" 28 #include "chromecast/browser/cast_browser_process.h"
29 #include "chromecast/browser/cast_network_delegate.h" 29 #include "chromecast/browser/cast_network_delegate.h"
30 #include "chromecast/browser/cast_quota_permission_context.h" 30 #include "chromecast/browser/cast_quota_permission_context.h"
31 #include "chromecast/browser/cast_resource_dispatcher_host_delegate.h" 31 #include "chromecast/browser/cast_resource_dispatcher_host_delegate.h"
32 #include "chromecast/browser/devtools/cast_devtools_delegate.h"
32 #include "chromecast/browser/media/media_caps_impl.h" 33 #include "chromecast/browser/media/media_caps_impl.h"
33 #include "chromecast/browser/service/cast_service_simple.h" 34 #include "chromecast/browser/service/cast_service_simple.h"
34 #include "chromecast/browser/url_request_context_factory.h" 35 #include "chromecast/browser/url_request_context_factory.h"
35 #include "chromecast/common/global_descriptors.h" 36 #include "chromecast/common/global_descriptors.h"
36 #include "chromecast/media/audio/cast_audio_manager.h" 37 #include "chromecast/media/audio/cast_audio_manager.h"
37 #include "chromecast/media/cma/backend/media_pipeline_backend_manager.h" 38 #include "chromecast/media/cma/backend/media_pipeline_backend_manager.h"
38 #include "chromecast/public/media/media_pipeline_backend.h" 39 #include "chromecast/public/media/media_pipeline_backend.h"
39 #include "components/crash/content/app/breakpad_linux.h" 40 #include "components/crash/content/app/breakpad_linux.h"
40 #include "components/crash/content/browser/crash_handler_host_linux.h" 41 #include "components/crash/content/browser/crash_handler_host_linux.h"
41 #include "components/network_hints/browser/network_hints_message_filter.h" 42 #include "components/network_hints/browser/network_hints_message_filter.h"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 493
493 #if defined(OS_ANDROID) && defined(VIDEO_HOLE) 494 #if defined(OS_ANDROID) && defined(VIDEO_HOLE)
494 content::ExternalVideoSurfaceContainer* 495 content::ExternalVideoSurfaceContainer*
495 CastContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 496 CastContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
496 content::WebContents* web_contents) { 497 content::WebContents* web_contents) {
497 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( 498 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create(
498 web_contents); 499 web_contents);
499 } 500 }
500 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE) 501 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE)
501 502
503 content::DevToolsManagerDelegate*
504 CastContentBrowserClient::GetDevToolsManagerDelegate() {
505 return new CastDevToolsDelegate();
506 }
507
502 #if !defined(OS_ANDROID) 508 #if !defined(OS_ANDROID)
503 int CastContentBrowserClient::GetCrashSignalFD( 509 int CastContentBrowserClient::GetCrashSignalFD(
504 const base::CommandLine& command_line) { 510 const base::CommandLine& command_line) {
505 std::string process_type = 511 std::string process_type =
506 command_line.GetSwitchValueASCII(switches::kProcessType); 512 command_line.GetSwitchValueASCII(switches::kProcessType);
507 513
508 if (process_type == switches::kRendererProcess || 514 if (process_type == switches::kRendererProcess ||
509 process_type == switches::kGpuProcess || 515 process_type == switches::kGpuProcess ||
510 process_type == switches::kUtilityProcess) { 516 process_type == switches::kUtilityProcess) {
511 breakpad::CrashHandlerHostLinux* crash_handler = 517 breakpad::CrashHandlerHostLinux* crash_handler =
(...skipping 22 matching lines...) Expand all
534 process_type, dumps_path, false /* upload */); 540 process_type, dumps_path, false /* upload */);
535 // StartUploaderThread() even though upload is diferred. 541 // StartUploaderThread() even though upload is diferred.
536 // Breakpad-related memory is freed in the uploader thread. 542 // Breakpad-related memory is freed in the uploader thread.
537 crash_handler->StartUploaderThread(); 543 crash_handler->StartUploaderThread();
538 return crash_handler; 544 return crash_handler;
539 } 545 }
540 #endif // !defined(OS_ANDROID) 546 #endif // !defined(OS_ANDROID)
541 547
542 } // namespace shell 548 } // namespace shell
543 } // namespace chromecast 549 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_content_browser_client.h ('k') | chromecast/browser/devtools/cast_dev_tools_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698