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

Side by Side Diff: chromeos/binder/transaction_data_reader.h

Issue 1995983002: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROMEOS_BINDER_TRANSACTION_DATA_READER_H_ 5 #ifndef CHROMEOS_BINDER_TRANSACTION_DATA_READER_H_
6 #define CHROMEOS_BINDER_TRANSACTION_DATA_READER_H_ 6 #define CHROMEOS_BINDER_TRANSACTION_DATA_READER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // |command_broker| will be used for object ref-count operations. 66 // |command_broker| will be used for object ref-count operations.
67 scoped_refptr<Object> ReadObject(CommandBroker* command_broker); 67 scoped_refptr<Object> ReadObject(CommandBroker* command_broker);
68 68
69 // Reads a file descriptor. 69 // Reads a file descriptor.
70 // The file descriptor is owned by the TransactionData, and it will be closed 70 // The file descriptor is owned by the TransactionData, and it will be closed
71 // when the TransactionData gets destroyed. You should duplicate the FD (e.g. 71 // when the TransactionData gets destroyed. You should duplicate the FD (e.g.
72 // by calling dup()) to keep owning it. 72 // by calling dup()) to keep owning it.
73 bool ReadFileDescriptor(int* fd); 73 bool ReadFileDescriptor(int* fd);
74 74
75 private: 75 private:
76 const TransactionData& data_;
77 BufferReader reader_; 76 BufferReader reader_;
78 77
79 DISALLOW_COPY_AND_ASSIGN(TransactionDataReader); 78 DISALLOW_COPY_AND_ASSIGN(TransactionDataReader);
80 }; 79 };
81 80
82 } // namespace binder 81 } // namespace binder
83 82
84 #endif // CHROMEOS_BINDER_TRANSACTION_DATA_READER_H_ 83 #endif // CHROMEOS_BINDER_TRANSACTION_DATA_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698