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

Unified Diff: third_party/grpc/test/cpp/qps/limit_cores.h

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « third_party/grpc/test/cpp/qps/interarrival.h ('k') | third_party/grpc/test/cpp/qps/limit_cores.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/grpc/test/cpp/qps/limit_cores.h
diff --git a/third_party/WebKit/Source/core/page/PagePopup.h b/third_party/grpc/test/cpp/qps/limit_cores.h
similarity index 71%
copy from third_party/WebKit/Source/core/page/PagePopup.h
copy to third_party/grpc/test/cpp/qps/limit_cores.h
index 1f6583187d90a45c516e5e729d4c92a4e1037a5a..5482904a3c42eaec190e9d1a829ef76d433b8dac 100644
--- a/third_party/WebKit/Source/core/page/PagePopup.h
+++ b/third_party/grpc/test/cpp/qps/limit_cores.h
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Copyright 2016, Google Inc.
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -26,29 +28,22 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
*/
-#ifndef PagePopup_h
-#define PagePopup_h
-
-#include "wtf/Forward.h"
-
-namespace blink {
-
-class AXObject;
-class IntRect;
-
-// A PagePopup object is created by ChromeClient::openPagePopup(), and deleted
-// by ChromeClient::closePagePopup().
-class PagePopup {
-public:
- virtual AXObject* rootAXObject() = 0;
- virtual void setWindowRect(const IntRect&) = 0;
- virtual void postMessage(const String& message) = 0;
+#ifndef TEST_QPS_LIMIT_CORES_H
+#define TEST_QPS_LIMIT_CORES_H
-protected:
- virtual ~PagePopup() { }
-};
+namespace grpc {
+namespace testing {
+/// LimitCores: allow this worker to only run on the cores specified in the
+/// array \a cores, which is of length \a cores_size.
+///
+/// LimitCores takes array and size arguments (instead of vector) for direct
+/// conversion from repeated field of protobuf. Use a cores_size of 0 to remove
+/// existing limits (from an empty repeated field)
+int LimitCores(const int *cores, int cores_size);
+} // namespace testing
+} // namespace grpc
-} // namespace blink
-#endif
+#endif // TEST_QPS_LIMIT_CORES_H
« no previous file with comments | « third_party/grpc/test/cpp/qps/interarrival.h ('k') | third_party/grpc/test/cpp/qps/limit_cores.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698