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 "content/shell/browser/layout_test/layout_test_browser_context.h" | 5 #include "content/shell/browser/layout_test/layout_test_browser_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "content/public/browser/push_messaging_service.h" | 12 #include "content/public/browser/push_messaging_service.h" |
13 #include "content/public/browser/resource_context.h" | 13 #include "content/public/browser/resource_context.h" |
14 #include "content/shell/browser/layout_test/layout_test_download_manager_delegat
e.h" | 14 #include "content/shell/browser/layout_test/layout_test_download_manager_delegat
e.h" |
| 15 #include "content/shell/browser/layout_test/layout_test_permission_manager.h" |
15 #include "content/shell/browser/layout_test/layout_test_push_messaging_service.h
" | 16 #include "content/shell/browser/layout_test/layout_test_push_messaging_service.h
" |
16 #include "content/shell/browser/layout_test/layout_test_url_request_context_gett
er.h" | 17 #include "content/shell/browser/layout_test/layout_test_url_request_context_gett
er.h" |
17 #include "content/shell/browser/shell_url_request_context_getter.h" | 18 #include "content/shell/browser/shell_url_request_context_getter.h" |
18 | 19 |
19 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
20 #include "base/base_paths_win.h" | 21 #include "base/base_paths_win.h" |
21 #elif defined(OS_LINUX) | 22 #elif defined(OS_LINUX) |
22 #include "base/nix/xdg_util.h" | 23 #include "base/nix/xdg_util.h" |
23 #elif defined(OS_MACOSX) | 24 #elif defined(OS_MACOSX) |
24 #include "base/base_paths_mac.h" | 25 #include "base/base_paths_mac.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 push_messaging_service_.reset(new LayoutTestPushMessagingService()); | 68 push_messaging_service_.reset(new LayoutTestPushMessagingService()); |
68 return push_messaging_service_.get(); | 69 return push_messaging_service_.get(); |
69 } | 70 } |
70 | 71 |
71 LayoutTestPushMessagingService* | 72 LayoutTestPushMessagingService* |
72 LayoutTestBrowserContext::GetLayoutTestPushMessagingService() { | 73 LayoutTestBrowserContext::GetLayoutTestPushMessagingService() { |
73 return static_cast<LayoutTestPushMessagingService*>( | 74 return static_cast<LayoutTestPushMessagingService*>( |
74 GetPushMessagingService()); | 75 GetPushMessagingService()); |
75 } | 76 } |
76 | 77 |
| 78 PermissionManager* LayoutTestBrowserContext::GetPermissionManager() { |
| 79 if (!permission_manager_.get()) |
| 80 permission_manager_.reset(new LayoutTestPermissionManager()); |
| 81 return permission_manager_.get(); |
| 82 } |
| 83 |
77 } // namespace content | 84 } // namespace content |
OLD | NEW |