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 |