OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shell_content_browser_client.h" | 5 #include "content/shell/browser/shell_content_browser_client.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | |
10 #include "base/files/file.h" | 9 #include "base/files/file.h" |
| 10 #include "base/files/file_util.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "content/public/browser/render_process_host.h" | 13 #include "content/public/browser/render_process_host.h" |
14 #include "content/public/browser/resource_dispatcher_host.h" | 14 #include "content/public/browser/resource_dispatcher_host.h" |
15 #include "content/public/browser/storage_partition.h" | 15 #include "content/public/browser/storage_partition.h" |
16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
17 #include "content/public/common/url_constants.h" | 17 #include "content/public/common/url_constants.h" |
18 #include "content/public/common/web_preferences.h" | 18 #include "content/public/common/web_preferences.h" |
19 #include "content/shell/browser/ipc_echo_message_filter.h" | 19 #include "content/shell/browser/ipc_echo_message_filter.h" |
20 #include "content/shell/browser/shell.h" | 20 #include "content/shell/browser/shell.h" |
21 #include "content/shell/browser/shell_browser_context.h" | 21 #include "content/shell/browser/shell_browser_context.h" |
22 #include "content/shell/browser/shell_browser_main_parts.h" | 22 #include "content/shell/browser/shell_browser_main_parts.h" |
23 #include "content/shell/browser/shell_devtools_delegate.h" | 23 #include "content/shell/browser/shell_devtools_delegate.h" |
24 #include "content/shell/browser/shell_message_filter.h" | 24 #include "content/shell/browser/shell_message_filter.h" |
25 #include "content/shell/browser/shell_net_log.h" | 25 #include "content/shell/browser/shell_net_log.h" |
26 #include "content/shell/browser/shell_notification_manager.h" | 26 #include "content/shell/browser/shell_notification_manager.h" |
27 #include "content/shell/browser/shell_quota_permission_context.h" | 27 #include "content/shell/browser/shell_quota_permission_context.h" |
28 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" | 28 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" |
29 #include "content/shell/browser/shell_web_contents_view_delegate_creator.h" | 29 #include "content/shell/browser/shell_web_contents_view_delegate_creator.h" |
30 #include "content/shell/browser/webkit_test_controller.h" | 30 #include "content/shell/browser/webkit_test_controller.h" |
31 #include "content/shell/common/shell_messages.h" | 31 #include "content/shell/common/shell_messages.h" |
32 #include "content/shell/common/shell_switches.h" | 32 #include "content/shell/common/shell_switches.h" |
33 #include "content/shell/common/webkit_test_helpers.h" | 33 #include "content/shell/common/webkit_test_helpers.h" |
34 #include "content/shell/geolocation/shell_access_token_store.h" | 34 #include "content/shell/geolocation/shell_access_token_store.h" |
35 #include "net/url_request/url_request_context_getter.h" | 35 #include "net/url_request/url_request_context_getter.h" |
36 #include "url/gurl.h" | 36 #include "url/gurl.h" |
37 | 37 |
38 #if defined(OS_ANDROID) | 38 #if defined(OS_ANDROID) |
39 #include "base/android/path_utils.h" | 39 #include "base/android/path_utils.h" |
40 #include "base/path_service.h" | |
41 #include "components/crash/browser/crash_dump_manager_android.h" | 40 #include "components/crash/browser/crash_dump_manager_android.h" |
42 #include "content/shell/android/shell_descriptors.h" | 41 #include "content/shell/android/shell_descriptors.h" |
43 #endif | 42 #endif |
44 | 43 |
45 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 44 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
46 #include "base/debug/leak_annotations.h" | 45 #include "base/debug/leak_annotations.h" |
47 #include "components/crash/app/breakpad_linux.h" | 46 #include "components/crash/app/breakpad_linux.h" |
48 #include "components/crash/browser/crash_handler_host_linux.h" | 47 #include "components/crash/browser/crash_handler_host_linux.h" |
49 #include "content/public/common/content_descriptors.h" | 48 #include "content/public/common/content_descriptors.h" |
50 #endif | 49 #endif |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 ShellBrowserContext* | 423 ShellBrowserContext* |
425 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( | 424 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( |
426 BrowserContext* content_browser_context) { | 425 BrowserContext* content_browser_context) { |
427 if (content_browser_context == browser_context()) | 426 if (content_browser_context == browser_context()) |
428 return browser_context(); | 427 return browser_context(); |
429 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); | 428 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); |
430 return off_the_record_browser_context(); | 429 return off_the_record_browser_context(); |
431 } | 430 } |
432 | 431 |
433 } // namespace content | 432 } // namespace content |
OLD | NEW |