Replace more ObserverList with base::ObserverList.
This is everything but the chrome directory CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel TBR=zelidrag@chromium.org (chromeos) TBR=keybuk@chromium.org (device/bluetooth) Review URL: https://codereview.chromium.org/1162943002 Cr-Commit-Position: refs/heads/master@{#332626}
This commit is contained in:
android_webview/browser
apps
ash
cc
chromeos
accelerometer
audio
cert_loader.hdbus
amplifier_client.ccap_manager_client.ccaudio_dsp_client.ccbluetooth_adapter_client.ccbluetooth_device_client.ccbluetooth_gatt_characteristic_client.ccbluetooth_gatt_descriptor_client.ccbluetooth_gatt_service_client.ccbluetooth_input_client.ccbluetooth_le_advertising_manager_client.ccbluetooth_media_client.ccbluetooth_media_transport_client.cccras_audio_client.ccfake_bluetooth_adapter_client.hfake_bluetooth_device_client.hfake_bluetooth_gatt_characteristic_client.hfake_bluetooth_gatt_descriptor_client.hfake_bluetooth_gatt_service_client.hfake_bluetooth_input_client.hfake_bluetooth_media_client.hfake_bluetooth_media_transport_client.hfake_cras_audio_client.hfake_nfc_adapter_client.hfake_nfc_device_client.hfake_nfc_manager_client.hfake_nfc_record_client.hfake_nfc_tag_client.hfake_power_manager_client.hfake_session_manager_client.hfake_shill_manager_client.hfake_update_engine_client.hleadership_daemon_manager_client.ccmetronome_client.ccnfc_adapter_client.ccnfc_device_client.ccnfc_manager_client.ccnfc_record_client.ccnfc_tag_client.ccpeer_daemon_manager_client.ccpower_manager_client.ccprivet_daemon_manager_client.ccsession_manager_client.ccshill_client_helper.hsystem_clock_client.ccupdate_engine_client.cc
disks
login
network
client_cert_resolver.hmanaged_network_configuration_handler_impl.hnetwork_configuration_handler.hnetwork_connection_handler.hnetwork_profile_handler.hnetwork_sms_handler.hnetwork_state_handler.h
settings
components
autofill
bookmarks
content_settings
copresence
cronet
data_reduction_proxy
core
dom_distiller
enhanced_bookmarks
favicon
core
gcm_driver
history
infobars
invalidation
metrics
ownership
pairing
bluetooth_controller_pairing_controller.hbluetooth_host_pairing_controller.hfake_controller_pairing_controller.hfake_host_pairing_controller.h
password_manager
core
policy
core
proximity_auth
renderer_context_menu
search_engines
search_provider_logos
signin
core
storage_monitor
sync_driver
translate
content
browser
ui
undo
update_client
user_manager
view_manager
wallpaper
content
browser
android
in_process
appcache
compositor
devtools
dom_storage
download
gpu
loader
media
notification_service_impl.hpower_profiler
renderer_host
service_worker
embedded_worker_instance.hservice_worker_context_core.ccservice_worker_context_core.hservice_worker_context_wrapper.ccservice_worker_context_wrapper.hservice_worker_registration.hservice_worker_version.h
shared_worker
web_contents
child
common
public
renderer
device
bluetooth
bluetooth_adapter.hbluetooth_advertisement.hbluetooth_audio_sink_chromeos.hbluetooth_task_manager_win.h
core
hid
media_transfer_protocol
nfc
usb
extensions
browser
api
audio
networking_private
printer_provider_internal
storage
app_window
extension_host.hextension_icon_image.hextension_pref_value_map.hextension_prefs.hextension_registry.hguest_view
web_view
components
native_app_window
renderer
gin/modules
google_apis
gpu/command_buffer/service
ios
ipc
jingle/notifier/listener
media
audio
base
mojo/common
net
android
network_change_notifier_android_unittest.ccnetwork_change_notifier_delegate_android.ccnetwork_change_notifier_delegate_android.h
base
cert
cert_database.hcert_database_android.cccert_database_ios.cccert_database_mac.cccert_database_nss.cccert_database_openssl.cccert_database_win.ccnss_cert_database.cc
dns
log
proxy
polling_proxy_config_service.ccproxy_config_service_android.ccproxy_config_service_linux.hproxy_config_service_mac.hproxy_service_unittest.cc
ssl
url_request
ppapi
remoting
client
host
signaling
test
storage/browser
sync
engine
internal_api
public
sync_encryption_handler_impl.hsync_manager_impl.hsync_rollback_manager_base.ccsync_rollback_manager_base.hjs
sessions
directory_type_debug_info_emitter.ccdirectory_type_debug_info_emitter.hmodel_type_registry.hsync_session_context.h
test
third_party/mojo/src/mojo/edk/js
tools/valgrind/gtest_exclude
ui
android
app_list
app_list_item.happ_list_item_list.happ_list_model.hfolder_image.hpagination_model.h
search
search_box_model.hsearch_result.hspeech_ui_model.htest
views
aura
base
ime
models
user_activity
chromeos
compositor
display
events
devices
ozone
platform
gfx
gl
keyboard
message_center
native_theme
ozone
platform
snapshot
views
animation
controls
focus
widget
win
wm
win8/metro_driver/ime
@ -53,7 +53,7 @@ class AwPrefStore : public PersistentPrefStore {
|
|||||||
// Stores the preference values.
|
// Stores the preference values.
|
||||||
PrefValueMap prefs_;
|
PrefValueMap prefs_;
|
||||||
|
|
||||||
ObserverList<PrefStore::Observer, true> observers_;
|
base::ObserverList<PrefStore::Observer, true> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(AwPrefStore);
|
DISALLOW_COPY_AND_ASSIGN(AwPrefStore);
|
||||||
};
|
};
|
||||||
|
@ -81,7 +81,7 @@ class AppLifetimeMonitor : public KeyedService,
|
|||||||
|
|
||||||
content::NotificationRegistrar registrar_;
|
content::NotificationRegistrar registrar_;
|
||||||
Profile* profile_;
|
Profile* profile_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(AppLifetimeMonitor);
|
DISALLOW_COPY_AND_ASSIGN(AppLifetimeMonitor);
|
||||||
};
|
};
|
||||||
|
@ -179,7 +179,7 @@ class ASH_EXPORT ScreenOrientationController
|
|||||||
gfx::Display::Rotation current_rotation_;
|
gfx::Display::Rotation current_rotation_;
|
||||||
|
|
||||||
// Rotation Lock observers.
|
// Rotation Lock observers.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Tracks all windows that have requested a lock, as well as the requested
|
// Tracks all windows that have requested a lock, as well as the requested
|
||||||
// orientation.
|
// orientation.
|
||||||
|
@ -148,7 +148,7 @@ class ASH_EXPORT DesktopBackgroundController
|
|||||||
|
|
||||||
SkColor background_color_;
|
SkColor background_color_;
|
||||||
|
|
||||||
ObserverList<DesktopBackgroundControllerObserver> observers_;
|
base::ObserverList<DesktopBackgroundControllerObserver> observers_;
|
||||||
|
|
||||||
// The current wallpaper.
|
// The current wallpaper.
|
||||||
scoped_ptr<wallpaper::WallpaperResizer> current_wallpaper_;
|
scoped_ptr<wallpaper::WallpaperResizer> current_wallpaper_;
|
||||||
|
@ -207,7 +207,7 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver,
|
|||||||
// The mapping from display ID to its window tree host.
|
// The mapping from display ID to its window tree host.
|
||||||
WindowTreeHostMap window_tree_hosts_;
|
WindowTreeHostMap window_tree_hosts_;
|
||||||
|
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Store the primary window tree host temporarily while replacing
|
// Store the primary window tree host temporarily while replacing
|
||||||
// display.
|
// display.
|
||||||
|
@ -52,7 +52,7 @@ class ASH_EXPORT ScreenAsh : public gfx::Screen {
|
|||||||
// It simply has a copy of the displays.
|
// It simply has a copy of the displays.
|
||||||
gfx::Screen* CloneForShutdown();
|
gfx::Screen* CloneForShutdown();
|
||||||
|
|
||||||
ObserverList<gfx::DisplayObserver> observers_;
|
base::ObserverList<gfx::DisplayObserver> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(ScreenAsh);
|
DISALLOW_COPY_AND_ASSIGN(ScreenAsh);
|
||||||
};
|
};
|
||||||
|
@ -71,10 +71,10 @@ class ASH_EXPORT FirstRunHelper {
|
|||||||
virtual gfx::Rect GetHelpButtonBounds() = 0;
|
virtual gfx::Rect GetHelpButtonBounds() = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ObserverList<Observer>& observers() { return observers_; }
|
base::ObserverList<Observer>& observers() { return observers_; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(FirstRunHelper);
|
DISALLOW_COPY_AND_ASSIGN(FirstRunHelper);
|
||||||
};
|
};
|
||||||
|
@ -98,7 +98,7 @@ class ShelfButtonAnimation : public gfx::AnimationDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gfx::ThrobAnimation animation_;
|
gfx::ThrobAnimation animation_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(ShelfButtonAnimation);
|
DISALLOW_COPY_AND_ASSIGN(ShelfButtonAnimation);
|
||||||
};
|
};
|
||||||
|
@ -75,7 +75,7 @@ class ASH_EXPORT ShelfItemDelegateManager : public ShelfModelObserver {
|
|||||||
|
|
||||||
ShelfIDToItemDelegateMap id_to_item_delegate_map_;
|
ShelfIDToItemDelegateMap id_to_item_delegate_map_;
|
||||||
|
|
||||||
ObserverList<ShelfItemDelegateManagerObserver> observers_;
|
base::ObserverList<ShelfItemDelegateManagerObserver> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(ShelfItemDelegateManager);
|
DISALLOW_COPY_AND_ASSIGN(ShelfItemDelegateManager);
|
||||||
};
|
};
|
||||||
|
@ -376,7 +376,7 @@ class ASH_EXPORT ShelfLayoutManager
|
|||||||
// EventFilter used to detect when user issues a gesture on a bezel sensor.
|
// EventFilter used to detect when user issues a gesture on a bezel sensor.
|
||||||
scoped_ptr<ShelfBezelEventFilter> bezel_event_filter_;
|
scoped_ptr<ShelfBezelEventFilter> bezel_event_filter_;
|
||||||
|
|
||||||
ObserverList<ShelfLayoutManagerObserver> observers_;
|
base::ObserverList<ShelfLayoutManagerObserver> observers_;
|
||||||
|
|
||||||
// The shelf reacts to gesture-drags, and can be set to auto-hide for certain
|
// The shelf reacts to gesture-drags, and can be set to auto-hide for certain
|
||||||
// gestures. Some shelf behaviour (e.g. visibility state, background color
|
// gestures. Some shelf behaviour (e.g. visibility state, background color
|
||||||
|
@ -91,7 +91,7 @@ class ASH_EXPORT ShelfModel {
|
|||||||
|
|
||||||
ShelfItems items_;
|
ShelfItems items_;
|
||||||
Status status_;
|
Status status_;
|
||||||
ObserverList<ShelfModelObserver> observers_;
|
base::ObserverList<ShelfModelObserver> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(ShelfModel);
|
DISALLOW_COPY_AND_ASSIGN(ShelfModel);
|
||||||
};
|
};
|
||||||
|
@ -372,7 +372,7 @@ class ASH_EXPORT ShelfView : public views::View,
|
|||||||
|
|
||||||
scoped_ptr<views::MenuRunner> launcher_menu_runner_;
|
scoped_ptr<views::MenuRunner> launcher_menu_runner_;
|
||||||
|
|
||||||
ObserverList<ShelfIconObserver> observers_;
|
base::ObserverList<ShelfIconObserver> observers_;
|
||||||
|
|
||||||
// Amount content is inset on the left edge (or top edge for vertical
|
// Amount content is inset on the left edge (or top edge for vertical
|
||||||
// alignment).
|
// alignment).
|
||||||
|
@ -757,7 +757,7 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
|
|||||||
::wm::CursorManager cursor_manager_;
|
::wm::CursorManager cursor_manager_;
|
||||||
#endif // defined(OS_CHROMEOS)
|
#endif // defined(OS_CHROMEOS)
|
||||||
|
|
||||||
ObserverList<ShellObserver> observers_;
|
base::ObserverList<ShellObserver> observers_;
|
||||||
|
|
||||||
// For testing only: simulate that a modal window is open
|
// For testing only: simulate that a modal window is open
|
||||||
bool simulate_modal_window_open_for_testing_;
|
bool simulate_modal_window_open_for_testing_;
|
||||||
|
@ -91,7 +91,7 @@ class ASH_EXPORT VPNDelegate {
|
|||||||
void NotifyObservers();
|
void NotifyObservers();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ObserverList<Observer, true> observer_list_;
|
base::ObserverList<Observer, true> observer_list_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(VPNDelegate);
|
DISALLOW_COPY_AND_ASSIGN(VPNDelegate);
|
||||||
};
|
};
|
||||||
|
@ -139,7 +139,7 @@ class ASH_EXPORT PowerStatus : public chromeos::PowerManagerClient::Observer {
|
|||||||
// Overriden from PowerManagerClient::Observer.
|
// Overriden from PowerManagerClient::Observer.
|
||||||
void PowerChanged(const power_manager::PowerSupplyProperties& proto) override;
|
void PowerChanged(const power_manager::PowerSupplyProperties& proto) override;
|
||||||
|
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Current state.
|
// Current state.
|
||||||
power_manager::PowerSupplyProperties proto_;
|
power_manager::PowerSupplyProperties proto_;
|
||||||
|
@ -150,27 +150,28 @@ class ASH_EXPORT SystemTrayNotifier {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ObserverList<AccessibilityObserver> accessibility_observers_;
|
base::ObserverList<AccessibilityObserver> accessibility_observers_;
|
||||||
ObserverList<AudioObserver> audio_observers_;
|
base::ObserverList<AudioObserver> audio_observers_;
|
||||||
ObserverList<BluetoothObserver> bluetooth_observers_;
|
base::ObserverList<BluetoothObserver> bluetooth_observers_;
|
||||||
ObserverList<ClockObserver> clock_observers_;
|
base::ObserverList<ClockObserver> clock_observers_;
|
||||||
ObserverList<IMEObserver> ime_observers_;
|
base::ObserverList<IMEObserver> ime_observers_;
|
||||||
ObserverList<LocaleObserver> locale_observers_;
|
base::ObserverList<LocaleObserver> locale_observers_;
|
||||||
ObserverList<TracingObserver> tracing_observers_;
|
base::ObserverList<TracingObserver> tracing_observers_;
|
||||||
ObserverList<UpdateObserver> update_observers_;
|
base::ObserverList<UpdateObserver> update_observers_;
|
||||||
ObserverList<UserObserver> user_observers_;
|
base::ObserverList<UserObserver> user_observers_;
|
||||||
#if defined(OS_CHROMEOS)
|
#if defined(OS_CHROMEOS)
|
||||||
ObserverList<LogoutButtonObserver> logout_button_observers_;
|
base::ObserverList<LogoutButtonObserver> logout_button_observers_;
|
||||||
ObserverList<SessionLengthLimitObserver> session_length_limit_observers_;
|
base::ObserverList<SessionLengthLimitObserver>
|
||||||
ObserverList<NetworkObserver> network_observers_;
|
session_length_limit_observers_;
|
||||||
ObserverList<NetworkPortalDetectorObserver>
|
base::ObserverList<NetworkObserver> network_observers_;
|
||||||
|
base::ObserverList<NetworkPortalDetectorObserver>
|
||||||
network_portal_detector_observers_;
|
network_portal_detector_observers_;
|
||||||
ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_;
|
base::ObserverList<EnterpriseDomainObserver> enterprise_domain_observers_;
|
||||||
ObserverList<MediaCaptureObserver> media_capture_observers_;
|
base::ObserverList<MediaCaptureObserver> media_capture_observers_;
|
||||||
ObserverList<ScreenCaptureObserver> screen_capture_observers_;
|
base::ObserverList<ScreenCaptureObserver> screen_capture_observers_;
|
||||||
ObserverList<ScreenShareObserver> screen_share_observers_;
|
base::ObserverList<ScreenShareObserver> screen_share_observers_;
|
||||||
ObserverList<LastWindowClosedObserver> last_window_closed_observers_;
|
base::ObserverList<LastWindowClosedObserver> last_window_closed_observers_;
|
||||||
ObserverList<VirtualKeyboardObserver> virtual_keyboard_observers_;
|
base::ObserverList<VirtualKeyboardObserver> virtual_keyboard_observers_;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier);
|
DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier);
|
||||||
|
@ -55,7 +55,7 @@ class ASH_EXPORT UserAccountsDelegate {
|
|||||||
void NotifyAccountListChanged();
|
void NotifyAccountListChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(UserAccountsDelegate);
|
DISALLOW_COPY_AND_ASSIGN(UserAccountsDelegate);
|
||||||
};
|
};
|
||||||
|
@ -76,7 +76,8 @@ class TestShellDelegate : public ShellDelegate {
|
|||||||
scoped_ptr<content::BrowserContext> active_browser_context_;
|
scoped_ptr<content::BrowserContext> active_browser_context_;
|
||||||
scoped_ptr<app_list::AppListViewDelegate> app_list_view_delegate_;
|
scoped_ptr<app_list::AppListViewDelegate> app_list_view_delegate_;
|
||||||
|
|
||||||
ObserverList<ash::VirtualKeyboardStateObserver> keyboard_state_observer_list_;
|
base::ObserverList<ash::VirtualKeyboardStateObserver>
|
||||||
|
keyboard_state_observer_list_;
|
||||||
|
|
||||||
TestSessionStateDelegate* test_session_state_delegate_; // Not owned.
|
TestSessionStateDelegate* test_session_state_delegate_; // Not owned.
|
||||||
|
|
||||||
|
@ -324,7 +324,7 @@ class ASH_EXPORT DockedWindowLayoutManager
|
|||||||
scoped_ptr<DockedBackgroundWidget> background_widget_;
|
scoped_ptr<DockedBackgroundWidget> background_widget_;
|
||||||
|
|
||||||
// Observers of dock bounds changes.
|
// Observers of dock bounds changes.
|
||||||
ObserverList<DockedWindowLayoutManagerObserver> observer_list_;
|
base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager);
|
DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager);
|
||||||
};
|
};
|
||||||
|
@ -283,7 +283,7 @@ class ASH_EXPORT LockStateController : public aura::WindowTreeHostObserver,
|
|||||||
|
|
||||||
scoped_ptr<LockStateControllerDelegate> delegate_;
|
scoped_ptr<LockStateControllerDelegate> delegate_;
|
||||||
|
|
||||||
ObserverList<LockStateObserver> observers_;
|
base::ObserverList<LockStateObserver> observers_;
|
||||||
|
|
||||||
// The current login status, or original login status from before we locked.
|
// The current login status, or original login status from before we locked.
|
||||||
user::LoginStatus login_status_;
|
user::LoginStatus login_status_;
|
||||||
|
@ -88,7 +88,7 @@ class ASH_EXPORT VideoDetector : public aura::EnvObserver,
|
|||||||
// Maps from a window that we're tracking to information about it.
|
// Maps from a window that we're tracking to information about it.
|
||||||
WindowInfoMap window_infos_;
|
WindowInfoMap window_infos_;
|
||||||
|
|
||||||
ObserverList<VideoDetectorObserver> observers_;
|
base::ObserverList<VideoDetectorObserver> observers_;
|
||||||
|
|
||||||
// Last time at which we notified observers that a video was playing.
|
// Last time at which we notified observers that a video was playing.
|
||||||
base::TimeTicks last_observer_notification_time_;
|
base::TimeTicks last_observer_notification_time_;
|
||||||
|
@ -370,7 +370,7 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
|
|||||||
// restored when only this one window gets shown.
|
// restored when only this one window gets shown.
|
||||||
scoped_ptr<gfx::Rect> pre_auto_manage_window_bounds_;
|
scoped_ptr<gfx::Rect> pre_auto_manage_window_bounds_;
|
||||||
|
|
||||||
ObserverList<WindowStateObserver> observer_list_;
|
base::ObserverList<WindowStateObserver> observer_list_;
|
||||||
|
|
||||||
// True to ignore a property change event to avoid reentrance in
|
// True to ignore a property change event to avoid reentrance in
|
||||||
// UpdateWindowStateType()
|
// UpdateWindowStateType()
|
||||||
|
@ -215,8 +215,8 @@ class CC_EXPORT LayerAnimationController
|
|||||||
|
|
||||||
base::TimeTicks last_tick_time_;
|
base::TimeTicks last_tick_time_;
|
||||||
|
|
||||||
ObserverList<LayerAnimationValueObserver> value_observers_;
|
base::ObserverList<LayerAnimationValueObserver> value_observers_;
|
||||||
ObserverList<LayerAnimationEventObserver> event_observers_;
|
base::ObserverList<LayerAnimationEventObserver> event_observers_;
|
||||||
|
|
||||||
LayerAnimationValueProvider* value_provider_;
|
LayerAnimationValueProvider* value_provider_;
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ class CC_SURFACES_EXPORT SurfaceManager {
|
|||||||
|
|
||||||
typedef base::hash_map<SurfaceId, Surface*> SurfaceMap;
|
typedef base::hash_map<SurfaceId, Surface*> SurfaceMap;
|
||||||
SurfaceMap surface_map_;
|
SurfaceMap surface_map_;
|
||||||
ObserverList<SurfaceDamageObserver> observer_list_;
|
base::ObserverList<SurfaceDamageObserver> observer_list_;
|
||||||
base::ThreadChecker thread_checker_;
|
base::ThreadChecker thread_checker_;
|
||||||
|
|
||||||
// List of surfaces to be destroyed, along with what sequences they're still
|
// List of surfaces to be destroyed, along with what sequences they're still
|
||||||
|
@ -212,7 +212,7 @@ void AccelerometerReader::RemoveObserver(Observer* observer) {
|
|||||||
|
|
||||||
AccelerometerReader::AccelerometerReader()
|
AccelerometerReader::AccelerometerReader()
|
||||||
: configuration_(new AccelerometerReader::Configuration()),
|
: configuration_(new AccelerometerReader::Configuration()),
|
||||||
observers_(new ObserverListThreadSafe<Observer>()),
|
observers_(new base::ObserverListThreadSafe<Observer>()),
|
||||||
weak_factory_(this) {
|
weak_factory_(this) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ class CHROMEOS_EXPORT AccelerometerReader {
|
|||||||
// The accelerometer configuration.
|
// The accelerometer configuration.
|
||||||
scoped_refptr<Configuration> configuration_;
|
scoped_refptr<Configuration> configuration_;
|
||||||
|
|
||||||
scoped_refptr<ObserverListThreadSafe<Observer>> observers_;
|
scoped_refptr<base::ObserverListThreadSafe<Observer>> observers_;
|
||||||
|
|
||||||
base::WeakPtrFactory<AccelerometerReader> weak_factory_;
|
base::WeakPtrFactory<AccelerometerReader> weak_factory_;
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ class CHROMEOS_EXPORT AudioDevicesPrefHandlerImpl
|
|||||||
PrefService* local_state_; // not owned
|
PrefService* local_state_; // not owned
|
||||||
|
|
||||||
PrefChangeRegistrar pref_change_registrar_;
|
PrefChangeRegistrar pref_change_registrar_;
|
||||||
ObserverList<AudioPrefObserver> observers_;
|
base::ObserverList<AudioPrefObserver> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(AudioDevicesPrefHandlerImpl);
|
DISALLOW_COPY_AND_ASSIGN(AudioDevicesPrefHandlerImpl);
|
||||||
};
|
};
|
||||||
|
@ -306,7 +306,7 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
|
|||||||
void NotifyActiveNodeChanged(bool is_input);
|
void NotifyActiveNodeChanged(bool is_input);
|
||||||
|
|
||||||
scoped_refptr<AudioDevicesPrefHandler> audio_pref_handler_;
|
scoped_refptr<AudioDevicesPrefHandler> audio_pref_handler_;
|
||||||
ObserverList<AudioObserver> observers_;
|
base::ObserverList<AudioObserver> observers_;
|
||||||
|
|
||||||
// Audio data and state.
|
// Audio data and state.
|
||||||
AudioDeviceMap audio_devices_;
|
AudioDeviceMap audio_devices_;
|
||||||
|
@ -108,7 +108,7 @@ class CHROMEOS_EXPORT CertLoader : public net::CertDatabase::Observer {
|
|||||||
void OnCertAdded(const net::X509Certificate* cert) override;
|
void OnCertAdded(const net::X509Certificate* cert) override;
|
||||||
void OnCertRemoved(const net::X509Certificate* cert) override;
|
void OnCertRemoved(const net::X509Certificate* cert) override;
|
||||||
|
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Flags describing current CertLoader state.
|
// Flags describing current CertLoader state.
|
||||||
bool certificates_loaded_;
|
bool certificates_loaded_;
|
||||||
|
@ -86,7 +86,7 @@ class AmplifierClientImpl : public AmplifierClient {
|
|||||||
bool signal_connected_;
|
bool signal_connected_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Note: This should remain the last member so it'll be destroyed and
|
// Note: This should remain the last member so it'll be destroyed and
|
||||||
// invalidate its weak pointers before any other members are destroyed.
|
// invalidate its weak pointers before any other members are destroyed.
|
||||||
|
@ -111,7 +111,7 @@ class ApManagerClientImpl : public ApManagerClient,
|
|||||||
dbus::Response* response);
|
dbus::Response* response);
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
base::WeakPtrFactory<ApManagerClientImpl> weak_ptr_factory_;
|
base::WeakPtrFactory<ApManagerClientImpl> weak_ptr_factory_;
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ class AudioDspClientImpl : public AudioDspClient {
|
|||||||
bool signal_connected_;
|
bool signal_connected_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Note: This should remain the last member so it'll be destroyed and
|
// Note: This should remain the last member so it'll be destroyed and
|
||||||
// invalidate its weak pointers before any other members are destroyed.
|
// invalidate its weak pointers before any other members are destroyed.
|
||||||
|
@ -344,7 +344,7 @@ class BluetoothAdapterClientImpl
|
|||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<BluetoothAdapterClient::Observer> observers_;
|
base::ObserverList<BluetoothAdapterClient::Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -376,7 +376,7 @@ class BluetoothDeviceClientImpl
|
|||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<BluetoothDeviceClient::Observer> observers_;
|
base::ObserverList<BluetoothDeviceClient::Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -299,7 +299,7 @@ class BluetoothGattCharacteristicClientImpl
|
|||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<BluetoothGattCharacteristicClient::Observer> observers_;
|
base::ObserverList<BluetoothGattCharacteristicClient::Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -241,7 +241,7 @@ class BluetoothGattDescriptorClientImpl
|
|||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<BluetoothGattDescriptorClient::Observer> observers_;
|
base::ObserverList<BluetoothGattDescriptorClient::Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -127,7 +127,7 @@ class BluetoothGattServiceClientImpl : public BluetoothGattServiceClient,
|
|||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<BluetoothGattServiceClient::Observer> observers_;
|
base::ObserverList<BluetoothGattServiceClient::Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -113,7 +113,7 @@ class BluetoothInputClientImpl
|
|||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<BluetoothInputClient::Observer> observers_;
|
base::ObserverList<BluetoothInputClient::Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -165,7 +165,7 @@ class BluetoothAdvertisementManagerClientImpl
|
|||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<BluetoothLEAdvertisingManagerClient::Observer> observers_;
|
base::ObserverList<BluetoothLEAdvertisingManagerClient::Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -215,7 +215,7 @@ class BluetoothMediaClientImpl
|
|||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<BluetoothMediaClient::Observer> observers_;
|
base::ObserverList<BluetoothMediaClient::Observer> observers_;
|
||||||
|
|
||||||
base::WeakPtrFactory<BluetoothMediaClientImpl> weak_ptr_factory_;
|
base::WeakPtrFactory<BluetoothMediaClientImpl> weak_ptr_factory_;
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ class BluetoothMediaTransportClientImpl
|
|||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<BluetoothMediaTransportClient::Observer> observers_;
|
base::ObserverList<BluetoothMediaTransportClient::Observer> observers_;
|
||||||
|
|
||||||
base::WeakPtrFactory<BluetoothMediaTransportClientImpl> weak_ptr_factory_;
|
base::WeakPtrFactory<BluetoothMediaTransportClientImpl> weak_ptr_factory_;
|
||||||
|
|
||||||
|
@ -415,7 +415,7 @@ class CrasAudioClientImpl : public CrasAudioClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dbus::ObjectProxy* cras_proxy_;
|
dbus::ObjectProxy* cras_proxy_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Note: This should remain the last member so it'll be destroyed and
|
// Note: This should remain the last member so it'll be destroyed and
|
||||||
// invalidate its weak pointers before any other members are destroyed.
|
// invalidate its weak pointers before any other members are destroyed.
|
||||||
|
@ -90,7 +90,7 @@ class CHROMEOS_EXPORT FakeBluetoothAdapterClient
|
|||||||
void PostDelayedTask(const base::Closure& callback);
|
void PostDelayedTask(const base::Closure& callback);
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Static properties we return.
|
// Static properties we return.
|
||||||
scoped_ptr<Properties> properties_;
|
scoped_ptr<Properties> properties_;
|
||||||
|
@ -244,7 +244,7 @@ class CHROMEOS_EXPORT FakeBluetoothDeviceClient
|
|||||||
BluetoothProfileServiceProvider::Delegate::Status status);
|
BluetoothProfileServiceProvider::Delegate::Status status);
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Static properties we return.
|
// Static properties we return.
|
||||||
typedef std::map<const dbus::ObjectPath, Properties *> PropertiesMap;
|
typedef std::map<const dbus::ObjectPath, Properties *> PropertiesMap;
|
||||||
|
@ -178,7 +178,7 @@ class CHROMEOS_EXPORT FakeBluetoothGattCharacteristicClient
|
|||||||
std::map<std::string, DelayedCallback*> action_extra_requests_;
|
std::map<std::string, DelayedCallback*> action_extra_requests_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -87,7 +87,7 @@ class CHROMEOS_EXPORT FakeBluetoothGattDescriptorClient
|
|||||||
PropertiesMap properties_;
|
PropertiesMap properties_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -90,7 +90,7 @@ class CHROMEOS_EXPORT FakeBluetoothGattServiceClient
|
|||||||
std::string heart_rate_service_path_;
|
std::string heart_rate_service_path_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -55,7 +55,7 @@ class CHROMEOS_EXPORT FakeBluetoothInputClient
|
|||||||
PropertiesMap properties_map_;
|
PropertiesMap properties_map_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(FakeBluetoothInputClient);
|
DISALLOW_COPY_AND_ASSIGN(FakeBluetoothInputClient);
|
||||||
};
|
};
|
||||||
|
@ -66,7 +66,7 @@ class CHROMEOS_EXPORT FakeBluetoothMediaClient : public BluetoothMediaClient {
|
|||||||
endpoints_;
|
endpoints_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<BluetoothMediaClient::Observer> observers_;
|
base::ObserverList<BluetoothMediaClient::Observer> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient);
|
DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient);
|
||||||
};
|
};
|
||||||
|
@ -138,7 +138,7 @@ class CHROMEOS_EXPORT FakeBluetoothMediaTransportClient
|
|||||||
// corresponding endpoint path when GetProperties() is called.
|
// corresponding endpoint path when GetProperties() is called.
|
||||||
std::map<dbus::ObjectPath, dbus::ObjectPath> transport_to_endpoint_map_;
|
std::map<dbus::ObjectPath, dbus::ObjectPath> transport_to_endpoint_map_;
|
||||||
|
|
||||||
ObserverList<BluetoothMediaTransportClient::Observer> observers_;
|
base::ObserverList<BluetoothMediaTransportClient::Observer> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaTransportClient);
|
DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaTransportClient);
|
||||||
};
|
};
|
||||||
|
@ -50,7 +50,7 @@ class CHROMEOS_EXPORT FakeCrasAudioClient : public CrasAudioClient {
|
|||||||
AudioNodeList node_list_;
|
AudioNodeList node_list_;
|
||||||
uint64 active_input_node_id_;
|
uint64 active_input_node_id_;
|
||||||
uint64 active_output_node_id_;
|
uint64 active_output_node_id_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(FakeCrasAudioClient);
|
DISALLOW_COPY_AND_ASSIGN(FakeCrasAudioClient);
|
||||||
};
|
};
|
||||||
|
@ -90,7 +90,7 @@ class CHROMEOS_EXPORT FakeNfcAdapterClient : public NfcAdapterClient {
|
|||||||
const std::string& property_name);
|
const std::string& property_name);
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Fake properties that are returned for the emulated adapters.
|
// Fake properties that are returned for the emulated adapters.
|
||||||
scoped_ptr<Properties> properties_;
|
scoped_ptr<Properties> properties_;
|
||||||
|
@ -106,7 +106,7 @@ class CHROMEOS_EXPORT FakeNfcDeviceClient : public NfcDeviceClient {
|
|||||||
void HandleSimulationTimeout();
|
void HandleSimulationTimeout();
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Fake properties that are returned for the emulated device.
|
// Fake properties that are returned for the emulated device.
|
||||||
scoped_ptr<Properties> properties_;
|
scoped_ptr<Properties> properties_;
|
||||||
|
@ -52,7 +52,7 @@ class CHROMEOS_EXPORT FakeNfcManagerClient : public NfcManagerClient {
|
|||||||
void OnPropertyChanged(const std::string& property_name);
|
void OnPropertyChanged(const std::string& property_name);
|
||||||
|
|
||||||
// List of observers interested in event notifications.
|
// List of observers interested in event notifications.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Set containing the currently simulated adapters.
|
// Set containing the currently simulated adapters.
|
||||||
std::set<dbus::ObjectPath> adapters_;
|
std::set<dbus::ObjectPath> adapters_;
|
||||||
|
@ -75,7 +75,7 @@ class CHROMEOS_EXPORT FakeNfcRecordClient : public NfcRecordClient {
|
|||||||
bool tag_records_visible_;
|
bool tag_records_visible_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Fake properties that are returned for the fake records.
|
// Fake properties that are returned for the fake records.
|
||||||
scoped_ptr<Properties> device_smart_poster_record_properties_;
|
scoped_ptr<Properties> device_smart_poster_record_properties_;
|
||||||
|
@ -96,7 +96,7 @@ class CHROMEOS_EXPORT FakeNfcTagClient : public NfcTagClient {
|
|||||||
void HandleSimulationTimeout();
|
void HandleSimulationTimeout();
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Fake properties that are returned for the emulated tag.
|
// Fake properties that are returned for the emulated tag.
|
||||||
scoped_ptr<Properties> properties_;
|
scoped_ptr<Properties> properties_;
|
||||||
|
@ -72,7 +72,7 @@ class FakePowerManagerClient : public PowerManagerClient {
|
|||||||
// readiness.
|
// readiness.
|
||||||
void HandleSuspendReadiness();
|
void HandleSuspendReadiness();
|
||||||
|
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Last policy passed to SetPolicy().
|
// Last policy passed to SetPolicy().
|
||||||
power_manager::PowerManagementPolicy policy_;
|
power_manager::PowerManagementPolicy policy_;
|
||||||
|
@ -102,7 +102,7 @@ class FakeSessionManagerClient : public SessionManagerClient {
|
|||||||
std::string device_policy_;
|
std::string device_policy_;
|
||||||
std::map<std::string, std::string> user_policies_;
|
std::map<std::string, std::string> user_policies_;
|
||||||
std::map<std::string, std::string> device_local_account_policy_;
|
std::map<std::string, std::string> device_local_account_policy_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
SessionManagerClient::ActiveSessionsMap user_sessions_;
|
SessionManagerClient::ActiveSessionsMap user_sessions_;
|
||||||
std::vector<std::string> server_backed_state_keys_;
|
std::vector<std::string> server_backed_state_keys_;
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ class CHROMEOS_EXPORT FakeShillManagerClient
|
|||||||
typedef std::map<std::string, ShillPropertyMap> DevicePropertyMap;
|
typedef std::map<std::string, ShillPropertyMap> DevicePropertyMap;
|
||||||
DevicePropertyMap shill_device_property_map_;
|
DevicePropertyMap shill_device_property_map_;
|
||||||
|
|
||||||
ObserverList<ShillPropertyChangedObserver> observer_list_;
|
base::ObserverList<ShillPropertyChangedObserver> observer_list_;
|
||||||
|
|
||||||
// Track the default service for signaling Manager.DefaultService.
|
// Track the default service for signaling Manager.DefaultService.
|
||||||
std::string default_service_;
|
std::string default_service_;
|
||||||
|
@ -76,7 +76,7 @@ class FakeUpdateEngineClient : public UpdateEngineClient {
|
|||||||
int can_rollback_call_count() const { return can_rollback_call_count_; }
|
int can_rollback_call_count() const { return can_rollback_call_count_; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
std::queue<UpdateEngineClient::Status> status_queue_;
|
std::queue<UpdateEngineClient::Status> status_queue_;
|
||||||
UpdateEngineClient::Status default_status_;
|
UpdateEngineClient::Status default_status_;
|
||||||
UpdateEngineClient::UpdateCheckResult update_check_result_;
|
UpdateEngineClient::UpdateCheckResult update_check_result_;
|
||||||
|
@ -93,7 +93,7 @@ class LeadershipDaemonManagerClientImpl
|
|||||||
dbus::Response* response);
|
dbus::Response* response);
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
base::WeakPtrFactory<LeadershipDaemonManagerClientImpl> weak_ptr_factory_;
|
base::WeakPtrFactory<LeadershipDaemonManagerClientImpl> weak_ptr_factory_;
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ class MetronomeClientImpl : public MetronomeClient {
|
|||||||
bool signal_connected_;
|
bool signal_connected_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Note: This should remain the last member so it'll be destroyed and
|
// Note: This should remain the last member so it'll be destroyed and
|
||||||
// invalidate its weak pointers before any other members are destroyed.
|
// invalidate its weak pointers before any other members are destroyed.
|
||||||
@ -166,7 +166,7 @@ class MetronomeClientFakeImpl : public MetronomeClient {
|
|||||||
base::RepeatingTimer<MetronomeClientFakeImpl> beacon_timer_;
|
base::RepeatingTimer<MetronomeClientFakeImpl> beacon_timer_;
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(MetronomeClientFakeImpl);
|
DISALLOW_COPY_AND_ASSIGN(MetronomeClientFakeImpl);
|
||||||
};
|
};
|
||||||
|
@ -191,7 +191,7 @@ class NfcAdapterClientImpl
|
|||||||
dbus::Bus* bus_;
|
dbus::Bus* bus_;
|
||||||
|
|
||||||
// List of observers interested in event notifications.
|
// List of observers interested in event notifications.
|
||||||
ObserverList<NfcAdapterClient::Observer> observers_;
|
base::ObserverList<NfcAdapterClient::Observer> observers_;
|
||||||
|
|
||||||
// Mapping from object paths to object proxies and properties structures that
|
// Mapping from object paths to object proxies and properties structures that
|
||||||
// were already created by us.
|
// were already created by us.
|
||||||
|
@ -204,7 +204,7 @@ class NfcDeviceClientImpl : public NfcDeviceClient,
|
|||||||
dbus::Bus* bus_;
|
dbus::Bus* bus_;
|
||||||
|
|
||||||
// List of observers interested in event notifications.
|
// List of observers interested in event notifications.
|
||||||
ObserverList<NfcDeviceClient::Observer> observers_;
|
base::ObserverList<NfcDeviceClient::Observer> observers_;
|
||||||
|
|
||||||
// Mapping from object paths to object proxies and properties structures that
|
// Mapping from object paths to object proxies and properties structures that
|
||||||
// were already created by us. This stucture stores a different DBusObjectMap
|
// were already created by us. This stucture stores a different DBusObjectMap
|
||||||
|
@ -144,7 +144,7 @@ class NfcManagerClientImpl : public NfcManagerClient {
|
|||||||
scoped_ptr<Properties> properties_;
|
scoped_ptr<Properties> properties_;
|
||||||
|
|
||||||
// List of observers interested in event notifications.
|
// List of observers interested in event notifications.
|
||||||
ObserverList<NfcManagerClient::Observer> observers_;
|
base::ObserverList<NfcManagerClient::Observer> observers_;
|
||||||
|
|
||||||
// Weak pointer factory for generating 'this' pointers that might live longer
|
// Weak pointer factory for generating 'this' pointers that might live longer
|
||||||
// than we do.
|
// than we do.
|
||||||
|
@ -244,7 +244,7 @@ class NfcRecordClientImpl : public NfcRecordClient,
|
|||||||
dbus::Bus* bus_;
|
dbus::Bus* bus_;
|
||||||
|
|
||||||
// List of observers interested in event notifications.
|
// List of observers interested in event notifications.
|
||||||
ObserverList<NfcRecordClient::Observer> observers_;
|
base::ObserverList<NfcRecordClient::Observer> observers_;
|
||||||
|
|
||||||
// Mapping from object paths to object proxies and properties structures that
|
// Mapping from object paths to object proxies and properties structures that
|
||||||
// were already created by us. Record objects belong to either Tag or Device
|
// were already created by us. Record objects belong to either Tag or Device
|
||||||
|
@ -224,7 +224,7 @@ class NfcTagClientImpl : public NfcTagClient,
|
|||||||
dbus::Bus* bus_;
|
dbus::Bus* bus_;
|
||||||
|
|
||||||
// List of observers interested in event notifications.
|
// List of observers interested in event notifications.
|
||||||
ObserverList<NfcTagClient::Observer> observers_;
|
base::ObserverList<NfcTagClient::Observer> observers_;
|
||||||
|
|
||||||
// Mapping from object paths to object proxies and properties structures that
|
// Mapping from object paths to object proxies and properties structures that
|
||||||
// were already created by us. This stucture stores a different DBusObjectMap
|
// were already created by us. This stucture stores a different DBusObjectMap
|
||||||
|
@ -90,7 +90,7 @@ class PeerDaemonManagerClientImpl : public PeerDaemonManagerClient,
|
|||||||
const std::string& property_name);
|
const std::string& property_name);
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
|
|
||||||
base::WeakPtrFactory<PeerDaemonManagerClientImpl> weak_ptr_factory_;
|
base::WeakPtrFactory<PeerDaemonManagerClientImpl> weak_ptr_factory_;
|
||||||
|
@ -728,7 +728,7 @@ class PowerManagerClientImpl : public PowerManagerClient {
|
|||||||
base::PlatformThreadId origin_thread_id_;
|
base::PlatformThreadId origin_thread_id_;
|
||||||
|
|
||||||
dbus::ObjectProxy* power_manager_proxy_;
|
dbus::ObjectProxy* power_manager_proxy_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// The delay_id_ obtained from the RegisterSuspendDelay request.
|
// The delay_id_ obtained from the RegisterSuspendDelay request.
|
||||||
int32_t suspend_delay_id_;
|
int32_t suspend_delay_id_;
|
||||||
@ -976,7 +976,7 @@ class PowerManagerClientStubImpl : public PowerManagerClient {
|
|||||||
double brightness_;
|
double brightness_;
|
||||||
int pause_count_;
|
int pause_count_;
|
||||||
int cycle_count_;
|
int cycle_count_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
base::RepeatingTimer<PowerManagerClientStubImpl> update_timer_;
|
base::RepeatingTimer<PowerManagerClientStubImpl> update_timer_;
|
||||||
power_manager::PowerSupplyProperties props_;
|
power_manager::PowerSupplyProperties props_;
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ class PrivetDaemonManagerClientImpl : public PrivetDaemonManagerClient,
|
|||||||
dbus::Response* response);
|
dbus::Response* response);
|
||||||
|
|
||||||
// List of observers interested in event notifications from us.
|
// List of observers interested in event notifications from us.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
dbus::ObjectManager* object_manager_;
|
dbus::ObjectManager* object_manager_;
|
||||||
base::WeakPtrFactory<PrivetDaemonManagerClientImpl> weak_ptr_factory_;
|
base::WeakPtrFactory<PrivetDaemonManagerClientImpl> weak_ptr_factory_;
|
||||||
|
|
||||||
|
@ -633,7 +633,7 @@ class SessionManagerClientImpl : public SessionManagerClient {
|
|||||||
|
|
||||||
dbus::ObjectProxy* session_manager_proxy_;
|
dbus::ObjectProxy* session_manager_proxy_;
|
||||||
scoped_ptr<BlockingMethodCaller> blocking_method_caller_;
|
scoped_ptr<BlockingMethodCaller> blocking_method_caller_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// Most recent screen-lock state received from session_manager.
|
// Most recent screen-lock state received from session_manager.
|
||||||
bool screen_is_locked_;
|
bool screen_is_locked_;
|
||||||
@ -798,7 +798,7 @@ class SessionManagerClientStubImpl : public SessionManagerClient {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
StubDelegate* delegate_; // Weak pointer; may be NULL.
|
StubDelegate* delegate_; // Weak pointer; may be NULL.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
std::string device_policy_;
|
std::string device_policy_;
|
||||||
bool screen_is_locked_;
|
bool screen_is_locked_;
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ class ShillClientHelper {
|
|||||||
ReleasedCallback released_callback_;
|
ReleasedCallback released_callback_;
|
||||||
int active_refs_;
|
int active_refs_;
|
||||||
PropertyChangedHandler property_changed_handler_;
|
PropertyChangedHandler property_changed_handler_;
|
||||||
ObserverList<ShillPropertyChangedObserver, true /* check_empty */>
|
base::ObserverList<ShillPropertyChangedObserver, true /* check_empty */>
|
||||||
observer_list_;
|
observer_list_;
|
||||||
std::vector<std::string> interfaces_to_be_monitored_;
|
std::vector<std::string> interfaces_to_be_monitored_;
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ class SystemClockClientImpl : public SystemClockClient {
|
|||||||
bool can_set_time_;
|
bool can_set_time_;
|
||||||
bool can_set_time_initialized_;
|
bool can_set_time_initialized_;
|
||||||
dbus::ObjectProxy* system_clock_proxy_;
|
dbus::ObjectProxy* system_clock_proxy_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
base::WeakPtrFactory<SystemClockClientImpl> weak_ptr_factory_;
|
base::WeakPtrFactory<SystemClockClientImpl> weak_ptr_factory_;
|
||||||
|
|
||||||
|
@ -383,7 +383,7 @@ class UpdateEngineClientImpl : public UpdateEngineClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dbus::ObjectProxy* update_engine_proxy_;
|
dbus::ObjectProxy* update_engine_proxy_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
Status last_status_;
|
Status last_status_;
|
||||||
|
|
||||||
// Note: This should remain the last member so it'll be destroyed and
|
// Note: This should remain the last member so it'll be destroyed and
|
||||||
@ -525,7 +525,7 @@ class UpdateEngineClientFakeImpl : public UpdateEngineClientStubImpl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
Status last_status_;
|
Status last_status_;
|
||||||
|
|
||||||
base::WeakPtrFactory<UpdateEngineClientFakeImpl> weak_factory_;
|
base::WeakPtrFactory<UpdateEngineClientFakeImpl> weak_factory_;
|
||||||
|
@ -610,7 +610,7 @@ class DiskMountManagerImpl : public DiskMountManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mount event change observers.
|
// Mount event change observers.
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
CrosDisksClient* cros_disks_client_;
|
CrosDisksClient* cros_disks_client_;
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ class MockDiskMountManager : public DiskMountManager {
|
|||||||
const DiskMountManager::Disk* disk);
|
const DiskMountManager::Disk* disk);
|
||||||
|
|
||||||
// The list of observers.
|
// The list of observers.
|
||||||
ObserverList<DiskMountManager::Observer> observers_;
|
base::ObserverList<DiskMountManager::Observer> observers_;
|
||||||
|
|
||||||
// The list of disks found.
|
// The list of disks found.
|
||||||
DiskMountManager::DiskMap disks_;
|
DiskMountManager::DiskMap disks_;
|
||||||
|
@ -106,7 +106,7 @@ class CHROMEOS_EXPORT LoginState {
|
|||||||
LoggedInState logged_in_state_;
|
LoggedInState logged_in_state_;
|
||||||
LoggedInUserType logged_in_user_type_;
|
LoggedInUserType logged_in_user_type_;
|
||||||
std::string primary_user_hash_;
|
std::string primary_user_hash_;
|
||||||
ObserverList<Observer> observer_list_;
|
base::ObserverList<Observer> observer_list_;
|
||||||
|
|
||||||
// If true, it always thinks the current status as logged in. Set to true by
|
// If true, it always thinks the current status as logged in. Set to true by
|
||||||
// default running on a Linux desktop without flags and test cases. To test
|
// default running on a Linux desktop without flags and test cases. To test
|
||||||
|
@ -110,7 +110,7 @@ class CHROMEOS_EXPORT ClientCertResolver : public NetworkStateHandlerObserver,
|
|||||||
// Trigger a ResolveRequestCompleted event on all observers.
|
// Trigger a ResolveRequestCompleted event on all observers.
|
||||||
void NotifyResolveRequestCompleted();
|
void NotifyResolveRequestCompleted();
|
||||||
|
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
// The set of networks that were checked/resolved in previous passes. These
|
// The set of networks that were checked/resolved in previous passes. These
|
||||||
// networks are skipped in the NetworkListChanged notification.
|
// networks are skipped in the NetworkListChanged notification.
|
||||||
|
@ -211,7 +211,7 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl
|
|||||||
// associated set of GUIDs is empty.
|
// associated set of GUIDs is empty.
|
||||||
UserToModifiedPoliciesMap queued_modified_policies_;
|
UserToModifiedPoliciesMap queued_modified_policies_;
|
||||||
|
|
||||||
ObserverList<NetworkPolicyObserver> observers_;
|
base::ObserverList<NetworkPolicyObserver> observers_;
|
||||||
|
|
||||||
// For Shill client callbacks
|
// For Shill client callbacks
|
||||||
base::WeakPtrFactory<ManagedNetworkConfigurationHandlerImpl>
|
base::WeakPtrFactory<ManagedNetworkConfigurationHandlerImpl>
|
||||||
|
@ -206,7 +206,7 @@ class CHROMEOS_EXPORT NetworkConfigurationHandler
|
|||||||
// Map of in-progress deleter instances. Owned by this class.
|
// Map of in-progress deleter instances. Owned by this class.
|
||||||
std::map<std::string, ProfileEntryDeleter*> profile_entry_deleters_;
|
std::map<std::string, ProfileEntryDeleter*> profile_entry_deleters_;
|
||||||
|
|
||||||
ObserverList<NetworkConfigurationObserver> observers_;
|
base::ObserverList<NetworkConfigurationObserver> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler);
|
DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationHandler);
|
||||||
};
|
};
|
||||||
|
@ -222,7 +222,7 @@ class CHROMEOS_EXPORT NetworkConnectionHandler
|
|||||||
void HandleShillDisconnectSuccess(const std::string& service_path,
|
void HandleShillDisconnectSuccess(const std::string& service_path,
|
||||||
const base::Closure& success_callback);
|
const base::Closure& success_callback);
|
||||||
|
|
||||||
ObserverList<NetworkConnectionObserver> observers_;
|
base::ObserverList<NetworkConnectionObserver> observers_;
|
||||||
|
|
||||||
// Local references to the associated handler instances.
|
// Local references to the associated handler instances.
|
||||||
CertLoader* cert_loader_;
|
CertLoader* cert_loader_;
|
||||||
|
@ -80,7 +80,7 @@ class CHROMEOS_EXPORT NetworkProfileHandler
|
|||||||
// properties are retrieved and the path is still in this set, a new profile
|
// properties are retrieved and the path is still in this set, a new profile
|
||||||
// object is created.
|
// object is created.
|
||||||
std::set<std::string> pending_profile_creations_;
|
std::set<std::string> pending_profile_creations_;
|
||||||
ObserverList<NetworkProfileObserver> observers_;
|
base::ObserverList<NetworkProfileObserver> observers_;
|
||||||
|
|
||||||
// For Shill client callbacks
|
// For Shill client callbacks
|
||||||
base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_;
|
base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_;
|
||||||
|
@ -89,7 +89,7 @@ class CHROMEOS_EXPORT NetworkSmsHandler : public ShillPropertyChangedObserver {
|
|||||||
DBusMethodCallStatus call_status,
|
DBusMethodCallStatus call_status,
|
||||||
const base::DictionaryValue& properties);
|
const base::DictionaryValue& properties);
|
||||||
|
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
ScopedVector<NetworkSmsDeviceHandler> device_handlers_;
|
ScopedVector<NetworkSmsDeviceHandler> device_handlers_;
|
||||||
ScopedVector<base::DictionaryValue> received_messages_;
|
ScopedVector<base::DictionaryValue> received_messages_;
|
||||||
base::WeakPtrFactory<NetworkSmsHandler> weak_ptr_factory_;
|
base::WeakPtrFactory<NetworkSmsHandler> weak_ptr_factory_;
|
||||||
|
@ -362,7 +362,7 @@ class CHROMEOS_EXPORT NetworkStateHandler
|
|||||||
scoped_ptr<internal::ShillPropertyHandler> shill_property_handler_;
|
scoped_ptr<internal::ShillPropertyHandler> shill_property_handler_;
|
||||||
|
|
||||||
// Observer list
|
// Observer list
|
||||||
ObserverList<NetworkStateHandlerObserver> observers_;
|
base::ObserverList<NetworkStateHandlerObserver> observers_;
|
||||||
|
|
||||||
// List of managed network states
|
// List of managed network states
|
||||||
ManagedStateList network_list_;
|
ManagedStateList network_list_;
|
||||||
|
@ -283,7 +283,7 @@ class TimezoneSettingsBaseImpl : public chromeos::system::TimezoneSettings {
|
|||||||
const icu::TimeZone* GetKnownTimezoneOrNull(
|
const icu::TimeZone* GetKnownTimezoneOrNull(
|
||||||
const icu::TimeZone& timezone) const;
|
const icu::TimeZone& timezone) const;
|
||||||
|
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
std::vector<icu::TimeZone*> timezones_;
|
std::vector<icu::TimeZone*> timezones_;
|
||||||
scoped_ptr<icu::TimeZone> timezone_;
|
scoped_ptr<icu::TimeZone> timezone_;
|
||||||
|
|
||||||
|
@ -354,7 +354,7 @@ class PersonalDataManager : public KeyedService,
|
|||||||
WebDataServiceBase::Handle pending_server_creditcards_query_;
|
WebDataServiceBase::Handle pending_server_creditcards_query_;
|
||||||
|
|
||||||
// The observers.
|
// The observers.
|
||||||
ObserverList<PersonalDataManagerObserver> observers_;
|
base::ObserverList<PersonalDataManagerObserver> observers_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Finds the country code that occurs most frequently among all profiles.
|
// Finds the country code that occurs most frequently among all profiles.
|
||||||
|
@ -205,7 +205,8 @@ class AutofillWebDataBackendImpl
|
|||||||
void DestroyAutofillProfileResult(const WDTypedResult* result);
|
void DestroyAutofillProfileResult(const WDTypedResult* result);
|
||||||
void DestroyAutofillCreditCardResult(const WDTypedResult* result);
|
void DestroyAutofillCreditCardResult(const WDTypedResult* result);
|
||||||
|
|
||||||
ObserverList<AutofillWebDataServiceObserverOnDBThread> db_observer_list_;
|
base::ObserverList<AutofillWebDataServiceObserverOnDBThread>
|
||||||
|
db_observer_list_;
|
||||||
|
|
||||||
// WebDatabaseBackend allows direct access to DB.
|
// WebDatabaseBackend allows direct access to DB.
|
||||||
// TODO(caitkp): Make it so nobody but us needs direct DB access anymore.
|
// TODO(caitkp): Make it so nobody but us needs direct DB access anymore.
|
||||||
|
@ -130,7 +130,8 @@ class AutofillWebDataService : public AutofillWebData,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ObserverList<AutofillWebDataServiceObserverOnUIThread> ui_observer_list_;
|
base::ObserverList<AutofillWebDataServiceObserverOnUIThread>
|
||||||
|
ui_observer_list_;
|
||||||
|
|
||||||
// The task runner that this class uses as its UI thread.
|
// The task runner that this class uses as its UI thread.
|
||||||
scoped_refptr<base::SingleThreadTaskRunner> ui_thread_;
|
scoped_refptr<base::SingleThreadTaskRunner> ui_thread_;
|
||||||
|
@ -100,7 +100,8 @@ BookmarkModel::BookmarkModel(BookmarkClient* client)
|
|||||||
other_node_(NULL),
|
other_node_(NULL),
|
||||||
mobile_node_(NULL),
|
mobile_node_(NULL),
|
||||||
next_node_id_(1),
|
next_node_id_(1),
|
||||||
observers_(ObserverList<BookmarkModelObserver>::NOTIFY_EXISTING_ONLY),
|
observers_(
|
||||||
|
base::ObserverList<BookmarkModelObserver>::NOTIFY_EXISTING_ONLY),
|
||||||
loaded_signal_(true, false),
|
loaded_signal_(true, false),
|
||||||
extensive_changes_(0) {
|
extensive_changes_(0) {
|
||||||
DCHECK(client_);
|
DCHECK(client_);
|
||||||
|
@ -416,7 +416,7 @@ class BookmarkModel : public KeyedService {
|
|||||||
int64 next_node_id_;
|
int64 next_node_id_;
|
||||||
|
|
||||||
// The observers.
|
// The observers.
|
||||||
ObserverList<BookmarkModelObserver> observers_;
|
base::ObserverList<BookmarkModelObserver> observers_;
|
||||||
|
|
||||||
// Set of nodes ordered by URL. This is not a map to avoid copying the
|
// Set of nodes ordered by URL. This is not a map to avoid copying the
|
||||||
// urls.
|
// urls.
|
||||||
|
@ -33,7 +33,7 @@ class ObservableProvider : public ProviderInterface {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
base::ThreadChecker thread_checker_;
|
base::ThreadChecker thread_checker_;
|
||||||
ObserverList<Observer, true> observer_list_;
|
base::ObserverList<Observer, true> observer_list_;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace content_settings
|
} // namespace content_settings
|
||||||
|
@ -361,7 +361,7 @@ class HostContentSettingsMap
|
|||||||
|
|
||||||
base::ThreadChecker thread_checker_;
|
base::ThreadChecker thread_checker_;
|
||||||
|
|
||||||
ObserverList<content_settings::Observer> observers_;
|
base::ObserverList<content_settings::Observer> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap);
|
DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap);
|
||||||
};
|
};
|
||||||
|
@ -61,7 +61,7 @@ class CopresenceStateImpl final : public CopresenceState {
|
|||||||
std::map<std::string, TransmittedToken> transmitted_tokens_;
|
std::map<std::string, TransmittedToken> transmitted_tokens_;
|
||||||
std::map<std::string, ReceivedToken> received_tokens_;
|
std::map<std::string, ReceivedToken> received_tokens_;
|
||||||
|
|
||||||
ObserverList<CopresenceObserver> observers_;
|
base::ObserverList<CopresenceObserver> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(CopresenceStateImpl);
|
DISALLOW_COPY_AND_ASSIGN(CopresenceStateImpl);
|
||||||
};
|
};
|
||||||
|
@ -54,7 +54,7 @@ class CronetInMemoryPrefStore : public PersistentPrefStore {
|
|||||||
// Stores the preference values.
|
// Stores the preference values.
|
||||||
PrefValueMap prefs_;
|
PrefValueMap prefs_;
|
||||||
|
|
||||||
ObserverList<PrefStore::Observer, true> observers_;
|
base::ObserverList<PrefStore::Observer, true> observers_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(CronetInMemoryPrefStore);
|
DISALLOW_COPY_AND_ASSIGN(CronetInMemoryPrefStore);
|
||||||
};
|
};
|
||||||
|
@ -143,7 +143,7 @@ class DataReductionProxyService
|
|||||||
// make calls to IO based objects.
|
// make calls to IO based objects.
|
||||||
base::WeakPtr<DataReductionProxyIOData> io_data_;
|
base::WeakPtr<DataReductionProxyIOData> io_data_;
|
||||||
|
|
||||||
ObserverList<DataReductionProxyServiceObserver> observer_list_;
|
base::ObserverList<DataReductionProxyServiceObserver> observer_list_;
|
||||||
|
|
||||||
bool initialized_;
|
bool initialized_;
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ class DistilledPagePrefs {
|
|||||||
void NotifyOnChangeTheme(Theme theme);
|
void NotifyOnChangeTheme(Theme theme);
|
||||||
|
|
||||||
PrefService* pref_service_;
|
PrefService* pref_service_;
|
||||||
ObserverList<Observer> observers_;
|
base::ObserverList<Observer> observers_;
|
||||||
|
|
||||||
base::WeakPtrFactory<DistilledPagePrefs> weak_ptr_factory_;
|
base::WeakPtrFactory<DistilledPagePrefs> weak_ptr_factory_;
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ class DomDistillerStore : public syncer::SyncableService,
|
|||||||
scoped_ptr<leveldb_proto::ProtoDatabase<ArticleEntry> > database_;
|
scoped_ptr<leveldb_proto::ProtoDatabase<ArticleEntry> > database_;
|
||||||
bool database_loaded_;
|
bool database_loaded_;
|
||||||
scoped_ptr<syncer::AttachmentStore> attachment_store_;
|
scoped_ptr<syncer::AttachmentStore> attachment_store_;
|
||||||
ObserverList<DomDistillerObserver> observers_;
|
base::ObserverList<DomDistillerObserver> observers_;
|
||||||
|
|
||||||
DomDistillerModel model_;
|
DomDistillerModel model_;
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ class BookmarkServerService : protected net::URLFetcherDelegate,
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// The observers.
|
// The observers.
|
||||||
ObserverList<BookmarkServerServiceObserver> observers_;
|
base::ObserverList<BookmarkServerServiceObserver> observers_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Cluster);
|
FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Cluster);
|
||||||
|
@ -202,7 +202,7 @@ class EnhancedBookmarkModel : public KeyedService,
|
|||||||
bookmarks::BookmarkModel* bookmark_model_;
|
bookmarks::BookmarkModel* bookmark_model_;
|
||||||
bool loaded_;
|
bool loaded_;
|
||||||
|
|
||||||
ObserverList<EnhancedBookmarkModelObserver> observers_;
|
base::ObserverList<EnhancedBookmarkModelObserver> observers_;
|
||||||
|
|
||||||
IdToNodeMap id_map_;
|
IdToNodeMap id_map_;
|
||||||
NodeToIdMap nodes_to_reset_;
|
NodeToIdMap nodes_to_reset_;
|
||||||
|
@ -115,7 +115,7 @@ class FaviconDriver {
|
|||||||
virtual void NotifyFaviconUpdated(bool icon_url_changed);
|
virtual void NotifyFaviconUpdated(bool icon_url_changed);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ObserverList<FaviconDriverObserver> observer_list_;
|
base::ObserverList<FaviconDriverObserver> observer_list_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(FaviconDriver);
|
DISALLOW_COPY_AND_ASSIGN(FaviconDriver);
|
||||||
};
|
};
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user