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

Side by Side Diff: extensions/browser/api/vpn_provider/vpn_service.h

Issue 1236493004: Final batch adding real histogram values for extension events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android compile Created 5 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
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 EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_ 5 #ifndef EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_
6 #define EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_ 6 #define EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "chromeos/network/network_configuration_observer.h" 16 #include "chromeos/network/network_configuration_observer.h"
17 #include "chromeos/network/network_state_handler_observer.h" 17 #include "chromeos/network/network_state_handler_observer.h"
18 #include "components/keyed_service/core/keyed_service.h" 18 #include "components/keyed_service/core/keyed_service.h"
19 #include "extensions/browser/extension_event_histogram_value.h"
19 #include "extensions/browser/extension_registry_observer.h" 20 #include "extensions/browser/extension_registry_observer.h"
20 #include "extensions/common/api/vpn_provider.h" 21 #include "extensions/common/api/vpn_provider.h"
21 22
22 namespace base { 23 namespace base {
23 24
24 class DictionaryValue; 25 class DictionaryValue;
25 class ListValue; 26 class ListValue;
26 27
27 } // namespace base 28 } // namespace base
28 29
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void DestroyConfigurationInternal(VpnConfiguration* configuration); 206 void DestroyConfigurationInternal(VpnConfiguration* configuration);
206 207
207 // Verifies if |active_configuration_| exists and if the extension with id 208 // Verifies if |active_configuration_| exists and if the extension with id
208 // |extension_id| is authorized to access it. 209 // |extension_id| is authorized to access it.
209 bool DoesActiveConfigurationExistAndIsAccessAuthorized( 210 bool DoesActiveConfigurationExistAndIsAccessAuthorized(
210 const std::string& extension_id); 211 const std::string& extension_id);
211 212
212 // Send an event with name |event_name| and arguments |event_args| to the 213 // Send an event with name |event_name| and arguments |event_args| to the
213 // extension with id |extension_id|. 214 // extension with id |extension_id|.
214 void SendSignalToExtension(const std::string& extension_id, 215 void SendSignalToExtension(const std::string& extension_id,
216 extensions::events::HistogramValue histogram_value,
215 const std::string& event_name, 217 const std::string& event_name,
216 scoped_ptr<base::ListValue> event_args); 218 scoped_ptr<base::ListValue> event_args);
217 219
218 // Destroy configurations belonging to the extension. 220 // Destroy configurations belonging to the extension.
219 void DestroyConfigurationsForExtension( 221 void DestroyConfigurationsForExtension(
220 const extensions::Extension* extension); 222 const extensions::Extension* extension);
221 223
222 // Set the active configuration. 224 // Set the active configuration.
223 void SetActiveConfiguration(VpnConfiguration* configuration); 225 void SetActiveConfiguration(VpnConfiguration* configuration);
224 226
(...skipping 16 matching lines...) Expand all
241 StringToConfigurationMap service_path_to_configuration_map_; 243 StringToConfigurationMap service_path_to_configuration_map_;
242 244
243 base::WeakPtrFactory<VpnService> weak_factory_; 245 base::WeakPtrFactory<VpnService> weak_factory_;
244 246
245 DISALLOW_COPY_AND_ASSIGN(VpnService); 247 DISALLOW_COPY_AND_ASSIGN(VpnService);
246 }; 248 };
247 249
248 } // namespace chromeos 250 } // namespace chromeos
249 251
250 #endif // EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_ 252 #endif // EXTENSIONS_BROWSER_API_VPN_PROVIDER_VPN_SERVICE_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/system_info/system_info_api.cc ('k') | extensions/browser/api/vpn_provider/vpn_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698