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

Side by Side Diff: chromeos/network/network_util.h

Issue 18054007: Use a direct include of time headers in chrome_frame/, chromeos/, cloud_print/, components/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « chromeos/network/network_event_log.h ('k') | cloud_print/gcp20/prototype/gcp20_device.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_NETWORK_NETWORK_UTIL_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_UTIL_H_
6 #define CHROMEOS_NETWORK_NETWORK_UTIL_H_ 6 #define CHROMEOS_NETWORK_NETWORK_UTIL_H_
7 7
8 // This header is introduced to make it easy to switch from chromeos_network.cc 8 // This header is introduced to make it easy to switch from chromeos_network.cc
9 // to Chrome's own DBus code. crosbug.com/16557 9 // to Chrome's own DBus code. crosbug.com/16557
10 // All calls to functions in chromeos_network.h should be made through 10 // All calls to functions in chromeos_network.h should be made through
11 // functions provided by this header. 11 // functions provided by this header.
12 12
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/callback.h" 17 #include "base/callback.h"
18 #include "base/time.h" 18 #include "base/time/time.h"
19 #include "chromeos/chromeos_export.h" 19 #include "chromeos/chromeos_export.h"
20 20
21 namespace chromeos { 21 namespace chromeos {
22 22
23 // Struct to represent a SMS. 23 // Struct to represent a SMS.
24 struct CHROMEOS_EXPORT SMS { 24 struct CHROMEOS_EXPORT SMS {
25 SMS(); 25 SMS();
26 ~SMS(); 26 ~SMS();
27 base::Time timestamp; 27 base::Time timestamp;
28 std::string number; 28 std::string number;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 CHROMEOS_EXPORT std::string PrefixLengthToNetmask(int32 prefix_length); 69 CHROMEOS_EXPORT std::string PrefixLengthToNetmask(int32 prefix_length);
70 70
71 // Converts a |netmask| to a prefixlen. (for IPv4 only) 71 // Converts a |netmask| to a prefixlen. (for IPv4 only)
72 // e.g. a |netmask| of 255.255.255.0 is converted to a prefixlen of 24 72 // e.g. a |netmask| of 255.255.255.0 is converted to a prefixlen of 24
73 CHROMEOS_EXPORT int32 NetmaskToPrefixLength(const std::string& netmask); 73 CHROMEOS_EXPORT int32 NetmaskToPrefixLength(const std::string& netmask);
74 74
75 } // namespace network_util 75 } // namespace network_util
76 } // namespace chromeos 76 } // namespace chromeos
77 77
78 #endif // CHROMEOS_NETWORK_NETWORK_UTIL_H_ 78 #endif // CHROMEOS_NETWORK_NETWORK_UTIL_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_event_log.h ('k') | cloud_print/gcp20/prototype/gcp20_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698