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

Unified Diff: third_party/grpc/include/grpc++/client_context.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/include/grpc++/channel.h ('k') | third_party/grpc/include/grpc++/completion_queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/grpc/include/grpc++/channel.h ('k') | third_party/grpc/include/grpc++/completion_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698