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

Unified Diff: extensions/common/feature_switch.h

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: comments addressed Created 3 years, 9 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 | « content/renderer/render_frame_impl.cc ('k') | extensions/common/feature_switch.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/feature_switch.h
diff --git a/extensions/common/feature_switch.h b/extensions/common/feature_switch.h
index 6e2f8e7abad26aea46e520971f32ce80d79f2f54..df10bd5db56dd84547bf65e76d334fe055fe28f4 100644
--- a/extensions/common/feature_switch.h
+++ b/extensions/common/feature_switch.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/macros.h"
+#include "base/optional.h"
namespace base {
class CommandLine;
@@ -41,6 +42,7 @@ class FeatureSwitch {
static FeatureSwitch* trace_app_source();
static FeatureSwitch* load_media_router_component_extension();
static FeatureSwitch* native_crx_bindings();
+ static FeatureSwitch* yield_between_content_script_runs();
enum DefaultValue {
DEFAULT_ENABLED,
@@ -88,12 +90,14 @@ class FeatureSwitch {
private:
std::string GetLegacyEnableFlag() const;
std::string GetLegacyDisableFlag() const;
+ bool ComputeValue() const;
const base::CommandLine* command_line_;
const char* switch_name_;
const char* field_trial_name_;
bool default_value_;
OverrideValue override_value_;
+ mutable base::Optional<bool> cached_value_;
DISALLOW_COPY_AND_ASSIGN(FeatureSwitch);
};
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | extensions/common/feature_switch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698