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/service/cast_service_simple.h" | 5 #include "chromecast/service/cast_service_simple.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 aura::Window* root_; | 65 aura::Window* root_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(FillLayout); | 67 DISALLOW_COPY_AND_ASSIGN(FillLayout); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace | 70 } // namespace |
71 | 71 |
72 // static | 72 // static |
73 CastService* CastService::Create( | 73 CastService* CastService::Create( |
74 content::BrowserContext* browser_context, | 74 content::BrowserContext* browser_context, |
75 net::URLRequestContextGetter* request_context_getter) { | 75 net::URLRequestContextGetter* request_context_getter, |
| 76 shell::CastNetworkDelegate* network_delegate) { |
76 return new CastServiceSimple(browser_context); | 77 return new CastServiceSimple(browser_context); |
77 } | 78 } |
78 | 79 |
79 CastServiceSimple::CastServiceSimple(content::BrowserContext* browser_context) | 80 CastServiceSimple::CastServiceSimple(content::BrowserContext* browser_context) |
80 : CastService(browser_context) { | 81 : CastService(browser_context) { |
81 } | 82 } |
82 | 83 |
83 CastServiceSimple::~CastServiceSimple() { | 84 CastServiceSimple::~CastServiceSimple() { |
84 } | 85 } |
85 | 86 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 125 |
125 void CastServiceSimple::StopInternal() { | 126 void CastServiceSimple::StopInternal() { |
126 web_contents_->GetRenderViewHost()->ClosePage(); | 127 web_contents_->GetRenderViewHost()->ClosePage(); |
127 window_tree_host_.reset(); | 128 window_tree_host_.reset(); |
128 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, NULL); | 129 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, NULL); |
129 aura::Env::DeleteInstance(); | 130 aura::Env::DeleteInstance(); |
130 web_contents_.reset(); | 131 web_contents_.reset(); |
131 } | 132 } |
132 | 133 |
133 } // namespace chromecast | 134 } // namespace chromecast |
OLD | NEW |