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

Side by Side Diff: ppapi/thunk/ppb_network_proxy_thunk.cc

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 1 month 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // From ppb_network_proxy.idl modified Tue Aug 20 08:13:36 2013. 5 // From ppb_network_proxy.idl modified Tue Jun 25 15:45:53 2013.
6 6
7 #include "ppapi/c/pp_completion_callback.h" 7 #include "ppapi/c/pp_completion_callback.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/c/ppb_network_proxy.h" 9 #include "ppapi/c/ppb_network_proxy.h"
10 #include "ppapi/shared_impl/tracked_callback.h" 10 #include "ppapi/shared_impl/tracked_callback.h"
11 #include "ppapi/thunk/enter.h" 11 #include "ppapi/thunk/enter.h"
12 #include "ppapi/thunk/ppapi_thunk_export.h" 12 #include "ppapi/thunk/ppapi_thunk_export.h"
13 #include "ppapi/thunk/ppb_network_proxy_api.h" 13 #include "ppapi/thunk/ppb_network_proxy_api.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
16 namespace thunk { 16 namespace thunk {
17 17
18 namespace { 18 namespace {
19 19
20 int32_t GetProxyForURL(PP_Instance instance, 20 int32_t GetProxyForURL(PP_Instance instance,
21 struct PP_Var url, 21 struct PP_Var url,
22 struct PP_Var* proxy_string, 22 struct PP_Var* proxy_string,
23 struct PP_CompletionCallback callback) { 23 struct PP_CompletionCallback callback) {
24 VLOG(4) << "PPB_NetworkProxy::GetProxyForURL()"; 24 VLOG(4) << "PPB_NetworkProxy::GetProxyForURL()";
25 EnterInstanceAPI<PPB_NetworkProxy_API> enter(instance, callback); 25 EnterInstanceAPI<PPB_NetworkProxy_API> enter(instance, callback);
26 if (enter.failed()) 26 if (enter.failed())
27 return enter.retval(); 27 return enter.retval();
28 return enter.SetResult(enter.functions()->GetProxyForURL(instance, 28 return enter.SetResult(enter.functions()->GetProxyForURL(
29 url, 29 instance, url, proxy_string, enter.callback()));
30 proxy_string,
31 enter.callback()));
32 } 30 }
33 31
34 const PPB_NetworkProxy_1_0 g_ppb_networkproxy_thunk_1_0 = { 32 const PPB_NetworkProxy_1_0 g_ppb_networkproxy_thunk_1_0 = {&GetProxyForURL};
35 &GetProxyForURL
36 };
37 33
38 } // namespace 34 } // namespace
39 35
40 PPAPI_THUNK_EXPORT const PPB_NetworkProxy_1_0* 36 PPAPI_THUNK_EXPORT const PPB_NetworkProxy_1_0* GetPPB_NetworkProxy_1_0_Thunk() {
41 GetPPB_NetworkProxy_1_0_Thunk() {
42 return &g_ppb_networkproxy_thunk_1_0; 37 return &g_ppb_networkproxy_thunk_1_0;
43 } 38 }
44 39
45 } // namespace thunk 40 } // namespace thunk
46 } // namespace ppapi 41 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_network_monitor_thunk.cc ('k') | ppapi/thunk/ppb_output_protection_private_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698