| 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
|
|
|