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

Side by Side Diff: extensions/browser/api/networking_private/networking_private_service_client.h

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/basictypes.h"
12 #include "base/id_map.h" 13 #include "base/id_map.h"
14 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 17 #include "base/observer_list.h"
16 #include "base/strings/string16.h" 18 #include "base/strings/string16.h"
17 #include "base/supports_user_data.h" 19 #include "base/supports_user_data.h"
18 #include "base/threading/sequenced_worker_pool.h" 20 #include "base/threading/sequenced_worker_pool.h"
19 #include "base/values.h" 21 #include "base/values.h"
20 #include "components/keyed_service/core/keyed_service.h" 22 #include "components/keyed_service/core/keyed_service.h"
21 #include "components/wifi/wifi_service.h" 23 #include "components/wifi/wifi_service.h"
22 #include "content/public/browser/utility_process_host.h" 24 #include "content/public/browser/utility_process_host.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void RemoveObserver(NetworkingPrivateDelegateObserver* observer) override; 113 void RemoveObserver(NetworkingPrivateDelegateObserver* observer) override;
112 114
113 // NetworkChangeNotifier::NetworkChangeObserver implementation. 115 // NetworkChangeNotifier::NetworkChangeObserver implementation.
114 void OnNetworkChanged( 116 void OnNetworkChanged(
115 net::NetworkChangeNotifier::ConnectionType type) override; 117 net::NetworkChangeNotifier::ConnectionType type) override;
116 118
117 private: 119 private:
118 // Callbacks to extension api function objects. Keep reference to API object 120 // Callbacks to extension api function objects. Keep reference to API object
119 // and are released in ShutdownOnUIThread. Run when WiFiService calls back 121 // and are released in ShutdownOnUIThread. Run when WiFiService calls back
120 // into NetworkingPrivateServiceClient's callback wrappers. 122 // into NetworkingPrivateServiceClient's callback wrappers.
121 typedef int32 ServiceCallbacksID; 123 typedef int32_t ServiceCallbacksID;
122 struct ServiceCallbacks { 124 struct ServiceCallbacks {
123 ServiceCallbacks(); 125 ServiceCallbacks();
124 ~ServiceCallbacks(); 126 ~ServiceCallbacks();
125 127
126 DictionaryCallback get_properties_callback; 128 DictionaryCallback get_properties_callback;
127 VoidCallback start_connect_callback; 129 VoidCallback start_connect_callback;
128 VoidCallback start_disconnect_callback; 130 VoidCallback start_disconnect_callback;
129 VoidCallback set_properties_callback; 131 VoidCallback set_properties_callback;
130 StringCallback create_network_callback; 132 StringCallback create_network_callback;
131 NetworkListCallback get_visible_networks_callback; 133 NetworkListCallback get_visible_networks_callback;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 scoped_refptr<base::SequencedTaskRunner> task_runner_; 179 scoped_refptr<base::SequencedTaskRunner> task_runner_;
178 // Use WeakPtrs for callbacks from |wifi_service_|. 180 // Use WeakPtrs for callbacks from |wifi_service_|.
179 base::WeakPtrFactory<NetworkingPrivateServiceClient> weak_factory_; 181 base::WeakPtrFactory<NetworkingPrivateServiceClient> weak_factory_;
180 182
181 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateServiceClient); 183 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateServiceClient);
182 }; 184 };
183 185
184 } // namespace extensions 186 } // namespace extensions
185 187
186 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_ CLIENT_H_ 188 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_ CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/networking_private/networking_private_linux.cc ('k') | extensions/browser/api/power/power_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698