Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1139)

Side by Side Diff: chrome/common/chrome_content_client.cc

Issue 1185333003: Implement GetSandboxType() on all platforms and implement for all process types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: do not call base class from chrome's contentbrowserclient Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698