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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // for |sandbox_type| are defined by the embedder and should start with | 127 // for |sandbox_type| are defined by the embedder and should start with |
128 // SandboxType::SANDBOX_TYPE_AFTER_LAST_TYPE. Returns false if no sandbox | 128 // SandboxType::SANDBOX_TYPE_AFTER_LAST_TYPE. Returns false if no sandbox |
129 // profile for the given |sandbox_type| exists. Otherwise, | 129 // profile for the given |sandbox_type| exists. Otherwise, |
130 // |sandbox_profile_resource_id| is set to the resource ID corresponding to | 130 // |sandbox_profile_resource_id| is set to the resource ID corresponding to |
131 // the sandbox profile to use and true is returned. | 131 // the sandbox profile to use and true is returned. |
132 virtual bool GetSandboxProfileForSandboxType( | 132 virtual bool GetSandboxProfileForSandboxType( |
133 int sandbox_type, | 133 int sandbox_type, |
134 int* sandbox_profile_resource_id) const; | 134 int* sandbox_profile_resource_id) const; |
135 #endif | 135 #endif |
136 | 136 |
| 137 // Returns true if the origin is trustworthy: that is, if its contents can be |
| 138 // said to have been transferred to the browser in a way that a network |
| 139 // attacker cannot tamper with or observe. |
| 140 // See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy. |
| 141 virtual bool IsOriginTrustWorthy(const GURL& url) const; |
| 142 |
137 private: | 143 private: |
138 friend class ContentClientInitializer; // To set these pointers. | 144 friend class ContentClientInitializer; // To set these pointers. |
139 friend class InternalTestInitializer; | 145 friend class InternalTestInitializer; |
140 | 146 |
141 // The embedder API for participating in browser logic. | 147 // The embedder API for participating in browser logic. |
142 ContentBrowserClient* browser_; | 148 ContentBrowserClient* browser_; |
143 // The embedder API for participating in plugin logic. | 149 // The embedder API for participating in plugin logic. |
144 ContentPluginClient* plugin_; | 150 ContentPluginClient* plugin_; |
145 // The embedder API for participating in renderer logic. | 151 // The embedder API for participating in renderer logic. |
146 ContentRendererClient* renderer_; | 152 ContentRendererClient* renderer_; |
147 // The embedder API for participating in utility logic. | 153 // The embedder API for participating in utility logic. |
148 ContentUtilityClient* utility_; | 154 ContentUtilityClient* utility_; |
149 }; | 155 }; |
150 | 156 |
151 } // namespace content | 157 } // namespace content |
152 | 158 |
153 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 159 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |