Chromium Code Reviews| Index: chrome/browser/origin_trials/origin_trial_controller.h |
| diff --git a/chrome/browser/origin_trials/origin_trial_controller.h b/chrome/browser/origin_trials/origin_trial_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0e6fc7e9c16eab142afcbec5700cc9cc14c37b45 |
| --- /dev/null |
| +++ b/chrome/browser/origin_trials/origin_trial_controller.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_ORIGIN_TRIALS_ORIGIN_TRIAL_CONTROLLER_H_ |
| +#define CHROME_BROWSER_ORIGIN_TRIALS_ORIGIN_TRIAL_CONTROLLER_H_ |
| + |
| +#include "base/command_line.h" |
|
chasej
2016/02/26 06:10:34
Can this be a forward declaration instead?
iclelland
2016/02/26 15:24:47
Done.
|
| + |
| +class OriginTrialController { |
| + public: |
| + static const char kFieldTrialName[]; |
| + static const char kPublicKeyFieldName[]; |
| + |
| + // Updates the renderer command line to pass any relevant origin trial |
| + // configuration to the renderer at startup. Currently this can include an |
| + // updated public key to use for validating tokens. This method is |
| + // thread-safe. |
| + static void UpdateCommandLineFromFieldTrials(base::CommandLine* command_line); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_ORIGIN_TRIALS_ORIGIN_TRIAL_CONTROLLER_H_ |