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

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

Issue 962793005: Adds MediaClientAndroid to support embedder/MediaDrmBridge interaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename createSession to createSessionFromNative to avoid bug in FindBugs Created 5 years, 7 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 <string> 7 #include <string>
8 8
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 26 matching lines...) Expand all
37 #include "content/public/common/content_switches.h" 37 #include "content/public/common/content_switches.h"
38 #include "content/public/common/url_constants.h" 38 #include "content/public/common/url_constants.h"
39 #include "content/public/common/web_preferences.h" 39 #include "content/public/common/web_preferences.h"
40 #include "gin/v8_initializer.h" 40 #include "gin/v8_initializer.h"
41 #include "net/ssl/ssl_cert_request_info.h" 41 #include "net/ssl/ssl_cert_request_info.h"
42 #include "net/url_request/url_request_context_getter.h" 42 #include "net/url_request/url_request_context_getter.h"
43 #include "ui/gl/gl_switches.h" 43 #include "ui/gl/gl_switches.h"
44 44
45 #if defined(OS_ANDROID) 45 #if defined(OS_ANDROID)
46 #include "chromecast/browser/android/external_video_surface_container_impl.h" 46 #include "chromecast/browser/android/external_video_surface_container_impl.h"
47 #endif // defined(OS_ANDROID)
48
49 #if defined(OS_ANDROID)
50 #include "components/crash/browser/crash_dump_manager_android.h" 47 #include "components/crash/browser/crash_dump_manager_android.h"
51 #endif // defined(OS_ANDROID) 48 #endif // defined(OS_ANDROID)
52 49
53 namespace chromecast { 50 namespace chromecast {
54 namespace shell { 51 namespace shell {
55 52
56 CastContentBrowserClient::CastContentBrowserClient() 53 CastContentBrowserClient::CastContentBrowserClient()
57 : v8_natives_fd_(-1), 54 : v8_natives_fd_(-1),
58 v8_snapshot_fd_(-1), 55 v8_snapshot_fd_(-1),
59 url_request_context_factory_(new URLRequestContextFactory()) { 56 url_request_context_factory_(new URLRequestContextFactory()) {
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 process_type, dumps_path, false /* upload */); 411 process_type, dumps_path, false /* upload */);
415 // StartUploaderThread() even though upload is diferred. 412 // StartUploaderThread() even though upload is diferred.
416 // Breakpad-related memory is freed in the uploader thread. 413 // Breakpad-related memory is freed in the uploader thread.
417 crash_handler->StartUploaderThread(); 414 crash_handler->StartUploaderThread();
418 return crash_handler; 415 return crash_handler;
419 } 416 }
420 #endif // !defined(OS_ANDROID) 417 #endif // !defined(OS_ANDROID)
421 418
422 } // namespace shell 419 } // namespace shell
423 } // namespace chromecast 420 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/browser/media/cast_media_client_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698