| Index: third_party/WebKit/Source/platform/instrumentation/inspector/PlatformIdentifiersFactory.h
|
| diff --git a/third_party/WebKit/Source/platform/instrumentation/inspector/PlatformIdentifiersFactory.h b/third_party/WebKit/Source/platform/instrumentation/inspector/PlatformIdentifiersFactory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..69b84c201c01ff07fd1ce61324c63227a2cf0949
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/platform/instrumentation/inspector/PlatformIdentifiersFactory.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2017 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.
|
| +
|
| +#ifndef PlatformIdentifiersFactory_h
|
| +#define PlatformIdentifiersFactory_h
|
| +
|
| +#include "platform/PlatformExport.h"
|
| +#include "wtf/Allocator.h"
|
| +#include "wtf/text/WTFString.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class PLATFORM_EXPORT PlatformIdentifiersFactory {
|
| + STATIC_ONLY(PlatformIdentifiersFactory);
|
| +
|
| + public:
|
| + static String createIdentifier();
|
| +
|
| + static String requestId(unsigned long identifier);
|
| +
|
| + protected:
|
| + static String addProcessIdPrefixTo(int id);
|
| + static int removeProcessIdPrefixFrom(const String&, bool* ok);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // PlatformIdentifiersFactory_h
|
|
|