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

Side by Side Diff: ppapi/shared_impl/host_resource.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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
« no previous file with comments | « ppapi/shared_impl/host_resource.h ('k') | ppapi/shared_impl/id_assignment.h » ('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/shared_impl/host_resource.h" 5 #include "ppapi/shared_impl/host_resource.h"
6 6
7 namespace ppapi { 7 namespace ppapi {
8 8
9 HostResource::HostResource() : instance_(0), host_resource_(0) { 9 HostResource::HostResource() : instance_(0), host_resource_(0) {}
10 }
11 10
12 // static 11 // static
13 HostResource HostResource::MakeInstanceOnly(PP_Instance instance) { 12 HostResource HostResource::MakeInstanceOnly(PP_Instance instance) {
14 HostResource resource; 13 HostResource resource;
15 resource.SetHostResource(instance, 0); 14 resource.SetHostResource(instance, 0);
16 return resource; 15 return resource;
17 } 16 }
18 17
19 void HostResource::SetHostResource(PP_Instance instance, PP_Resource resource) { 18 void HostResource::SetHostResource(PP_Instance instance, PP_Resource resource) {
20 instance_ = instance; 19 instance_ = instance;
21 host_resource_ = resource; 20 host_resource_ = resource;
22 } 21 }
23 22
24 } // namespace ppapi 23 } // namespace ppapi
25
OLDNEW
« no previous file with comments | « ppapi/shared_impl/host_resource.h ('k') | ppapi/shared_impl/id_assignment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698