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

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

Issue 10168026: Delete FunctionGroupBase from Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc ('k') | ppapi/thunk/ppb_image_data_thunk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ppapi/c/pp_var.h" 5 #include "ppapi/c/pp_var.h"
6 #include "ppapi/c/private/ppb_host_resolver_private.h" 6 #include "ppapi/c/private/ppb_host_resolver_private.h"
7 #include "ppapi/thunk/enter.h" 7 #include "ppapi/thunk/enter.h"
8 #include "ppapi/thunk/ppb_host_resolver_private_api.h" 8 #include "ppapi/thunk/ppb_host_resolver_private_api.h"
9 #include "ppapi/thunk/resource_creation_api.h" 9 #include "ppapi/thunk/resource_creation_api.h"
10 #include "ppapi/thunk/thunk.h" 10 #include "ppapi/thunk/thunk.h"
11 11
12 namespace ppapi { 12 namespace ppapi {
13 namespace thunk { 13 namespace thunk {
14 14
15 namespace { 15 namespace {
16 16
17 typedef EnterResource<PPB_HostResolver_Private_API> EnterHostResolver; 17 typedef EnterResource<PPB_HostResolver_Private_API> EnterHostResolver;
18 18
19 PP_Resource Create(PP_Instance instance) { 19 PP_Resource Create(PP_Instance instance) {
20 EnterFunction<ResourceCreationAPI> enter(instance, true); 20 EnterResourceCreation enter(instance);
21 if (enter.failed()) 21 if (enter.failed())
22 return 0; 22 return 0;
23 return enter.functions()->CreateHostResolverPrivate(instance); 23 return enter.functions()->CreateHostResolverPrivate(instance);
24 } 24 }
25 25
26 PP_Bool IsHostResolver(PP_Resource resource) { 26 PP_Bool IsHostResolver(PP_Resource resource) {
27 EnterHostResolver enter(resource, false); 27 EnterHostResolver enter(resource, false);
28 return PP_FromBool(enter.succeeded()); 28 return PP_FromBool(enter.succeeded());
29 } 29 }
30 30
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 }; 72 };
73 73
74 } // namespace 74 } // namespace
75 75
76 const PPB_HostResolver_Private_0_1* GetPPB_HostResolver_Private_0_1_Thunk() { 76 const PPB_HostResolver_Private_0_1* GetPPB_HostResolver_Private_0_1_Thunk() {
77 return &g_ppb_host_resolver_thunk; 77 return &g_ppb_host_resolver_thunk;
78 } 78 }
79 79
80 } // namespace thunk 80 } // namespace thunk
81 } // namespace ppapi 81 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc ('k') | ppapi/thunk/ppb_image_data_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698