OLD | NEW |
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_browser_process.h" | 5 #include "chromecast/browser/cast_browser_process.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 DCHECK(!remote_debugging_server_); | 101 DCHECK(!remote_debugging_server_); |
102 remote_debugging_server_.swap(remote_debugging_server); | 102 remote_debugging_server_.swap(remote_debugging_server); |
103 } | 103 } |
104 | 104 |
105 void CastBrowserProcess::SetResourceDispatcherHostDelegate( | 105 void CastBrowserProcess::SetResourceDispatcherHostDelegate( |
106 std::unique_ptr<CastResourceDispatcherHostDelegate> delegate) { | 106 std::unique_ptr<CastResourceDispatcherHostDelegate> delegate) { |
107 DCHECK(!resource_dispatcher_host_delegate_); | 107 DCHECK(!resource_dispatcher_host_delegate_); |
108 resource_dispatcher_host_delegate_.swap(delegate); | 108 resource_dispatcher_host_delegate_.swap(delegate); |
109 } | 109 } |
110 | 110 |
111 #if defined(OS_ANDROID) | |
112 void CastBrowserProcess::SetCrashDumpManager( | |
113 std::unique_ptr<breakpad::CrashDumpManager> crash_dump_manager) { | |
114 DCHECK(!crash_dump_manager_); | |
115 crash_dump_manager_.swap(crash_dump_manager); | |
116 } | |
117 #endif // defined(OS_ANDROID) | |
118 | |
119 void CastBrowserProcess::SetConnectivityChecker( | 111 void CastBrowserProcess::SetConnectivityChecker( |
120 scoped_refptr<ConnectivityChecker> connectivity_checker) { | 112 scoped_refptr<ConnectivityChecker> connectivity_checker) { |
121 DCHECK(!connectivity_checker_); | 113 DCHECK(!connectivity_checker_); |
122 connectivity_checker_.swap(connectivity_checker); | 114 connectivity_checker_.swap(connectivity_checker); |
123 } | 115 } |
124 | 116 |
125 void CastBrowserProcess::SetNetLog(net::NetLog* net_log) { | 117 void CastBrowserProcess::SetNetLog(net::NetLog* net_log) { |
126 DCHECK(!net_log_); | 118 DCHECK(!net_log_); |
127 net_log_ = net_log; | 119 net_log_ = net_log; |
128 } | 120 } |
129 | 121 |
130 } // namespace shell | 122 } // namespace shell |
131 } // namespace chromecast | 123 } // namespace chromecast |
OLD | NEW |