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

Side by Side Diff: ppapi/cpp/dev/network_proxy_dev.h

Issue 16819002: PPAPI: Introduce PPB_NetworkProxy_Dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_CPP_NETWORK_PROXY_H_
6 #define PPAPI_CPP_NETWORK_PROXY_H_
7
8 #include <string>
9
10 #include "ppapi/c/dev/ppb_network_proxy_dev.h"
11 #include "ppapi/cpp/completion_callback.h"
12 #include "ppapi/cpp/instance_handle.h"
13
14 namespace pp {
15
16 class NetworkProxy {
17 public:
18 // Is this worth having?
19 static bool IsAvailable();
20
21 // TODO(dmichael): Sucks to mix string and Var. Would be nice to have both be
22 // string.
23 // TODO(dmichael): There's no way to cancel the request, and there's not even
24 // a resource to release to cause it to be cancelled. Is that okay?
25 static int32_t GetProxyForURL(
26 const InstanceHandle& instance,
27 const std::string& url,
yzshen1 2013/06/16 23:49:53 - I think once Brett suggested me to have the C++
dmichael (off chromium) 2013/06/17 21:48:28 Yes, I wanted them to be consistent. It seems like
28 const pp::CompletionCallbackWithOutput<Var>& callback);
29 };
30
31 } // namespace pp
32
33 #endif // PPAPI_CPP_NETWORK_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698