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

Unified Diff: ppapi/shared_impl/array_writer.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/array_var.cc ('k') | ppapi/shared_impl/array_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/array_writer.h
diff --git a/ppapi/shared_impl/array_writer.h b/ppapi/shared_impl/array_writer.h
index 7e6c3492fd182691be5c737df95eb49de6396c15..fce10e4fc73f2c9c79848d225201f7a68a5655fe 100644
--- a/ppapi/shared_impl/array_writer.h
+++ b/ppapi/shared_impl/array_writer.h
@@ -54,9 +54,7 @@ class PPAPI_SHARED_EXPORT ArrayWriter {
bool StoreArray(const T* input, uint32_t count) {
// Always call the alloc function, even on 0 array size.
void* dest = pp_array_output_.GetDataBuffer(
- pp_array_output_.user_data,
- count,
- sizeof(T));
+ pp_array_output_.user_data, count, sizeof(T));
// Regardless of success, we clear the output to prevent future calls on
// this same output object.
@@ -74,7 +72,7 @@ class PPAPI_SHARED_EXPORT ArrayWriter {
// Copies the given array/vector of data to the plugin output array. See
// comment of StoreArray() for detail.
- template<typename T>
+ template <typename T>
bool StoreVector(const std::vector<T>& input) {
return StoreArray(input.size() ? &input[0] : NULL, input.size());
}
@@ -90,7 +88,7 @@ class PPAPI_SHARED_EXPORT ArrayWriter {
// Note: potentially this could be a template in case you have a vector of
// FileRef objects, for example. However, this saves code since there's only
// one instantiation and is sufficient for now.
- bool StoreResourceVector(const std::vector< scoped_refptr<Resource> >& input);
+ bool StoreResourceVector(const std::vector<scoped_refptr<Resource> >& input);
// Like the above version but takes an array of AddRef'ed PP_Resources. On
// storage failure, this will release each resource.
@@ -103,7 +101,7 @@ class PPAPI_SHARED_EXPORT ArrayWriter {
// refcounts will be unchanged. In either case, the object will become
// is_null() immediately after the call since one output function should only
// be issued once.
- bool StoreVarVector(const std::vector< scoped_refptr<Var> >& input);
+ bool StoreVarVector(const std::vector<scoped_refptr<Var> >& input);
// Like the above version but takes an array of AddRef'ed PP_Vars. On
// storage failure, this will release each var.
« no previous file with comments | « ppapi/shared_impl/array_var.cc ('k') | ppapi/shared_impl/array_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698