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

Unified Diff: content/public/browser/pepper_vpn_provider_resource_host_proxy.h

Issue 1988613005: ppapi: PPB_VpnProvider: Implement Service Helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vpn-permission
Patch Set: Refactor patch. Communication now handled using ContentBrowserClient. Created 4 years, 6 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: content/public/browser/pepper_vpn_provider_resource_host_proxy.h
diff --git a/content/public/browser/pepper_vpn_provider_resource_host_proxy.h b/content/public/browser/pepper_vpn_provider_resource_host_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..45e83b94d5fdd67d2c54f4365ce49b219d844ef1
--- /dev/null
+++ b/content/public/browser/pepper_vpn_provider_resource_host_proxy.h
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_PEPPER_VPN_PROVIDER_RESOURCE_HOST_PROXY_H_
+#define CONTENT_PUBLIC_BROWSER_PEPPER_VPN_PROVIDER_RESOURCE_HOST_PROXY_H_
+
+#include <vector>
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+// Describes interface for communication with the VpnProviderResouceHost.
+class CONTENT_EXPORT PepperVpnProviderResourceHostProxy {
+ public:
+ // Passes an Unbind event to the VpnProviderResouceHost.
+ virtual void SendOnUnbind() = 0;
+
+ // Sends an IP packet to the VpnProviderResouceHost.
+ virtual void SendOnPacketReceived(const std::vector<char>& data) = 0;
+
+ virtual ~PepperVpnProviderResourceHostProxy(){};
piman 2016/06/16 00:27:09 nit: space between ) and {
adrian.belgun 2016/06/16 12:05:28 Done.
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_PEPPER_VPN_PROVIDER_RESOURCE_HOST_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698