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

Side by Side Diff: content/browser/geolocation/wifi_data_provider_common.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 (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 CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_
6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_
7 7
8 #include <assert.h> 8 #include <assert.h>
9 #include <stdint.h>
9 10
10 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
13 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
14 #include "content/browser/geolocation/wifi_data_provider.h" 16 #include "content/browser/geolocation/wifi_data_provider.h"
15 #include "content/browser/geolocation/wifi_polling_policy.h" 17 #include "content/browser/geolocation/wifi_polling_policy.h"
16 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
17 19
18 namespace content { 20 namespace content {
19 21
20 // Converts a MAC address stored as an array of uint8 to a string. 22 // Converts a MAC address stored as an array of uint8_t to a string.
21 base::string16 MacAddressAsString16(const uint8 mac_as_int[6]); 23 base::string16 MacAddressAsString16(const uint8_t mac_as_int[6]);
22 24
23 // Base class to promote code sharing between platform specific wifi data 25 // Base class to promote code sharing between platform specific wifi data
24 // providers. It's optional for specific platforms to derive this, but if they 26 // providers. It's optional for specific platforms to derive this, but if they
25 // do polling behavior is taken care of by this base class, and all the platform 27 // do polling behavior is taken care of by this base class, and all the platform
26 // need do is provide the underlying WLAN access API and polling policy. 28 // need do is provide the underlying WLAN access API and polling policy.
27 // Also designed this way for ease of testing the cross-platform behavior. 29 // Also designed this way for ease of testing the cross-platform behavior.
28 class CONTENT_EXPORT WifiDataProviderCommon : public WifiDataProvider { 30 class CONTENT_EXPORT WifiDataProviderCommon : public WifiDataProvider {
29 public: 31 public:
30 // Interface to abstract the low level data OS library call, and to allow 32 // Interface to abstract the low level data OS library call, and to allow
31 // mocking (hence public). 33 // mocking (hence public).
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 74
73 // Holder for delayed tasks; takes care of cleanup. 75 // Holder for delayed tasks; takes care of cleanup.
74 base::WeakPtrFactory<WifiDataProviderCommon> weak_factory_; 76 base::WeakPtrFactory<WifiDataProviderCommon> weak_factory_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderCommon); 78 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderCommon);
77 }; 79 };
78 80
79 } // namespace content 81 } // namespace content
80 82
81 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ 83 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_chromeos.cc ('k') | content/browser/geolocation/wifi_data_provider_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698