| 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_content_browser_client.h
" | 5 #include "content/shell/browser/layout_test/layout_test_content_browser_client.h
" |
| 6 | 6 |
| 7 #include "content/public/browser/browser_context.h" | 7 #include "content/public/browser/browser_context.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "content/public/browser/navigator_connect_context.h" | 9 #include "content/public/browser/navigator_connect_context.h" |
| 10 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
| 11 #include "content/public/browser/storage_partition.h" | 11 #include "content/public/browser/storage_partition.h" |
| 12 #include "content/shell/browser/layout_test/layout_test_browser_context.h" | 12 #include "content/shell/browser/layout_test/layout_test_browser_context.h" |
| 13 #include "content/shell/browser/layout_test/layout_test_message_filter.h" | 13 #include "content/shell/browser/layout_test/layout_test_message_filter.h" |
| 14 #include "content/shell/browser/layout_test/layout_test_navigator_connect_servic
e_factory.h" | 14 #include "content/shell/browser/layout_test/layout_test_navigator_connect_servic
e_factory.h" |
| 15 #include "content/shell/browser/layout_test/layout_test_notification_manager.h" | 15 #include "content/shell/browser/layout_test/layout_test_notification_manager.h" |
| 16 #include "content/shell/browser/shell_browser_context.h" | 16 #include "content/shell/browser/shell_browser_context.h" |
| 17 #include "content/shell/common/shell_messages.h" | 17 #include "content/shell/common/shell_messages.h" |
| 18 #include "content/shell/common/webkit_test_helpers.h" | 18 #include "content/shell/renderer/layout_test/blink_test_helpers.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 LayoutTestContentBrowserClient* g_layout_test_browser_client; | 23 LayoutTestContentBrowserClient* g_layout_test_browser_client; |
| 24 | 24 |
| 25 } // namespace | 25 } // namespace |
| 26 | 26 |
| 27 LayoutTestContentBrowserClient::LayoutTestContentBrowserClient() { | 27 LayoutTestContentBrowserClient::LayoutTestContentBrowserClient() { |
| 28 DCHECK(!g_layout_test_browser_client); | 28 DCHECK(!g_layout_test_browser_client); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return layout_test_notification_manager_.get(); | 70 return layout_test_notification_manager_.get(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void LayoutTestContentBrowserClient::GetAdditionalNavigatorConnectServices( | 73 void LayoutTestContentBrowserClient::GetAdditionalNavigatorConnectServices( |
| 74 const scoped_refptr<NavigatorConnectContext>& context) { | 74 const scoped_refptr<NavigatorConnectContext>& context) { |
| 75 context->AddFactory( | 75 context->AddFactory( |
| 76 make_scoped_ptr(new LayoutTestNavigatorConnectServiceFactory)); | 76 make_scoped_ptr(new LayoutTestNavigatorConnectServiceFactory)); |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace content | 79 } // namespace content |
| OLD | NEW |