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

Unified Diff: third_party/grpc/src/objective-c/GRPCClient/private/GRPCHost.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
Index: third_party/grpc/src/objective-c/GRPCClient/private/GRPCHost.h
diff --git a/third_party/WebKit/Source/web/PrerendererClientImpl.h b/third_party/grpc/src/objective-c/GRPCClient/private/GRPCHost.h
similarity index 64%
copy from third_party/WebKit/Source/web/PrerendererClientImpl.h
copy to third_party/grpc/src/objective-c/GRPCClient/private/GRPCHost.h
index 78b472cd2dde8780691bbfbdff04f8eda0cc13c1..82c0ad6cf631fd56f7e7904df7421da9efc94b50 100644
--- a/third_party/WebKit/Source/web/PrerendererClientImpl.h
+++ b/third_party/grpc/src/objective-c/GRPCClient/private/GRPCHost.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
@@ -29,32 +31,29 @@
*
*/
-#ifndef PrerendererClientImpl_h
-#define PrerendererClientImpl_h
+#import <Foundation/Foundation.h>
-#include "core/loader/PrerendererClient.h"
-#include "wtf/Noncopyable.h"
-#include "wtf/PassRefPtr.h"
+@class GRPCCompletionQueue;
+struct grpc_call;
-namespace blink {
+@interface GRPCHost : NSObject
-class Prerender;
-class WebPrerendererClient;
+@property(nonatomic, readonly) NSString *address;
+@property(nonatomic, copy) NSString *userAgentPrefix;
-class PrerendererClientImpl final : public GarbageCollected<PrerendererClientImpl>, public PrerendererClient {
- USING_GARBAGE_COLLECTED_MIXIN(PrerendererClientImpl);
- WTF_MAKE_NONCOPYABLE(PrerendererClientImpl);
-public:
- explicit PrerendererClientImpl(WebPrerendererClient*);
+/** The following properties should only be modified for testing: */
- void willAddPrerender(Prerender*) override;
+@property(nonatomic, getter=isSecure) BOOL secure;
- DEFINE_INLINE_VIRTUAL_TRACE() { PrerendererClient::trace(visitor); }
+@property(nonatomic, copy) NSString *pathToCertificates;
+@property(nonatomic, copy) NSString *hostNameOverride;
-private:
- WebPrerendererClient* m_client;
-};
+/** Host objects initialized with the same address are the same. */
++ (instancetype)hostWithAddress:(NSString *)address;
+- (instancetype)initWithAddress:(NSString *)address NS_DESIGNATED_INITIALIZER;
-} // namespace blink
+/** Create a grpc_call object to the provided path on this host. */
+- (struct grpc_call *)unmanagedCallWithPath:(NSString *)path
+ completionQueue:(GRPCCompletionQueue *)queue;
-#endif // PrerendererClientImpl_h
+@end

Powered by Google App Engine
This is Rietveld 408576698