Chromium Code Reviews| 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 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 std::vector<std::string> standard_schemes; | 104 std::vector<std::string> standard_schemes; |
| 105 std::vector<std::string> referrer_schemes; | 105 std::vector<std::string> referrer_schemes; |
| 106 std::vector<std::string> savable_schemes; | 106 std::vector<std::string> savable_schemes; |
| 107 // Additional schemes that should be allowed to register service workers. | 107 // Additional schemes that should be allowed to register service workers. |
| 108 // Only secure and trustworthy schemes should be added. | 108 // Only secure and trustworthy schemes should be added. |
| 109 std::vector<std::string> service_worker_schemes; | 109 std::vector<std::string> service_worker_schemes; |
| 110 // For the following three, see the documentation in WebSecurityPolicy. | 110 // For the following three, see the documentation in WebSecurityPolicy. |
| 111 std::vector<std::string> local_schemes; | 111 std::vector<std::string> local_schemes; |
| 112 std::vector<std::string> no_access_schemes; | 112 std::vector<std::string> no_access_schemes; |
| 113 std::vector<std::string> cors_enabled_schemes; | 113 std::vector<std::string> cors_enabled_schemes; |
| 114 std::vector<std::string> bypassing_csp_schemes; | |
|
nasko
2017/02/09 00:13:15
nit: I'd reorder the name a bit - csp_bypassing_sc
arthursonzogni
2017/02/09 09:15:53
Done.
| |
| 114 // See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy. | 115 // See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy. |
| 115 std::vector<std::string> secure_schemes; | 116 std::vector<std::string> secure_schemes; |
| 116 std::vector<GURL> secure_origins; | 117 std::vector<GURL> secure_origins; |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 virtual void AddAdditionalSchemes(Schemes* schemes) {} | 120 virtual void AddAdditionalSchemes(Schemes* schemes) {} |
| 120 | 121 |
| 121 // Returns whether the given message should be sent in a swapped out renderer. | 122 // Returns whether the given message should be sent in a swapped out renderer. |
| 122 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); | 123 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); |
| 123 | 124 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 196 ContentGpuClient* gpu_; | 197 ContentGpuClient* gpu_; |
| 197 // The embedder API for participating in renderer logic. | 198 // The embedder API for participating in renderer logic. |
| 198 ContentRendererClient* renderer_; | 199 ContentRendererClient* renderer_; |
| 199 // The embedder API for participating in utility logic. | 200 // The embedder API for participating in utility logic. |
| 200 ContentUtilityClient* utility_; | 201 ContentUtilityClient* utility_; |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 } // namespace content | 204 } // namespace content |
| 204 | 205 |
| 205 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 206 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |