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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "chromecast/base/metrics/cast_metrics_helper.h" | 9 #include "chromecast/base/metrics/cast_metrics_helper.h" |
10 #include "chromecast/browser/cast_browser_context.h" | 10 #include "chromecast/browser/cast_browser_context.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 pref_service_->CommitPendingWrite(); | 47 pref_service_->CommitPendingWrite(); |
48 g_instance = NULL; | 48 g_instance = NULL; |
49 } | 49 } |
50 | 50 |
51 void CastBrowserProcess::SetBrowserContext( | 51 void CastBrowserProcess::SetBrowserContext( |
52 scoped_ptr<CastBrowserContext> browser_context) { | 52 scoped_ptr<CastBrowserContext> browser_context) { |
53 DCHECK(!browser_context_); | 53 DCHECK(!browser_context_); |
54 browser_context_.swap(browser_context); | 54 browser_context_.swap(browser_context); |
55 } | 55 } |
56 | 56 |
| 57 void CastBrowserProcess::SetCastContentBrowserClient( |
| 58 CastContentBrowserClient* cast_content_browser_client) { |
| 59 DCHECK(!cast_content_browser_client_); |
| 60 cast_content_browser_client_ = cast_content_browser_client; |
| 61 } |
| 62 |
57 void CastBrowserProcess::SetCastService(scoped_ptr<CastService> cast_service) { | 63 void CastBrowserProcess::SetCastService(scoped_ptr<CastService> cast_service) { |
58 DCHECK(!cast_service_); | 64 DCHECK(!cast_service_); |
59 cast_service_.swap(cast_service); | 65 cast_service_.swap(cast_service); |
60 } | 66 } |
61 | 67 |
62 #if defined(USE_AURA) | 68 #if defined(USE_AURA) |
63 void CastBrowserProcess::SetCastScreen(scoped_ptr<CastScreen> cast_screen) { | 69 void CastBrowserProcess::SetCastScreen(scoped_ptr<CastScreen> cast_screen) { |
64 DCHECK(!cast_screen_); | 70 DCHECK(!cast_screen_); |
65 cast_screen_ = cast_screen.Pass(); | 71 cast_screen_ = cast_screen.Pass(); |
66 } | 72 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 connectivity_checker_.swap(connectivity_checker); | 115 connectivity_checker_.swap(connectivity_checker); |
110 } | 116 } |
111 | 117 |
112 void CastBrowserProcess::SetNetLog(net::NetLog* net_log) { | 118 void CastBrowserProcess::SetNetLog(net::NetLog* net_log) { |
113 DCHECK(!net_log_); | 119 DCHECK(!net_log_); |
114 net_log_ = net_log; | 120 net_log_ = net_log; |
115 } | 121 } |
116 | 122 |
117 } // namespace shell | 123 } // namespace shell |
118 } // namespace chromecast | 124 } // namespace chromecast |
OLD | NEW |