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

Unified Diff: components/framelet/common/framelet_constants.cc

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 11 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: components/framelet/common/framelet_constants.cc
diff --git a/components/framelet/common/framelet_constants.cc b/components/framelet/common/framelet_constants.cc
new file mode 100644
index 0000000000000000000000000000000000000000..50997299ae0f2509c3f8494e0a0d43563447cb9c
--- /dev/null
+++ b/components/framelet/common/framelet_constants.cc
@@ -0,0 +1,25 @@
+// Copyright 2015 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.
+
+#include "components/framelet/common/framelet_constants.h"
+
+namespace framelet {
+
+const char kEmbedderAPINamespace[] = "frameletInternal";
+const char kFocused[] = "focused";
+const char kVisible[] = "visible";
+
+// Memory usage thresholds
+const int kMemoryUsageLimitLow = 1 << 20;
+const int kMemoryUsageLimitMedium = kMemoryUsageLimitLow << 1;
+const int kMemoryUsageLimitHigh = kMemoryUsageLimitLow << 2;
+const int kMemoryUsageRangeOverlap = kMemoryUsageLimitLow >> 10;
+
+// Resource monitoring
+const char kMonitorResources[] = "monitorResources";
+
+// FrameletMemoryTracker
+const char kFrameletMemoryTrackerKeyName[] = "framelet_memory_tracker";
+
+} // namespace framelet
« no previous file with comments | « components/framelet/common/framelet_constants.h ('k') | components/framelet/common/framelet_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698