| Index: third_party/grpc/include/grpc++/client_context.h
|
| diff --git a/third_party/WebKit/Source/core/html/track/TrackBase.cpp b/third_party/grpc/include/grpc++/client_context.h
|
| similarity index 63%
|
| copy from third_party/WebKit/Source/core/html/track/TrackBase.cpp
|
| copy to third_party/grpc/include/grpc++/client_context.h
|
| index 7a2ce55fa026ddc301fbf6fb23d51cacb10cb375..3fbe6d1be80a6163dd47823e563f05c8cc2bdf6c 100644
|
| --- a/third_party/WebKit/Source/core/html/track/TrackBase.cpp
|
| +++ b/third_party/grpc/include/grpc++/client_context.h
|
| @@ -1,5 +1,7 @@
|
| /*
|
| - * Copyright (C) 2013 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,51 +28,27 @@
|
| * 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.
|
| + *
|
| */
|
|
|
| -#include "core/html/track/TrackBase.h"
|
| -
|
| -#include "core/html/HTMLMediaElement.h"
|
| -
|
| -namespace blink {
|
| -
|
| -static WebMediaPlayer::TrackId nextTrackId()
|
| -{
|
| - static WebMediaPlayer::TrackId next = 0;
|
| - return ++next;
|
| -}
|
| -
|
| -TrackBase::TrackBase(WebMediaPlayer::TrackType type, const AtomicString& label, const AtomicString& language, const String& id)
|
| - : m_trackId(nextTrackId())
|
| - , m_type(type)
|
| - , m_label(label)
|
| - , m_language(language)
|
| - , m_id(id)
|
| - , m_mediaElement(nullptr)
|
| -{
|
| -}
|
| -
|
| -TrackBase::~TrackBase()
|
| -{
|
| -}
|
| -
|
| -Node* TrackBase::owner() const
|
| -{
|
| - return m_mediaElement;
|
| -}
|
| -
|
| -DEFINE_TRACE(TrackBase)
|
| -{
|
| - Supplementable<TrackBase>::trace(visitor);
|
| - visitor->trace(m_mediaElement);
|
| -}
|
| -
|
| -void TrackBase::setKind(const AtomicString& kind)
|
| -{
|
| - if (isValidKind(kind))
|
| - m_kind = kind;
|
| - else
|
| - m_kind = defaultKind();
|
| -}
|
| -
|
| -} // namespace blink
|
| +/// A ClientContext allows the person implementing a service client to:
|
| +///
|
| +/// - Add custom metadata key-value pairs that will propagated to the server
|
| +/// side.
|
| +/// - Control call settings such as compression and authentication.
|
| +/// - Initial and trailing metadata coming from the server.
|
| +/// - Get performance metrics (ie, census).
|
| +///
|
| +/// Context settings are only relevant to the call they are invoked with, that
|
| +/// is to say, they aren't sticky. Some of these settings, such as the
|
| +/// compression options, can be made persistant at channel construction time
|
| +/// (see \a grpc::CreateCustomChannel).
|
| +///
|
| +/// \warning ClientContext instances should \em not be reused across rpcs.
|
| +
|
| +#ifndef GRPCXX_CLIENT_CONTEXT_H
|
| +#define GRPCXX_CLIENT_CONTEXT_H
|
| +
|
| +#include <grpc++/impl/codegen/client_context.h>
|
| +
|
| +#endif // GRPCXX_CLIENT_CONTEXT_H
|
|
|