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

Side by Side Diff: ppapi/proxy/locking_resource_releaser.h

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 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 #ifndef PPAPI_PROXY_LOCKING_RESOURCE_RELEASER_H_ 5 #ifndef PPAPI_PROXY_LOCKING_RESOURCE_RELEASER_H_
6 #define PPAPI_PROXY_LOCKING_RESOURCE_RELEASER_H_ 6 #define PPAPI_PROXY_LOCKING_RESOURCE_RELEASER_H_
7 7
8 #include "base/macros.h"
8 #include "ppapi/shared_impl/ppapi_globals.h" 9 #include "ppapi/shared_impl/ppapi_globals.h"
9 #include "ppapi/shared_impl/proxy_lock.h" 10 #include "ppapi/shared_impl/proxy_lock.h"
10 #include "ppapi/shared_impl/resource_tracker.h" 11 #include "ppapi/shared_impl/resource_tracker.h"
11 12
12 namespace ppapi { 13 namespace ppapi {
13 namespace proxy { 14 namespace proxy {
14 15
15 // LockingResourceReleaser is a simple RAII class for releasing a resource at 16 // LockingResourceReleaser is a simple RAII class for releasing a resource at
16 // the end of scope. This acquires the ProxyLock before releasing the resource. 17 // the end of scope. This acquires the ProxyLock before releasing the resource.
17 // It is for use in unit tests. Most proxy or implementation code should use 18 // It is for use in unit tests. Most proxy or implementation code should use
(...skipping 14 matching lines...) Expand all
32 private: 33 private:
33 PP_Resource resource_; 34 PP_Resource resource_;
34 35
35 DISALLOW_COPY_AND_ASSIGN(LockingResourceReleaser); 36 DISALLOW_COPY_AND_ASSIGN(LockingResourceReleaser);
36 }; 37 };
37 38
38 } // namespace proxy 39 } // namespace proxy
39 } // namespace ppapi 40 } // namespace ppapi
40 41
41 #endif // PPAPI_PROXY_LOCKING_RESOURCE_RELEASER_H_ 42 #endif // PPAPI_PROXY_LOCKING_RESOURCE_RELEASER_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/isolated_file_system_private_resource.h ('k') | ppapi/proxy/media_stream_audio_track_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698