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

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

Issue 1737693002: Allow command-line arguments to override EF public key (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // trustworthy schemes should be added. 147 // trustworthy schemes should be added.
148 virtual void AddServiceWorkerSchemes(std::set<std::string>* schemes) {} 148 virtual void AddServiceWorkerSchemes(std::set<std::string>* schemes) {}
149 149
150 // Returns true if the embedder wishes to supplement the site isolation policy 150 // Returns true if the embedder wishes to supplement the site isolation policy
151 // used by the content layer. Returning true enables the infrastructure for 151 // used by the content layer. Returning true enables the infrastructure for
152 // out-of-process iframes, and causes the content layer to consult 152 // out-of-process iframes, and causes the content layer to consult
153 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process 153 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process
154 // model decisions. 154 // model decisions.
155 virtual bool IsSupplementarySiteIsolationModeEnabled(); 155 virtual bool IsSupplementarySiteIsolationModeEnabled();
156 156
157 // Gives the embedder a chance to configure origin trials as needed.
158 virtual void InitializeOriginTrials() {}
159
157 // Returns the public key to be used for origin trials, or an empty string if 160 // Returns the public key to be used for origin trials, or an empty string if
158 // origin trials are not enabled in this context. 161 // origin trials are not enabled in this context.
159 virtual base::StringPiece GetOriginTrialPublicKey(); 162 virtual base::StringPiece GetOriginTrialPublicKey();
160 163
161 private: 164 private:
162 friend class ContentClientInitializer; // To set these pointers. 165 friend class ContentClientInitializer; // To set these pointers.
163 friend class InternalTestInitializer; 166 friend class InternalTestInitializer;
164 167
165 // The embedder API for participating in browser logic. 168 // The embedder API for participating in browser logic.
166 ContentBrowserClient* browser_; 169 ContentBrowserClient* browser_;
167 // The embedder API for participating in gpu logic. 170 // The embedder API for participating in gpu logic.
168 ContentGpuClient* gpu_; 171 ContentGpuClient* gpu_;
169 // The embedder API for participating in renderer logic. 172 // The embedder API for participating in renderer logic.
170 ContentRendererClient* renderer_; 173 ContentRendererClient* renderer_;
171 // The embedder API for participating in utility logic. 174 // The embedder API for participating in utility logic.
172 ContentUtilityClient* utility_; 175 ContentUtilityClient* utility_;
173 }; 176 };
174 177
175 } // namespace content 178 } // namespace content
176 179
177 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 180 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW
« content/app/content_main_runner.cc ('K') | « content/app/content_main_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698