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" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "content/public/browser/render_process_host.h" | 11 #include "content/public/browser/render_process_host.h" |
12 #include "content/public/browser/resource_dispatcher_host.h" | 12 #include "content/public/browser/resource_dispatcher_host.h" |
13 #include "content/public/browser/storage_partition.h" | 13 #include "content/public/browser/storage_partition.h" |
14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
15 #include "content/public/common/url_constants.h" | 15 #include "content/public/common/url_constants.h" |
| 16 #include "content/public/common/webpreferences.h" |
16 #include "content/shell/browser/shell.h" | 17 #include "content/shell/browser/shell.h" |
17 #include "content/shell/browser/shell_browser_context.h" | 18 #include "content/shell/browser/shell_browser_context.h" |
18 #include "content/shell/browser/shell_browser_main_parts.h" | 19 #include "content/shell/browser/shell_browser_main_parts.h" |
19 #include "content/shell/browser/shell_devtools_delegate.h" | 20 #include "content/shell/browser/shell_devtools_delegate.h" |
20 #include "content/shell/browser/shell_message_filter.h" | 21 #include "content/shell/browser/shell_message_filter.h" |
21 #include "content/shell/browser/shell_net_log.h" | 22 #include "content/shell/browser/shell_net_log.h" |
22 #include "content/shell/browser/shell_quota_permission_context.h" | 23 #include "content/shell/browser/shell_quota_permission_context.h" |
23 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" | 24 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" |
24 #include "content/shell/browser/shell_web_contents_view_delegate_creator.h" | 25 #include "content/shell/browser/shell_web_contents_view_delegate_creator.h" |
25 #include "content/shell/browser/webkit_test_controller.h" | 26 #include "content/shell/browser/webkit_test_controller.h" |
26 #include "content/shell/common/shell_messages.h" | 27 #include "content/shell/common/shell_messages.h" |
27 #include "content/shell/common/shell_switches.h" | 28 #include "content/shell/common/shell_switches.h" |
28 #include "content/shell/common/webkit_test_helpers.h" | 29 #include "content/shell/common/webkit_test_helpers.h" |
29 #include "content/shell/geolocation/shell_access_token_store.h" | 30 #include "content/shell/geolocation/shell_access_token_store.h" |
30 #include "net/url_request/url_request_context_getter.h" | 31 #include "net/url_request/url_request_context_getter.h" |
31 #include "url/gurl.h" | 32 #include "url/gurl.h" |
32 #include "webkit/common/webpreferences.h" | |
33 | 33 |
34 #if defined(OS_ANDROID) | 34 #if defined(OS_ANDROID) |
35 #include "base/android/path_utils.h" | 35 #include "base/android/path_utils.h" |
36 #include "base/path_service.h" | 36 #include "base/path_service.h" |
37 #include "components/breakpad/browser/crash_dump_manager_android.h" | 37 #include "components/breakpad/browser/crash_dump_manager_android.h" |
38 #include "content/shell/android/shell_descriptors.h" | 38 #include "content/shell/android/shell_descriptors.h" |
39 #endif | 39 #endif |
40 | 40 |
41 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 41 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
42 #include "base/debug/leak_annotations.h" | 42 #include "base/debug/leak_annotations.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 ShellBrowserContext* | 333 ShellBrowserContext* |
334 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( | 334 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( |
335 BrowserContext* content_browser_context) { | 335 BrowserContext* content_browser_context) { |
336 if (content_browser_context == browser_context()) | 336 if (content_browser_context == browser_context()) |
337 return browser_context(); | 337 return browser_context(); |
338 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); | 338 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); |
339 return off_the_record_browser_context(); | 339 return off_the_record_browser_context(); |
340 } | 340 } |
341 | 341 |
342 } // namespace content | 342 } // namespace content |
OLD | NEW |