OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/chrome_content_client.h" | 5 #include "chrome/common/chrome_content_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug/crash_logging.h" | 8 #include "base/debug/crash_logging.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "net/http/http_util.h" | 37 #include "net/http/http_util.h" |
38 #include "ui/base/l10n/l10n_util.h" | 38 #include "ui/base/l10n/l10n_util.h" |
39 #include "ui/base/layout.h" | 39 #include "ui/base/layout.h" |
40 #include "ui/base/resource/resource_bundle.h" | 40 #include "ui/base/resource/resource_bundle.h" |
41 | 41 |
42 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. | 42 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. |
43 | 43 |
44 #if defined(OS_WIN) | 44 #if defined(OS_WIN) |
45 #include "base/win/registry.h" | 45 #include "base/win/registry.h" |
46 #include "base/win/windows_version.h" | 46 #include "base/win/windows_version.h" |
47 #elif defined(OS_MACOSX) | |
48 #include "components/nacl/common/nacl_sandbox_type_mac.h" | |
49 #endif | 47 #endif |
50 | 48 |
51 #if !defined(DISABLE_NACL) | 49 #if !defined(DISABLE_NACL) |
52 #include "components/nacl/common/nacl_constants.h" | 50 #include "components/nacl/common/nacl_constants.h" |
53 #include "components/nacl/common/nacl_process_type.h" | 51 #include "components/nacl/common/nacl_process_type.h" |
| 52 #include "components/nacl/common/nacl_sandbox_type.h" |
54 #endif | 53 #endif |
55 | 54 |
56 #if defined(ENABLE_PLUGINS) | 55 #if defined(ENABLE_PLUGINS) |
57 #include "chrome/common/pepper_flash.h" | 56 #include "chrome/common/pepper_flash.h" |
58 #include "content/public/common/pepper_plugin_info.h" | 57 #include "content/public/common/pepper_plugin_info.h" |
59 #include "flapper_version.h" // In SHARED_INTERMEDIATE_DIR. | 58 #include "flapper_version.h" // In SHARED_INTERMEDIATE_DIR. |
60 #include "ppapi/shared_impl/ppapi_permissions.h" | 59 #include "ppapi/shared_impl/ppapi_permissions.h" |
61 #endif | 60 #endif |
62 | 61 |
63 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) && \ | 62 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) && \ |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 #endif | 553 #endif |
555 | 554 |
556 void ChromeContentClient::AddSecureSchemesAndOrigins( | 555 void ChromeContentClient::AddSecureSchemesAndOrigins( |
557 std::set<std::string>* schemes, | 556 std::set<std::string>* schemes, |
558 std::set<GURL>* origins) { | 557 std::set<GURL>* origins) { |
559 schemes->insert(content::kChromeUIScheme); | 558 schemes->insert(content::kChromeUIScheme); |
560 schemes->insert(extensions::kExtensionScheme); | 559 schemes->insert(extensions::kExtensionScheme); |
561 schemes->insert(extensions::kExtensionResourceScheme); | 560 schemes->insert(extensions::kExtensionResourceScheme); |
562 GetSecureOriginWhitelist(origins); | 561 GetSecureOriginWhitelist(origins); |
563 } | 562 } |
OLD | NEW |