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

Side by Side Diff: mojo/edk/system/mapping_table.h

Issue 1154903003: "typedef Foo Bar" -> "using Bar = Foo" in //mojo/edk/.... (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_EDK_SYSTEM_MAPPING_TABLE_H_ 5 #ifndef MOJO_EDK_SYSTEM_MAPPING_TABLE_H_
6 #define MOJO_EDK_SYSTEM_MAPPING_TABLE_H_ 6 #define MOJO_EDK_SYSTEM_MAPPING_TABLE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Tries to add a mapping. (Takes ownership of the mapping in all cases; on 43 // Tries to add a mapping. (Takes ownership of the mapping in all cases; on
44 // failure, it will be destroyed.) 44 // failure, it will be destroyed.)
45 MojoResult AddMapping( 45 MojoResult AddMapping(
46 scoped_ptr<embedder::PlatformSharedBufferMapping> mapping); 46 scoped_ptr<embedder::PlatformSharedBufferMapping> mapping);
47 MojoResult RemoveMapping(uintptr_t address); 47 MojoResult RemoveMapping(uintptr_t address);
48 48
49 private: 49 private:
50 friend bool internal::ShutdownCheckNoLeaks(Core*); 50 friend bool internal::ShutdownCheckNoLeaks(Core*);
51 51
52 typedef base::hash_map<uintptr_t, embedder::PlatformSharedBufferMapping*> 52 using AddressToMappingMap =
53 AddressToMappingMap; 53 base::hash_map<uintptr_t, embedder::PlatformSharedBufferMapping*>;
54 AddressToMappingMap address_to_mapping_map_; 54 AddressToMappingMap address_to_mapping_map_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(MappingTable); 56 DISALLOW_COPY_AND_ASSIGN(MappingTable);
57 }; 57 };
58 58
59 } // namespace system 59 } // namespace system
60 } // namespace mojo 60 } // namespace mojo
61 61
62 #endif // MOJO_EDK_SYSTEM_MAPPING_TABLE_H_ 62 #endif // MOJO_EDK_SYSTEM_MAPPING_TABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698