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

Side by Side Diff: ppapi/cpp/directory_entry.h

Issue 18611004: PPAPI: Initialize CompletionCallbackWithOutput storage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 7 years, 5 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/cpp/dev/truetype_font_dev.h ('k') | ppapi/cpp/extensions/ext_output_traits.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CPP_DIRECTORY_ENTRY_H_ 5 #ifndef PPAPI_CPP_DIRECTORY_ENTRY_H_
6 #define PPAPI_CPP_DIRECTORY_ENTRY_H_ 6 #define PPAPI_CPP_DIRECTORY_ENTRY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ppapi/c/pp_array_output.h" 10 #include "ppapi/c/pp_array_output.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 typedef DirectoryEntryArrayOutputAdapterWithStorage StorageType; 112 typedef DirectoryEntryArrayOutputAdapterWithStorage StorageType;
113 113
114 static inline APIArgType StorageToAPIArg(StorageType& t) { 114 static inline APIArgType StorageToAPIArg(StorageType& t) {
115 return t.pp_array_output(); 115 return t.pp_array_output();
116 } 116 }
117 117
118 static inline std::vector<DirectoryEntry>& StorageToPluginArg( 118 static inline std::vector<DirectoryEntry>& StorageToPluginArg(
119 StorageType& t) { 119 StorageType& t) {
120 return t.output(); 120 return t.output();
121 } 121 }
122
123 static inline void Initialize(StorageType* /* t */) {}
122 }; 124 };
123 125
124 } // namespace internal 126 } // namespace internal
125 } // namespace pp 127 } // namespace pp
126 128
127 #endif // PPAPI_CPP_DIRECTORY_ENTRY_H_ 129 #endif // PPAPI_CPP_DIRECTORY_ENTRY_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/truetype_font_dev.h ('k') | ppapi/cpp/extensions/ext_output_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698