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 <stddef.h> |
| 8 |
7 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
9 #include "base/files/file.h" | 11 #include "base/files/file.h" |
10 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/macros.h" |
11 #include "base/path_service.h" | 14 #include "base/path_service.h" |
12 #include "base/strings/pattern.h" | 15 #include "base/strings/pattern.h" |
13 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "build/build_config.h" |
14 #include "content/public/browser/client_certificate_delegate.h" | 18 #include "content/public/browser/client_certificate_delegate.h" |
15 #include "content/public/browser/page_navigator.h" | 19 #include "content/public/browser/page_navigator.h" |
16 #include "content/public/browser/render_process_host.h" | 20 #include "content/public/browser/render_process_host.h" |
17 #include "content/public/browser/resource_dispatcher_host.h" | 21 #include "content/public/browser/resource_dispatcher_host.h" |
18 #include "content/public/browser/storage_partition.h" | 22 #include "content/public/browser/storage_partition.h" |
19 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
20 #include "content/public/common/url_constants.h" | 24 #include "content/public/common/url_constants.h" |
21 #include "content/public/common/web_preferences.h" | 25 #include "content/public/common/web_preferences.h" |
22 #include "content/public/test/test_mojo_app.h" | 26 #include "content/public/test/test_mojo_app.h" |
23 #include "content/shell/browser/blink_test_controller.h" | 27 #include "content/shell/browser/blink_test_controller.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 ShellBrowserContext* | 432 ShellBrowserContext* |
429 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( | 433 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( |
430 BrowserContext* content_browser_context) { | 434 BrowserContext* content_browser_context) { |
431 if (content_browser_context == browser_context()) | 435 if (content_browser_context == browser_context()) |
432 return browser_context(); | 436 return browser_context(); |
433 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); | 437 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); |
434 return off_the_record_browser_context(); | 438 return off_the_record_browser_context(); |
435 } | 439 } |
436 | 440 |
437 } // namespace content | 441 } // namespace content |
OLD | NEW |