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_context.h" | 5 #include "chromecast/browser/cast_browser_context.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "chromecast/base/cast_paths.h" |
11 #include "chromecast/browser/cast_download_manager_delegate.h" | 12 #include "chromecast/browser/cast_download_manager_delegate.h" |
12 #include "chromecast/browser/cast_permission_manager.h" | 13 #include "chromecast/browser/cast_permission_manager.h" |
13 #include "chromecast/browser/url_request_context_factory.h" | 14 #include "chromecast/browser/url_request_context_factory.h" |
14 #include "chromecast/common/cast_paths.h" | |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/resource_context.h" | 16 #include "content/public/browser/resource_context.h" |
17 #include "content/public/browser/storage_partition.h" | 17 #include "content/public/browser/storage_partition.h" |
18 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
19 #include "net/url_request/url_request_context.h" | 19 #include "net/url_request/url_request_context.h" |
20 #include "net/url_request/url_request_context_getter.h" | 20 #include "net/url_request/url_request_context_getter.h" |
21 | 21 |
22 namespace chromecast { | 22 namespace chromecast { |
23 namespace shell { | 23 namespace shell { |
24 | 24 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } | 151 } |
152 | 152 |
153 content::PermissionManager* CastBrowserContext::GetPermissionManager() { | 153 content::PermissionManager* CastBrowserContext::GetPermissionManager() { |
154 if (!permission_manager_.get()) | 154 if (!permission_manager_.get()) |
155 permission_manager_.reset(new CastPermissionManager()); | 155 permission_manager_.reset(new CastPermissionManager()); |
156 return permission_manager_.get(); | 156 return permission_manager_.get(); |
157 } | 157 } |
158 | 158 |
159 } // namespace shell | 159 } // namespace shell |
160 } // namespace chromecast | 160 } // namespace chromecast |
OLD | NEW |