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

Unified Diff: public/web/WebWorkerSettings.h

Issue 106353005: Expose performance.memory in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Perf-Memory-SharedWorker
Patch Set: Introduce WorkerSettings Created 6 years, 10 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
« Source/web/WebSharedWorkerImpl.cpp ('K') | « public/web/WebSharedWorker.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWorkerSettings.h
diff --git a/public/platform/WebHTTPHeaderVisitor.h b/public/web/WebWorkerSettings.h
similarity index 78%
copy from public/platform/WebHTTPHeaderVisitor.h
copy to public/web/WebWorkerSettings.h
index ff60384e14f03ec7a1a80e4388ccd14d46fd5c4d..d28f56c99dadda0ac65153e7191be751caed15b3 100644
--- a/public/platform/WebHTTPHeaderVisitor.h
+++ b/public/web/WebWorkerSettings.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2014 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -11,7 +11,7 @@
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
- * * Neither the name of Google Inc. nor the names of its
+ * * Neither the name of Intel Corporation nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
@@ -28,19 +28,19 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebHTTPHeaderVisitor_h
-#define WebHTTPHeaderVisitor_h
+#ifndef WebWorkerSettings_h
+#define WebWorkerSettings_h
namespace blink {
-class WebString;
-
-class WebHTTPHeaderVisitor {
+// WebWorkerSettings is owned by the WebSharedWorker, and allows code to
+// modify the settings for the WebSharedWorker.
+class WebWorkerSettings {
public:
- virtual void visitHeader(const WebString& name, const WebString& value) = 0;
+ virtual void setMemoryInfoEnabled(bool) = 0;
protected:
- ~WebHTTPHeaderVisitor() { }
+ ~WebWorkerSettings() { }
};
} // namespace blink
« Source/web/WebSharedWorkerImpl.cpp ('K') | « public/web/WebSharedWorker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698