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

Side by Side Diff: base/global_descriptors_posix.h

Issue 6085015: Order function definitions in base/ according to the header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lrn2merge Created 9 years, 11 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 | « base/file_util_proxy.cc ('k') | base/global_descriptors_posix.cc » ('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 BASE_GLOBAL_DESCRIPTORS_POSIX_H_ 5 #ifndef BASE_GLOBAL_DESCRIPTORS_POSIX_H_
6 #define BASE_GLOBAL_DESCRIPTORS_POSIX_H_ 6 #define BASE_GLOBAL_DESCRIPTORS_POSIX_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Get a descriptor given a key. It is a fatal error if the key is not known. 49 // Get a descriptor given a key. It is a fatal error if the key is not known.
50 int Get(Key key) const; 50 int Get(Key key) const;
51 51
52 // Get a descriptor give a key. Returns -1 on error. 52 // Get a descriptor give a key. Returns -1 on error.
53 int MaybeGet(Key key) const; 53 int MaybeGet(Key key) const;
54 54
55 // Set the descriptor for the given key. 55 // Set the descriptor for the given key.
56 void Set(Key key, int fd); 56 void Set(Key key, int fd);
57 57
58 void Reset(const Mapping& mapping) { 58 void Reset(const Mapping& mapping);
59 descriptors_ = mapping;
60 }
61 59
62 private: 60 private:
63 friend struct DefaultSingletonTraits<GlobalDescriptors>; 61 friend struct DefaultSingletonTraits<GlobalDescriptors>;
64 GlobalDescriptors(); 62 GlobalDescriptors();
65 ~GlobalDescriptors(); 63 ~GlobalDescriptors();
66 64
67 Mapping descriptors_; 65 Mapping descriptors_;
68 }; 66 };
69 67
70 } // namespace base 68 } // namespace base
71 69
72 #endif // BASE_GLOBAL_DESCRIPTORS_POSIX_H_ 70 #endif // BASE_GLOBAL_DESCRIPTORS_POSIX_H_
OLDNEW
« no previous file with comments | « base/file_util_proxy.cc ('k') | base/global_descriptors_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698