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

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

Issue 2766263009: Convert content ConnectionFilter to OnBindInterface (Closed)
Patch Set: . Created 3 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 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "content/public/browser/resource_dispatcher_host.h" 50 #include "content/public/browser/resource_dispatcher_host.h"
51 #include "content/public/browser/storage_partition.h" 51 #include "content/public/browser/storage_partition.h"
52 #include "content/public/browser/web_contents.h" 52 #include "content/public/browser/web_contents.h"
53 #include "content/public/common/content_descriptors.h" 53 #include "content/public/common/content_descriptors.h"
54 #include "content/public/common/content_switches.h" 54 #include "content/public/common/content_switches.h"
55 #include "content/public/common/service_names.mojom.h" 55 #include "content/public/common/service_names.mojom.h"
56 #include "content/public/common/url_constants.h" 56 #include "content/public/common/url_constants.h"
57 #include "content/public/common/web_preferences.h" 57 #include "content/public/common/web_preferences.h"
58 #include "net/ssl/ssl_cert_request_info.h" 58 #include "net/ssl/ssl_cert_request_info.h"
59 #include "net/url_request/url_request_context_getter.h" 59 #include "net/url_request/url_request_context_getter.h"
60 #include "services/service_manager/public/cpp/interface_registry.h" 60 #include "services/service_manager/public/cpp/binder_registry.h"
61 #include "ui/base/resource/resource_bundle.h" 61 #include "ui/base/resource/resource_bundle.h"
62 #include "ui/display/display.h" 62 #include "ui/display/display.h"
63 #include "ui/display/screen.h" 63 #include "ui/display/screen.h"
64 #include "ui/gl/gl_switches.h" 64 #include "ui/gl/gl_switches.h"
65 65
66 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 66 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
67 #include "chromecast/media/service/cast_mojo_media_client.h" 67 #include "chromecast/media/service/cast_mojo_media_client.h"
68 #include "media/mojo/services/media_service.h" // nogncheck 68 #include "media/mojo/services/media_service.h" // nogncheck
69 #endif // ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS 69 #endif // ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS
70 70
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 const blink::mojom::WindowFeatures& features, 463 const blink::mojom::WindowFeatures& features,
464 bool user_gesture, 464 bool user_gesture,
465 bool opener_suppressed, 465 bool opener_suppressed,
466 content::ResourceContext* context, 466 content::ResourceContext* context,
467 bool* no_javascript_access) { 467 bool* no_javascript_access) {
468 *no_javascript_access = true; 468 *no_javascript_access = true;
469 return false; 469 return false;
470 } 470 }
471 471
472 void CastContentBrowserClient::ExposeInterfacesToRenderer( 472 void CastContentBrowserClient::ExposeInterfacesToRenderer(
473 service_manager::InterfaceRegistry* registry, 473 service_manager::BinderRegistry* registry,
474 content::RenderProcessHost* render_process_host) { 474 content::RenderProcessHost* render_process_host) {
475 registry->AddInterface( 475 registry->AddInterface(
476 base::Bind(&media::MediaCapsImpl::AddBinding, 476 base::Bind(&media::MediaCapsImpl::AddBinding,
477 base::Unretained(cast_browser_main_parts_->media_caps())), 477 base::Unretained(cast_browser_main_parts_->media_caps())),
478 base::ThreadTaskRunnerHandle::Get()); 478 base::ThreadTaskRunnerHandle::Get());
479 } 479 }
480 480
481 void CastContentBrowserClient::RegisterInProcessServices( 481 void CastContentBrowserClient::RegisterInProcessServices(
482 StaticServiceMap* services) { 482 StaticServiceMap* services) {
483 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 483 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 process_type, dumps_path, false /* upload */); 568 process_type, dumps_path, false /* upload */);
569 // StartUploaderThread() even though upload is diferred. 569 // StartUploaderThread() even though upload is diferred.
570 // Breakpad-related memory is freed in the uploader thread. 570 // Breakpad-related memory is freed in the uploader thread.
571 crash_handler->StartUploaderThread(); 571 crash_handler->StartUploaderThread();
572 return crash_handler; 572 return crash_handler;
573 } 573 }
574 #endif // !defined(OS_ANDROID) 574 #endif // !defined(OS_ANDROID)
575 575
576 } // namespace shell 576 } // namespace shell
577 } // namespace chromecast 577 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_content_browser_client.h ('k') | components/visitedlink/browser/visitedlink_event_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698