| Index: third_party/grpc/src/core/security/b64.h
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLShadowElement.h b/third_party/grpc/src/core/security/b64.h
|
| similarity index 65%
|
| copy from third_party/WebKit/Source/core/html/HTMLShadowElement.h
|
| copy to third_party/grpc/src/core/security/b64.h
|
| index c760fc6610fad9a18449446f33c4b656054268e4..3e3b52112093c6fcc1426c982e31fbc646ff904f 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLShadowElement.h
|
| +++ b/third_party/grpc/src/core/security/b64.h
|
| @@ -1,5 +1,7 @@
|
| /*
|
| - * Copyright (C) 2012 Google Inc. All rights reserved.
|
| + *
|
| + * Copyright 2015-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,25 @@
|
| * 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 HTMLShadowElement_h
|
| -#define HTMLShadowElement_h
|
| -
|
| -#include "core/dom/shadow/InsertionPoint.h"
|
| -#include "wtf/Forward.h"
|
| -
|
| -namespace blink {
|
| +#ifndef GRPC_INTERNAL_CORE_SECURITY_BASE64_H
|
| +#define GRPC_INTERNAL_CORE_SECURITY_BASE64_H
|
|
|
| -class HTMLShadowElement final : public InsertionPoint {
|
| - DEFINE_WRAPPERTYPEINFO();
|
| -public:
|
| - DECLARE_NODE_FACTORY(HTMLShadowElement);
|
| - ~HTMLShadowElement() override;
|
| +#include <grpc/support/slice.h>
|
|
|
| - ShadowRoot* olderShadowRoot();
|
| +/* Encodes data using base64. It is the caller's responsability to free
|
| + the returned char * using gpr_free. Returns NULL on NULL input. */
|
| +char *grpc_base64_encode(const void *data, size_t data_size, int url_safe,
|
| + int multiline);
|
|
|
| -private:
|
| - explicit HTMLShadowElement(Document&);
|
| - InsertionNotificationRequest insertedInto(ContainerNode* insertionPoint) override;
|
| -};
|
| +/* Decodes data according to the base64 specification. Returns an empty
|
| + slice in case of failure. */
|
| +gpr_slice grpc_base64_decode(const char *b64, int url_safe);
|
|
|
| -} // namespace blink
|
| +/* Same as above except that the length is provided by the caller. */
|
| +gpr_slice grpc_base64_decode_with_len(const char *b64, size_t b64_len,
|
| + int url_safe);
|
|
|
| -#endif // HTMLShadowElement_h
|
| +#endif /* GRPC_INTERNAL_CORE_SECURITY_BASE64_H */
|
|
|