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

Unified Diff: content/public/common/web_preferences.cc

Issue 2227593002: ServiceWorker: Implement StartWorker by using mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added argument check and updated comment and BUILD.gn Created 4 years, 3 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
Index: content/public/common/web_preferences.cc
diff --git a/content/public/common/web_preferences.cc b/content/public/common/web_preferences.cc
index b856339d4c342749b23fb021d1773fb603ab9dce..09f625d8725857bf83e385658ff1dfb1e8070028 100644
--- a/content/public/common/web_preferences.cc
+++ b/content/public/common/web_preferences.cc
@@ -7,6 +7,7 @@
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
+#include "content/public/common/web_preferences.mojom.h"
#include "third_party/WebKit/public/web/WebSettings.h"
using blink::WebSettings;
@@ -33,6 +34,17 @@ STATIC_ASSERT_ENUM(V8_CACHE_OPTIONS_PARSE, WebSettings::V8CacheOptionsParse);
STATIC_ASSERT_ENUM(V8_CACHE_OPTIONS_CODE, WebSettings::V8CacheOptionsCode);
STATIC_ASSERT_ENUM(V8_CACHE_OPTIONS_LAST, WebSettings::V8CacheOptionsCode);
+STATIC_ASSERT_ENUM(V8_CACHE_OPTIONS_DEFAULT,
+ mojom::V8CacheOptions::V8_CACHE_OPTIONS_DEFAULT);
+STATIC_ASSERT_ENUM(V8_CACHE_OPTIONS_NONE,
+ mojom::V8CacheOptions::V8_CACHE_OPTIONS_NONE);
+STATIC_ASSERT_ENUM(V8_CACHE_OPTIONS_PARSE,
+ mojom::V8CacheOptions::V8_CACHE_OPTIONS_PARSE);
+STATIC_ASSERT_ENUM(V8_CACHE_OPTIONS_CODE,
+ mojom::V8CacheOptions::V8_CACHE_OPTIONS_CODE);
+STATIC_ASSERT_ENUM(V8_CACHE_OPTIONS_LAST,
+ mojom::V8CacheOptions::V8_CACHE_OPTIONS_LAST);
+
STATIC_ASSERT_ENUM(ProgressBarCompletion::LOAD_EVENT,
WebSettings::ProgressBarCompletion::LoadEvent);
STATIC_ASSERT_ENUM(ProgressBarCompletion::RESOURCES_BEFORE_DCL,

Powered by Google App Engine
This is Rietveld 408576698