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

Side by Side Diff: content/public/common/content_client.h

Issue 2047683002: Store Origin Trials public key in browser prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 #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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // service worker. 161 // service worker.
162 virtual bool AllowScriptExtensionForServiceWorker(const GURL& script_url); 162 virtual bool AllowScriptExtensionForServiceWorker(const GURL& script_url);
163 163
164 // Returns true if the embedder wishes to supplement the site isolation policy 164 // Returns true if the embedder wishes to supplement the site isolation policy
165 // used by the content layer. Returning true enables the infrastructure for 165 // used by the content layer. Returning true enables the infrastructure for
166 // out-of-process iframes, and causes the content layer to consult 166 // out-of-process iframes, and causes the content layer to consult
167 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process 167 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process
168 // model decisions. 168 // model decisions.
169 virtual bool IsSupplementarySiteIsolationModeEnabled(); 169 virtual bool IsSupplementarySiteIsolationModeEnabled();
170 170
171 // Called by the renderer after the render thread has started, and allows the
172 // embedder to set up any global origin trial policies (custom public key, or
173 // disabled experiments)
174 virtual void InitializeOriginTrialPolicy();
175
171 // Returns the public key to be used for origin trials, or an empty string if 176 // Returns the public key to be used for origin trials, or an empty string if
172 // origin trials are not enabled in this context. 177 // origin trials are not enabled in this context.
173 virtual base::StringPiece GetOriginTrialPublicKey(); 178 virtual base::StringPiece GetOriginTrialPublicKey();
174 179
175 #if defined(OS_ANDROID) 180 #if defined(OS_ANDROID)
176 // Returns true for clients like Android WebView that uses synchronous 181 // Returns true for clients like Android WebView that uses synchronous
177 // compositor. Note setting this to true will permit synchronous IPCs from 182 // compositor. Note setting this to true will permit synchronous IPCs from
178 // the browser UI thread. 183 // the browser UI thread.
179 virtual bool UsingSynchronousCompositing(); 184 virtual bool UsingSynchronousCompositing();
180 185
(...skipping 11 matching lines...) Expand all
192 ContentGpuClient* gpu_; 197 ContentGpuClient* gpu_;
193 // The embedder API for participating in renderer logic. 198 // The embedder API for participating in renderer logic.
194 ContentRendererClient* renderer_; 199 ContentRendererClient* renderer_;
195 // The embedder API for participating in utility logic. 200 // The embedder API for participating in utility logic.
196 ContentUtilityClient* utility_; 201 ContentUtilityClient* utility_;
197 }; 202 };
198 203
199 } // namespace content 204 } // namespace content
200 205
201 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 206 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698