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

Unified Diff: chrome/common/chrome_content_client.h

Issue 2049783002: Refactor OriginTrialPolicy to be an abstract interface in content/public/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ef-add-revoked-feature-list
Patch Set: Switch to lazy initialization in ChromeContentClient 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.h
diff --git a/chrome/common/chrome_content_client.h b/chrome/common/chrome_content_client.h
index 819c255801f06fcf1608ed4e8048698c9c928613..e250a7a84fe04f337a5412716735446bb4bfbfbe 100644
--- a/chrome/common/chrome_content_client.h
+++ b/chrome/common/chrome_content_client.h
@@ -5,13 +5,14 @@
#ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
#define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
+#include <memory>
#include <string>
#include <vector>
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "build/build_config.h"
-#include "chrome/common/origin_trials/origin_trial_key_manager.h"
+#include "chrome/common/origin_trials/chrome_origin_trial_policy.h"
#include "content/public/common/content_client.h"
#if defined(ENABLE_PLUGINS)
@@ -29,6 +30,9 @@ class ChromeContentClient : public content::ContentClient {
static const char kPDFPluginPath[];
static const char kRemotingViewerPluginPath[];
+ ChromeContentClient();
+ ~ChromeContentClient() override;
+
// The methods below are called by child processes to set the function
// pointers for built-in plugins. We avoid linking these plugins into
// chrome_common because then on Windows we would ship them twice because of
@@ -90,18 +94,15 @@ class ChromeContentClient : public content::ContentClient {
bool AllowScriptExtensionForServiceWorker(const GURL& script_url) override;
bool IsSupplementarySiteIsolationModeEnabled() override;
- base::StringPiece GetOriginTrialPublicKey() override;
- OriginTrialKeyManager* origin_trial_key_manager() {
- return &origin_trial_key_manager_;
- }
+ content::OriginTrialPolicy* GetOriginTrialPolicy() override;
#if defined(OS_ANDROID)
media::MediaClientAndroid* GetMediaClientAndroid() override;
#endif // OS_ANDROID
private:
- OriginTrialKeyManager origin_trial_key_manager_;
+ std::unique_ptr<ChromeOriginTrialPolicy> origin_trial_policy_;
};
#endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698