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

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

Issue 8528019: Fix components build on Linux when toolkit_views=1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: content_export first Created 9 years, 1 month 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
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 // A device data provider provides data from the device that is used by a 5 // A device data provider provides data from the device that is used by a
6 // NetworkLocationProvider to obtain a position fix. This data may be either 6 // NetworkLocationProvider to obtain a position fix. This data may be either
7 // cell radio data or wifi data. For a given type of data, we use a singleton 7 // cell radio data or wifi data. For a given type of data, we use a singleton
8 // instance of the device data provider, which is used by multiple 8 // instance of the device data provider, which is used by multiple
9 // NetworkLocationProvider objects. 9 // NetworkLocationProvider objects.
10 // 10 //
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 } 340 }
341 341
342 bool StartDataProvider() { 342 bool StartDataProvider() {
343 return impl_->StartDataProvider(); 343 return impl_->StartDataProvider();
344 } 344 }
345 345
346 void StopDataProvider() { 346 void StopDataProvider() {
347 impl_->StopDataProvider(); 347 impl_->StopDataProvider();
348 } 348 }
349 349
350 static CONTENT_EXPORT DeviceDataProviderImplBase<DataType>* 350 CONTENT_EXPORT static DeviceDataProviderImplBase<DataType>*
351 DefaultFactoryFunction(); 351 DefaultFactoryFunction();
352 352
353 // The singleton-like instance of this class. (Not 'true' singleton, as it 353 // The singleton-like instance of this class. (Not 'true' singleton, as it
354 // may go through multiple create/destroy/create cycles per process instance, 354 // may go through multiple create/destroy/create cycles per process instance,
355 // e.g. when under test). 355 // e.g. when under test).
356 CONTENT_EXPORT static DeviceDataProvider* instance_; 356 CONTENT_EXPORT static DeviceDataProvider* instance_;
357 357
358 // The factory function used to create the singleton instance. 358 // The factory function used to create the singleton instance.
359 CONTENT_EXPORT static ImplFactoryFunction factory_function_; 359 CONTENT_EXPORT static ImplFactoryFunction factory_function_;
360 360
361 // The internal implementation. 361 // The internal implementation.
362 scoped_refptr<DeviceDataProviderImplBase<DataType> > impl_; 362 scoped_refptr<DeviceDataProviderImplBase<DataType> > impl_;
363 363
364 DISALLOW_COPY_AND_ASSIGN(DeviceDataProvider); 364 DISALLOW_COPY_AND_ASSIGN(DeviceDataProvider);
365 }; 365 };
366 366
367 typedef DeviceDataProvider<RadioData> RadioDataProvider; 367 typedef DeviceDataProvider<RadioData> RadioDataProvider;
368 typedef DeviceDataProvider<WifiData> WifiDataProvider; 368 typedef DeviceDataProvider<WifiData> WifiDataProvider;
369 369
370 #endif // CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_ 370 #endif // CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/browser/debugger/worker_devtools_manager.h ('k') | content/browser/renderer_host/gtk_window_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698