Move some files from base to base/memory.
raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
app
gfx
gl
sql
base
atomic_ref_count.hbase.gypbase.gypibase_paths_linux.cccallback_internal.hcallback_old.hcallback_unittest.cccommand_line.cc
crypto
capi_util.cccssm_init.ccencryptor_unittest.ccmac_security_services_lock.ccrsa_private_key.ccrsa_private_key_mac.ccrsa_private_key_nss.ccrsa_private_key_nss_unittest.ccrsa_private_key_openssl.ccrsa_private_key_unittest.ccrsa_private_key_win.ccscoped_nss_types.hsecure_hash_unittest.ccsignature_creator_mac.ccsignature_creator_nss.ccsignature_creator_openssl.ccsignature_creator_unittest.ccsignature_creator_win.ccsignature_verifier_openssl.ccsymmetric_key_openssl.ccsymmetric_key_unittest.ccsymmetric_key_win.cc
debug
debugger_posix.ccleak_tracker_unittest.ccstack_trace_posix.ccstack_trace_win.cctrace_event.htrace_event_win.cc
environment.ccenvironment_unittest.ccfile_util.hfile_util_posix.ccfile_util_proxy.hfile_util_unittest.ccfile_version_info_mac.hfile_version_info_unittest.ccfile_version_info_win.hglobal_descriptors_posix.hhmac.hhmac_nss.cchmac_openssl.cci18n
json
linux_util.cclogging_win.ccmac
memory
linked_ptr.hlinked_ptr_unittest.ccmemory_debug.ccmemory_debug.hraw_scoped_refptr_mismatch_checker.href_counted.ccref_counted.href_counted_memory.ccref_counted_memory.href_counted_unittest.ccscoped_callback_factory.hscoped_handle.hscoped_native_library.ccscoped_native_library.hscoped_native_library_unittest.ccscoped_nsobject.hscoped_open_process.hscoped_ptr.hscoped_ptr_unittest.ccscoped_temp_dir.ccscoped_temp_dir.hscoped_temp_dir_unittest.ccscoped_vector.hsingleton.hsingleton_objc.hsingleton_unittest.ccweak_ptr.ccweak_ptr.hweak_ptr_unittest.cc
message_loop.hmessage_loop_proxy.hmessage_loop_proxy_impl_unittest.ccmessage_loop_unittest.ccmessage_pump.hmessage_pump_glib.hmessage_pump_glib_unittest.ccmessage_pump_libevent.ccmetrics
mime_util_xdg.ccnss_util.ccobserver_list_threadsafe.hobserver_list_unittest.ccopenssl_util.ccpickle_unittest.ccplatform_file_unittest.ccprocess_util_posix.ccprocess_util_unittest.ccprocess_util_win.ccprocess_win.ccref_counted.hscoped_ptr.hshared_memory_unittest.ccstack_container_unittest.ccstring_util.ccsynchronization
sys_info_win.cctask.htask_queue_unittest.cctask_unittest.cctest
threading
non_thread_safe_unittest.ccplatform_thread_posix.ccthread_checker_unittest.ccthread_collision_warner_unittest.ccworker_pool_posix.ccworker_pool_posix.h
time_win.cctimer_unittest.ccvalues_unittest.ccversion_unittest.ccwin
chrome
app
browser
about_flags.ccprocess_singleton.hprocess_singleton_uitest.ccprofile_import_process_host.hupgrade_detector.ccuser_style_sheet_watcher.huser_style_sheet_watcher_unittest.ccutility_process_host.h
accessibility
accessibility_mac_uitest.mmbrowser_accessibility_cocoa.hbrowser_accessibility_mac.hbrowser_accessibility_mac_unittest.mmbrowser_accessibility_manager.hbrowser_accessibility_state.ccbrowser_accessibility_win_unittest.cc
aeropeek_manager.ccapp_controller_mac.happ_controller_mac_unittest.mmautocomplete
autocomplete.hautocomplete_classifier.hautocomplete_edit.hautocomplete_edit_view_gtk.hautocomplete_edit_view_mac.hautocomplete_edit_view_views.hautocomplete_edit_view_win.ccautocomplete_edit_view_win.hautocomplete_popup_model.hautocomplete_popup_view_gtk.hautocomplete_popup_view_mac.hautocomplete_popup_view_mac_unittest.mmautocomplete_unittest.cchistory_quick_provider_unittest.ccsearch_provider.h
autocomplete_history_manager_unittest.ccautofill
address_field.ccaddress_field_unittest.ccautofill_browsertest.ccautofill_country.ccautofill_download.hautofill_manager.hautofill_manager_unittest.ccautofill_metrics_unittest.ccautofill_profile_unittest.cccredit_card_field.cccredit_card_field_unittest.cc
crypto
form_structure.hform_structure_unittest.ccname_field.ccname_field_unittest.ccpersonal_data_manager.hpersonal_data_manager_mac.mmpersonal_data_manager_unittest.ccphone_field.ccphone_field.hphone_field_unittest.ccautomation
automation_provider.hautomation_provider_observers.ccautomation_provider_observers.hautomation_util.ccextension_port_container.htesting_automation_provider.hui_controls_win.cc
background_application_list_model_unittest.ccbackground_contents_service_unittest.ccbackground_mode_manager_unittest.ccbackground_page_tracker.hbookmarks
bookmark_codec_unittest.ccbookmark_context_menu_controller_unittest.ccbookmark_html_writer.ccbookmark_html_writer.hbookmark_model.ccbookmark_node_data_unittest.ccbookmark_storage.h
browser_about_handler.ccbrowser_about_handler_unittest.ccbrowser_encoding_uitest.ccbrowser_main.hbrowser_main_mac.mmbrowser_main_win.ccbrowser_process.hbrowser_process_impl.hbrowser_signin.ccbrowser_signin.hbrowsing_data_appcache_helper.hbrowsing_data_database_helper.hbrowsing_data_indexed_db_helper.ccbrowsing_data_indexed_db_helper.hbrowsing_data_indexed_db_helper_browsertest.ccbrowsing_data_local_storage_helper.hbrowsing_data_local_storage_helper_browsertest.ccbrowsing_data_remover.hbug_report_util.cccharacter_encoding.ccchrome_browser_application_mac.mmchromeos
audio_handler.ccaudio_handler.haudio_mixer_alsa.hbrightness_bubble.cc
cros
burn_library.ccburn_library.hcros_in_process_browser_test.hcros_library.hcros_mock.cccryptohome_library.hlogin_library.hmount_library.hnetwork_library.hpower_library.hspeech_synthesis_library.hsyslogs_library.hsystem_library.hupdate_library.h
cros_settings.hcustomization_document.hexternal_metrics_unittest.ccframe
gview_request_interceptor.ccinput_method
locale_change_guard.hlogin
account_screen.happly_services_customization.hauthenticator.hbase_login_display_host.hcamera.hcookie_fetcher.hcryptohome_op.hcryptohome_op_unittest.ccenterprise_enrollment_screen_browsertest.cceula_view.hexisting_user_controller.hexisting_user_controller_browsertest.ccgoogle_authenticator.hgoogle_authenticator_unittest.cchelp_app_launcher.hhtml_page_screen.himage_downloader.hkeyboard_switch_menu.hlanguage_switch_menu.hlogin_performer.hlogin_utils.ccnetwork_screen.hnetwork_screen_browsertest.ccnetwork_selection_view.honline_attempt.cconline_attempt.honline_attempt_unittest.ccowner_key_utils.ccowner_key_utils.howner_key_utils_unittest.ccowner_manager.howner_manager_unittest.ccownership_service_unittest.ccparallel_authenticator.hparallel_authenticator_unittest.ccregistration_screen.hscreen_locker.hscreen_locker_browsertest.ccsigned_settings.ccsigned_settings.hsigned_settings_helper.ccsigned_settings_temp_storage_unittest.ccsigned_settings_unittest.ccuser_image_downloader.ccuser_image_downloader.huser_image_loader.huser_image_screen.huser_manager.hviews_login_display.hwizard_accessibility_handler.ccwizard_accessibility_helper.hwizard_controller.h
network_state_notifier.hnotifications
plugin_selection_policy.hplugin_selection_policy_unittest.ccproxy_config_service_impl.hproxy_cros_settings_provider.hstatus
system_key_event_listener.hupdate_browsertest.ccusb_mount_observer.ccusb_mount_observer_browsertest.ccuser_cros_settings_provider.ccvolume_bubble.ccwebui
wm_ipc.ccwm_message_listener.hwm_overview_controller.ccwm_overview_controller.hcocoa
content_exceptions_table_model.hcontent_settings
cookies_tree_model.cccookies_tree_model.hcrash_handler_host_linux.cccrash_handler_host_linux.hcrash_handler_host_linux_stub.cccrash_upload_list.hcustom_handlers
debugger
debugger_host.hdevtools_http_protocol_handler.hdevtools_manager.hdevtools_netlog_observer.hdevtools_protocol_handler.hdevtools_remote.hdevtools_remote_listen_socket_unittest.hdevtools_remote_message_unittest.ccdevtools_remote_service.ccextension_ports_remote_service.h
diagnostics
download
base_file.hbase_file_unittest.ccdownload_browsertest.ccdownload_file.hdownload_file_manager.hdownload_file_unittest.ccdownload_manager.hdownload_manager_unittest.ccdownload_request_limiter.hdownload_safe_browsing_client.hdownload_shelf.hdownload_status_updater.hdownload_status_updater_unittest.ccdownload_types.hdrag_download_file.hdrag_download_util.ccdrag_download_util.hsave_file.hsave_file_manager.hsave_package.hsave_page_browsertest.cc
enumerate_modules_model_win.hextensions
convert_user_script.ccconvert_user_script.hconvert_user_script_unittest.ccconvert_web_app.ccconvert_web_app.hconvert_web_app_unittest.cccrx_installer.cccrx_installer.hextension_accessibility_api.hextension_bookmarks_module.hextension_browsertests_misc.ccextension_cookies_api.hextension_creator.ccextension_data_deleter.hextension_debugger_api.ccextension_devtools_bridge.hextension_devtools_browsertests.ccextension_devtools_manager.hextension_event_router.hextension_event_router_forwarder.hextension_function.hextension_function_dispatcher.ccextension_function_dispatcher.hextension_history_api.hextension_host.ccextension_host.hextension_info_map.hextension_info_private_api_chromeos.hextension_management_api.hextension_management_browsertest.ccextension_menu_manager.hextension_menu_manager_unittest.ccextension_message_service.hextension_pref_value_map_unittest.ccextension_preference_api.ccextension_prefs.hextension_prefs_unittest.ccextension_process_manager.hextension_proxy_api.hextension_rlz_module.ccextension_service.hextension_service_unittest.ccextension_service_unittest.hextension_tab_id_map.hextension_test_api.ccextension_tts_api.hextension_tts_api_chromeos.ccextension_tts_api_linux.ccextension_tts_api_mac.mmextension_tts_api_win.ccextension_updater.hextension_updater_unittest.ccextension_web_ui.hextension_webnavigation_api.hextension_webrequest_api.hextensions_quota_service.hextensions_startup.hextensions_ui.ccextensions_ui.hexternal_extension_loader.hexternal_extension_provider_impl.ccexternal_extension_provider_impl.hexternal_extension_provider_interface.hexternal_pref_extension_loader.hfile_reader.himage_loading_tracker.hpack_extension_job.hsandboxed_extension_unpacker.ccsandboxed_extension_unpacker.hsandboxed_extension_unpacker_unittest.cctest_extension_prefs.cctest_extension_prefs.huser_script_listener.huser_script_master.h
external_tab_container_win.hfavicon_helper.ccfavicon_helper.hfavicon_service.hfirst_run
geolocation
google
gpu_data_manager.hgpu_process_host_ui_shim.hhistory
expire_history_backend.hexpire_history_backend_unittest.cchistory.cchistory.hhistory_backend.cchistory_backend.hhistory_backend_unittest.cchistory_marshaling.hhistory_querying_unittest.cchistory_types.hhistory_unittest.ccin_memory_history_backend.hin_memory_url_index.hin_memory_url_index_unittest.ccquery_parser.ccquery_parser_unittest.ccredirect_uitest.ccsnippet.ccstarred_url_database.cctext_database_unittest.ccthumbnail_database.ccthumbnail_database.hthumbnail_database_unittest.cctop_sites.htop_sites_backend.htop_sites_cache.cctop_sites_cache.htop_sites_database.htop_sites_unittest.cc
icon_loader.hicon_manager.ccimporter
external_process_importer_bridge.hfirefox3_importer.ccfirefox_importer_unittest_utils.himporter.himporter_bridge.himporter_host.himporter_list.hnss_decryptor.ccprofile_writer.hsafari_importer.mm
instant
instant_controller.hinstant_loader.hinstant_loader_manager.hinstant_loader_manager_unittest.ccinstant_unload_handler.h
io_thread.hjankometer.ccjumplist_win.hmach_broker_mac.hmemory_details.hmetrics
mock_browsing_data_indexed_db_helper.hnacl_host
net
chrome_cookie_policy.hchrome_dns_cert_provenance_checker.ccchrome_net_log.hchrome_network_delegate.hconnection_tester.h
gaia
net_log_logger.hpassive_log_collector.hpredictor.hpredictor_api.hpredictor_unittest.ccpref_proxy_config_service.hresolve_proxy_msg_helper.hsdch_dictionary_fetcher.hservice_providers_win.ccsqlite_persistent_cookie_store.ccsqlite_persistent_cookie_store.hsqlite_persistent_cookie_store_unittest.ccwebsocket_experiment
notifications
balloon.hballoon_collection.hdesktop_notification_service.hdesktop_notification_service_unittest.ccnotification_delegate.hnotification_ui_manager.ccnotification_ui_manager.hnotifications_prefs_cache.h
parsers
password_manager
encryptor_linux.ccencryptor_mac.mmie7_password.ccpassword_manager.hpassword_store.ccpassword_store.hpassword_store_default.hpassword_store_default_unittest.ccpassword_store_mac.hpassword_store_mac_unittest.ccpassword_store_win_unittest.ccpassword_store_x.hpassword_store_x_unittest.cc
password_manager_delegate_impl.ccplugin_data_remover.hplugin_data_remover_helper.ccplugin_data_remover_helper.hplugin_updater.ccplugin_updater.hpolicy
asynchronous_policy_loader.hasynchronous_policy_provider.hbrowser_policy_connector.hcloud_policy_cache.hcloud_policy_cache_unittest.cccloud_policy_controller.hcloud_policy_controller_unittest.cccloud_policy_subsystem.hconfig_dir_policy_provider_unittest.ccconfiguration_policy_pref_store.hconfiguration_policy_pref_store_unittest.ccconfiguration_policy_provider.hconfiguration_policy_provider_mac.hconfiguration_policy_provider_win_unittest.ccdevice_policy_identity_strategy.hdevice_token_fetcher.hdevice_token_fetcher_unittest.ccmanaged_prefs_banner_base.hpolicy_map_unittest.ccpolicy_path_parser_win.ccprofile_policy_connector.huser_policy_identity_strategy.h
prefs
command_line_pref_store.hcommand_line_pref_store_unittest.ccoverlay_persistent_pref_store.hpref_member.hpref_service.hpref_service_mock_builder.hpref_service_unittest.ccpref_value_map.ccpref_value_store.hpref_value_store_unittest.ccproxy_config_dictionary.hproxy_config_dictionary_unittest.cctesting_pref_store.h
prerender
printing
cloud_print
cloud_print_proxy_service.hcloud_print_setup_flow.cccloud_print_setup_flow.hcloud_print_setup_handler.hcloud_print_setup_message_handler.cc
print_dialog_cloud_internal.hprint_dialog_cloud_uitest.ccprint_dialog_cloud_unittest.ccprint_dialog_gtk.hprint_job.hprint_job_manager.hprint_job_worker.hprint_job_worker_owner.hprint_preview_tab_controller.hprint_view_manager.ccprint_view_manager.hprinter_query.hprofiles
off_the_record_profile_io_data.hprofile.ccprofile_impl.ccprofile_impl.hprofile_impl_io_data.hprofile_io_data.h
remoting
renderer_host
browser_render_process_host.hdownload_resource_handler.hoffline_resource_handler.ccoffline_resource_handler.hrender_widget_host_view_gtk.hrender_widget_host_view_mac.hrender_widget_host_view_mac.mmrender_widget_host_view_views.hrender_widget_host_view_win.hsafe_browsing_resource_handler.hweb_cache_manager.cc
safe_browsing
bloom_filter.hbloom_filter_unittest.ccclient_side_detection_host.ccclient_side_detection_host.hclient_side_detection_host_unittest.ccclient_side_detection_service.ccclient_side_detection_service.hclient_side_detection_service_unittest.ccfilter_false_positive_perftest.ccmalware_details.hprefix_set_unittest.ccprotocol_manager.hsafe_browsing_database.hsafe_browsing_database_unittest.ccsafe_browsing_service.hsafe_browsing_service_browsertest.cc
search_engines
search_host_to_urls_map.ccsearch_host_to_urls_map_unittest.ccsearch_provider_install_data.ccsearch_provider_install_data.hsearch_provider_install_data_unittest.cctemplate_url_fetcher.htemplate_url_fetcher_unittest.cctemplate_url_model.htemplate_url_model_test_util.cctemplate_url_model_test_util.htemplate_url_model_unittest.cctemplate_url_parser.cctemplate_url_prepopulate_data.cctemplate_url_prepopulate_data_unittest.cc
service
sessions
base_session_service.hsession_backend.ccsession_backend.hsession_backend_unittest.ccsession_restore.ccsession_restore_uitest.ccsession_service.ccsession_service_test_helper.ccsession_service_test_helper.hsession_service_unittest.cctab_restore_service.cc
shell_integration.hshell_integration_linux.ccshell_integration_unittest.ccsidebar
speech
speech_input_bubble.hspeech_input_bubble_browsertest.ccspeech_input_bubble_controller.hspeech_input_bubble_mac.mmspeech_input_manager.cc
spellcheck_host.hspellcheck_host_impl.hssl
ssl_add_cert_handler.hssl_add_cert_handler_mac.mmssl_client_auth_handler.hssl_error_handler.hssl_manager.hssl_policy.ccssl_request_info.h
status_icons
sync
abstract_profile_sync_service_test.h
engine
all_status.hchange_reorder_buffer.hidle_query_linux.hmock_model_safe_workers.hmodel_safe_worker.h
net
syncapi.ccsyncapi.hsyncapi_unittest.ccsyncer.hsyncer_thread.hsyncer_thread2.hsyncer_thread_adapter.hsyncer_thread_unittest.ccsyncer_unittest.ccglue
app_data_type_controller.hautofill_data_type_controller.hautofill_data_type_controller_unittest.ccautofill_model_associator.hautofill_profile_model_associator.hbookmark_data_type_controller.hbookmark_data_type_controller_unittest.ccdata_type_manager_impl2_unittest.ccdata_type_manager_impl_unittest.ccdatabase_model_worker_unittest.ccdo_optimistic_refresh_task.hextension_data_type_controller.hextension_data_type_controller_unittest.ccextension_util.ccforeign_session_tracker.hhistory_model_worker.cchistory_model_worker.hhttp_bridge.hpassword_data_type_controller.hpassword_model_worker.ccpassword_model_worker.hpreference_data_type_controller.hpreference_data_type_controller_unittest.ccpreference_model_associator_unittest.ccsession_change_processor.ccsession_data_type_controller.hsession_model_associator.hsession_model_associator_unittest.ccsync_backend_host.htheme_data_type_controller.htheme_data_type_controller_unittest.cctheme_util.cctyped_url_change_processor.htyped_url_data_type_controller.hui_model_worker_unittest.cc
js_arg_list.ccjs_arg_list.hjs_arg_list_unittest.ccnotifier
cache_invalidation_packet_handler.hcache_invalidation_packet_handler_unittest.ccchrome_invalidation_client.hchrome_system_resources.hinvalidation_notifier.hinvalidation_notifier_unittest.ccnon_blocking_invalidation_notifier.hnon_blocking_invalidation_notifier_unittest.ccp2p_notifier.h
profile_sync_factory_impl_unittest.ccprofile_sync_factory_mock.hprofile_sync_service.hprofile_sync_service_autofill_unittest.ccprofile_sync_service_session_unittest.ccprofile_sync_service_startup_unittest.ccprofile_sync_service_typed_url_unittest.ccprofile_sync_service_unittest.ccprofile_sync_test_util.hprotocol
sessions
signin_manager.hsync_setup_wizard.ccsync_setup_wizard_unittest.ccsync_ui_util_mac_unittest.mmsyncable
directory_backing_store_unittest.ccdirectory_manager.ccmodel_type_payload_map_unittest.ccmodel_type_unittest.ccsyncable.ccsyncable_id_unittest.ccsyncable_unittest.cc
tools
util
tab_contents
popup_menu_helper_mac.mmrender_view_context_menu.hrender_view_context_menu_gtk.hrender_view_context_menu_mac.hrender_view_context_menu_mac.mmtab_contents_ssl_helper.htab_contents_view_gtk.htab_contents_view_mac.hthumbnail_generator.ccthumbnail_generator.hweb_drag_dest_gtk.hweb_drop_target_win.h
tabs
task_manager
themes
translate
transport_security_persister.hui
app_modal_dialogs
browser.hbrowser_init.cccocoa
about_ipc_controller.habout_ipc_controller_unittest.mmabout_window_controller_unittest.mmaccelerators_cocoa.haccelerators_cocoa.mmaccelerators_cocoa_unittest.mmanimatable_image.hanimatable_view.hanimatable_view_unittest.mm
crypto_module_password_dialog.happlescript
bookmark_applescript_utils_unittest.hbookmark_folder_applescript.mmbookmark_folder_applescript_unittest.mmbookmark_item_applescript_unittest.mmbookmark_node_applescript.mmbrowsercrapplication+applescript.mmtab_applescript.mmwindow_applescript.mmwindow_applescript_test.mm
background_gradient_view_unittest.mmbackground_tile_view_unittest.mmbase_bubble_controller.hbase_bubble_controller.mmbase_view.hbase_view_unittest.mmbookmarks
bookmark_all_tabs_controller_unittest.mmbookmark_bar_controller.hbookmark_bar_controller_unittest.mmbookmark_bar_folder_button_cell_unittest.mmbookmark_bar_folder_controller.hbookmark_bar_folder_controller_unittest.mmbookmark_bar_folder_hover_state.hbookmark_bar_folder_view_unittest.mmbookmark_bar_folder_window.hbookmark_bar_folder_window.mmbookmark_bar_folder_window_unittest.mmbookmark_bar_toolbar_view_unittest.mmbookmark_bar_view_unittest.mmbookmark_bubble_controller.hbookmark_bubble_controller_unittest.mmbookmark_button.mmbookmark_button_cell_unittest.mmbookmark_button_unittest.mmbookmark_editor_base_controller.hbookmark_editor_base_controller_unittest.mmbookmark_menu_bridge.hbookmark_menu_bridge_unittest.mmbookmark_menu_unittest.mmbookmark_model_observer_for_cocoa.hbookmark_model_observer_for_cocoa_unittest.mmbookmark_name_folder_controller.hbookmark_name_folder_controller_unittest.mm
browser_frame_view_unittest.mmbrowser_window_cocoa.hbrowser_window_cocoa_unittest.mmbrowser_window_controller.hbrowser_window_controller.mmbrowser_window_controller_private.mmbrowser_window_controller_unittest.mmbubble_view.hbubble_view_unittest.mmbug_report_window_controller.hbug_report_window_controller_unittest.mmchrome_event_processing_window.hchrome_event_processing_window_unittest.mmclickhold_button_cell.hclickhold_button_cell_unittest.mmcocoa_test_helper.hcommand_observer_bridge_unittest.mmconfirm_quit_panel_controller.mmconfirm_quit_panel_controller_unittest.mmconstrained_html_delegate_mac.mmconstrained_window_mac.hcontent_settings
collected_cookies_mac.hcollected_cookies_mac_unittest.mmcontent_setting_bubble_cocoa.hcontent_setting_bubble_cocoa_unittest.mmcookie_details.hcookie_tree_node.h
dev_tools_controller.hdock_icon.mmdownload
download_item_button_unittest.mmdownload_item_cell.hdownload_item_controller.hdownload_item_mac.hdownload_shelf_controller.hdownload_shelf_view.mmdownload_shelf_view_unittest.mm
draggable_button.mmdraggable_button_unittest.mmextensions
browser_action_button.hbrowser_actions_container_view.mmbrowser_actions_container_view_unittest.mmbrowser_actions_controller.hchevron_menu_button_unittest.mmextension_action_context_menu.hextension_infobar_controller.hextension_install_prompt_controller.hextension_installed_bubble_controller.hextension_installed_bubble_controller_unittest.mmextension_popup_controller.hextension_popup_controller_unittest.mm
fast_resize_view_unittest.mmfind_bar
find_bar_cocoa_controller.hfind_bar_text_field_cell.hfind_bar_text_field_cell_unittest.mmfind_bar_text_field_unittest.mmfind_bar_view_unittest.mm
find_pasteboard.hfind_pasteboard_unittest.mmfirst_run_bubble_controller_unittest.mmfirst_run_dialog.mmfocus_tracker.hfocus_tracker_unittest.mmframed_browser_window.hframed_browser_window_unittest.mmfullscreen_window_unittest.mmgradient_button_cell.hgradient_button_cell.mmgradient_button_cell_unittest.mmhistory_menu_bridge.hhistory_menu_bridge_unittest.mmhistory_menu_cocoa_controller.mmhistory_menu_cocoa_controller_unittest.mmhover_button.hhover_close_button.hhover_close_button.mmhover_image_button.hhover_image_button.mmhover_image_button_unittest.mmhtml_dialog_window_controller.hhtml_dialog_window_controller.mmhung_renderer_controller.hhung_renderer_controller_unittest.mmhyperlink_button_cell.hhyperlink_button_cell_unittest.mmimporter
info_bubble_view.mminfo_bubble_view_unittest.mminfo_bubble_window.hinfo_bubble_window.mminfo_bubble_window_unittest.mminfobars
infobar_container_controller.hinfobar_container_controller_unittest.mminfobar_controller.hinfobar_controller_unittest.mminfobar_gradient_view.mminfobar_gradient_view_unittest.mm
js_modal_dialog_cocoa.hlocation_bar
autocomplete_text_field.hautocomplete_text_field_cell_unittest.mmautocomplete_text_field_editor.hautocomplete_text_field_editor_unittest.mmautocomplete_text_field_unittest.mmautocomplete_text_field_unittest_helper.hbubble_decoration.hcontent_setting_decoration.himage_decoration.hinstant_opt_in_controller_unittest.mmkeyword_hint_decoration.hlocation_bar_view_mac.homnibox_popup_view_unittest.mm
menu_button.hmenu_button.mmmenu_button_unittest.mmmenu_controller.hnew_tab_button.hnotifications
nsmenuitem_additions_unittest.mmobjc_method_swizzle.mmobjc_method_swizzle_unittest.mmpage_info_bubble_controller.hpage_info_bubble_controller_unittest.mmrepost_form_warning_mac.hrepost_form_warning_mac.mmsearch_engine_dialog_controller.hshell_dialogs_mac.mmsidebar_controller.hssl_client_certificate_selector.mmstatus_bubble_mac_unittest.mmstatus_icons
styled_text_field_cell_unittest.mmstyled_text_field_unittest.mmtab_contents
previewable_contents_controller_unittest.mmsad_tab_controller_unittest.mmsad_tab_view.htab_contents_controller.htab_contents_controller.mmweb_contents_drag_source.hweb_drag_source.h
tab_view_picker_table.htab_view_picker_table_unittest.mmtable_model_array_controller.htable_row_nsimage_cache.htabpose_window.htabpose_window.mmtabs
side_tab_strip_view.mmside_tab_strip_view_unittest.mmtab_controller_unittest.mmtab_strip_controller.htab_strip_view.htab_strip_view_unittest.mmtab_view.htab_view_unittest.mmtab_window_controller.hthrobber_view.hthrobber_view_unittest.mm
task_manager_mac.htask_manager_mac_unittest.mmtheme_install_bubble_view.mmtoolbar
back_forward_menu_controller.hback_forward_menu_controller.mmreload_button.hreload_button_unittest.mmtoolbar_button_unittest.mmtoolbar_controller.htoolbar_controller.mmtoolbar_controller_unittest.mmtoolbar_view_unittest.mm
tracking_area.htracking_area_unittest.mmtranslate
vertical_gradient_view.hvertical_gradient_view_unittest.mmwindow_size_autosaver_unittest.mmwrench_menu
find_bar
gtk
accelerators_gtk.ccback_forward_button_gtk.h
input_window_dialog_gtk.ccbookmarks
browser_actions_toolbar_gtk.hbrowser_titlebar.ccbrowser_titlebar.hbrowser_toolbar_gtk.ccbrowser_toolbar_gtk.hbrowser_window_gtk.ccbrowser_window_gtk.hcertificate_dialogs.cccertificate_viewer.cccollected_cookies_gtk.hcontent_setting_bubble_gtk.hcreate_application_shortcuts_dialog_gtk.hcustom_button.hdownload_item_gtk.hdownload_shelf_gtk.hedit_search_engine_dialog.hextensions
find_bar_gtk.hgconf_titlebar_listener.ccgconf_titlebar_listener.hgtk_theme_service.hhtml_dialog_gtk.himporter
infobars
js_modal_dialog_gtk.hlocation_bar_view_gtk.hmenu_bar_helper.hnotifications
repost_form_warning_gtk.hslide_animator_gtk.hstatus_bubble_gtk.htabs
task_manager_gtk.hlogin
search_engines
shell_dialogs.htab_contents
tests
toolbar
touch
tabs
views
about_ipc_dialog.haccessibility_event_router_views.haccessible_pane_view.h
autocomplete
bookmarks
chrome_views_delegate.ccdefault_search_view.hdom_view.hdownload_item_view.hdropdown_bar_host.hextensions
file_manager_dialogs.ccframe
fullscreen_exit_bubble.hgeneric_info_view.hhtml_dialog_view_browsertest.ccimporter
keyboard_overlay_delegate.cclocation_bar
notifications
select_file_dialog.ccstatus_bubble_views.hstatus_icons
tab_contents
render_view_context_menu_views.htab_contents_drag_win.htab_contents_view_gtk.htab_contents_view_views.htab_contents_view_win.h
tabs
toolbar_view.hwrench_menu.hwebui
app_launcher_handler.hbookmarks_ui.ccbug_report_ui.ccchrome_url_data_manager.ccchrome_url_data_manager.hchrome_url_data_manager_backend.ccchrome_url_data_manager_backend.h
chromeos
imageburner_ui.ccimageburner_ui.hkeyboard_overlay_ui.cc
collected_cookies_ui_delegate.hcookies_tree_model_adapter.cccrashes_ui.ccdownloads_dom_handler.ccdownloads_dom_handler.hdownloads_ui.ccextension_icon_source.ccfavicon_source.hfilebrowse_ui.ccfileicon_source.ccflags_ui.ccforeign_session_handler.ccgpu_internals_ui.cchistory2_ui.cchistory_ui.cchtml_dialog_tab_contents_delegate_unittest.cckeyboard_ui.ccmediaplayer_browsertest.ccmediaplayer_ui.ccmost_visited_handler.ccnet_internals_ui.ccnew_tab_ui.ccntp_resource_cache.ccntp_resource_cache.hlogin
authenticator_facade_cros.hauthenticator_facade_cros_unittest.cclogin_container_ui.cclogin_container_ui.hlogin_ui.cclogin_ui.hlogin_ui_unittest.cc
mobile_setup_ui.ccproxy_settings_ui.ccregister_page_ui.ccsim_unlock_ui.ccsystem_info_ui.ccoptions
browser_options_handler.cccertificate_manager_handler.cccertificate_manager_handler.hcookies_view_handler.hcore_options_handler.ccextension_settings_handler.ccextension_settings_handler.hfont_settings_fonts_list_loader.himport_data_handler.ccimport_data_handler.hlanguage_options_handler_unittest.ccoptions_ui.ccoptions_ui.h
plugins_ui.ccprint_preview_handler.hprint_preview_ui.hremoting_ui.ccscreenshot_source.ccshared_resources_data_source.ccshown_sections_handler_unittest.ccslideshow_ui.ccsync_internals_html_source.ccsync_internals_ui.cctextfields_ui.cctheme_source.cctheme_source_unittest.ccthumbnail_source.hwindow_snapshot
visitedlink
webdata
common
chrome_paths_linux.ccchrome_version_info.hcommon_param_traits_unittest.cc
extensions
extension.ccextension.hextension_file_util.ccextension_file_util_unittest.ccextension_l10n_util.ccextension_l10n_util_unittest.ccextension_localization_peer.ccextension_localization_peer_unittest.ccextension_manifests_unittest.ccextension_message_bundle.ccextension_message_bundle.hextension_message_bundle_unittest.ccextension_resource_unittest.ccextension_set.hextension_set_unittest.ccextension_unpacker.ccextension_unpacker.hupdate_manifest.ccupdate_manifest_unittest.ccurl_pattern_unittest.cc
important_file_writer.himportant_file_writer_unittest.ccjson_pref_store.hjson_pref_store_unittest.ccjson_schema_validator_unittest_base.cclaunchd_mac.hmetrics_helpers.hmulti_process_lock_unittest.ccnet
pref_store.href_counted_util.hservice_process_util.ccservice_process_util.hservice_process_util_mac.mmservice_process_util_posix.hservice_process_util_unittest.ccservice_process_util_win.ccsqlite_utils.htime_format.ccweb_apps_unittest.ccweb_resource
zip_unittest.ccdefault_plugin
installer
mini_installer
setup
chrome_frame_quick_enable.ccchrome_frame_ready_mode.ccinstall.ccinstall_worker.hsetup_main.ccsetup_util_unittest.cc
util
conditional_work_item_list.hcopy_tree_work_item.hcopy_tree_work_item_unittest.cccreate_dir_work_item_unittest.cccreate_reg_key_work_item_unittest.ccdelete_after_reboot_helper_unittest.ccdelete_reg_key_work_item.hdelete_reg_key_work_item_unittest.ccdelete_reg_value_work_item_unittest.ccdelete_tree_work_item.hdelete_tree_work_item_unittest.ccgoogle_chrome_distribution.ccgoogle_chrome_distribution_unittest.ccgoogle_update_settings_unittest.ccinstall_util.ccinstallation_state.hinstallation_validator.hinstallation_validator_unittest.ccinstaller_state.ccinstaller_state.hinstaller_state_unittest.ccl10n_string_util.ccmaster_preferences.hmaster_preferences_unittest.ccmove_tree_work_item.hmove_tree_work_item_unittest.ccproduct.hproduct_unittest.hself_cleaning_temp_dir_unittest.ccset_reg_value_work_item_unittest.ccshell_util.ccwork_item_list.hwork_item_list_unittest.cc
nacl
profile_import
renderer
autofill
devtools_client.hextensions
mock_printer.hnet
print_web_view_helper.hprint_web_view_helper_linux.ccprint_web_view_helper_mac.mmrender_thread.ccrenderer_glue.ccrenderer_main.ccrenderer_main_platform_delegate_win.ccsafe_browsing
malware_dom_details.hphishing_classifier.hphishing_classifier_browsertest.ccphishing_classifier_delegate.ccphishing_classifier_delegate.hphishing_classifier_delegate_browsertest.ccphishing_dom_feature_extractor.hphishing_term_feature_extractor.hphishing_term_feature_extractor_unittest.ccrender_view_fake_resources_test.hscorer.ccscorer.hscorer_unittest.cc
spellchecker
user_script_slave.hservice
cloud_print
cloud_print_helpers.cccloud_print_proxy.hcloud_print_url_fetcher.hcloud_print_url_fetcher_unittest.ccjob_status_updater.hprint_system.hprint_system_cups.ccprint_system_win.ccprinter_job_handler.h
gaia
remoting
service_ipc_server.hservice_process.ccservice_process.hservice_utility_process_host.ccservice_utility_process_host.htest
automation
automation_handle_tracker.hautomation_json_requests.ccautomation_proxy.ccautomation_proxy.hautomation_proxy_uitest.ccdom_automation_browsertest.ccdom_element_proxy.hextension_proxy_uitest.ccjavascript_execution_controller.hjavascript_message_utils.hproxy_launcher.htab_proxy.h
chrome_process_util.hin_process_browser_test.hlive_sync
live_extensions_sync_test.cclive_extensions_sync_test.hlive_extensions_sync_test_base.cclive_extensions_sync_test_base.hlive_sessions_sync_test.hlive_sync_test.hlive_themes_sync_test.hmultiple_client_live_preferences_sync_test.ccsingle_client_live_sessions_sync_test.cc
mini_installer_test
out_of_proc_test_runner.ccpyautolib
render_view_test.hsync
tab_switching
test_launcher_utils.cctest_url_request_context_getter.htesting_browser_process.htesting_pref_service.htesting_profile.hthread_observer_helper.hthread_test_helper.hui
ui_test_utils.ccui_test_utils.hunit
webdriver
third_party
mozilla_security_manager
tools
mac_helpers
utility
chrome_frame
cfproxy_support.cccfproxy_test.ccchrome_active_document.hchrome_frame_activex.ccchrome_frame_automation.hchrome_frame_histograms.hchrome_frame_plugin.hscoped_ns_ptr_win.hsimple_resource_loader.ccsimple_resource_loader.h
crash_reporting
custom_sync_call_context.hdll_redirector.hexternal_tab.hfind_dialog.hhttp_negotiate.ccinfobars
metrics_service.hnp_proxy_service.hplugin_url_request.hpolicy_settings.hprotocol_sink_wrap.ccprotocol_sink_wrap.hready_mode
internal
ready_mode_web_browser_adapter.hready_prompt_content.hready_prompt_window.hregistry_ready_mode_state.h
ready_mode.cctest
chrome_frame_test_utils.ccchrome_frame_test_utils.hchrome_frame_ui_test_utils.ccchrome_frame_ui_test_utils.hdll_redirector_loading_test.cchtml_util_unittests.cc
urlmon_bind_status_callback.hurlmon_upload_data_stream.hurlmon_upload_data_stream_unittest.ccurlmon_url_request.ccvtable_patch_manager.ccperf
policy_settings_unittest.ccready_mode_unittest.ccwin_event_receiver.hcontent
browser
appcache
browser_thread_unittest.ccbrowsing_instance.hcancelable_request.hcert_store.hcertificate_manager_model.hchild_process_launcher.ccchild_process_launcher.hchild_process_security_policy.hchrome_blob_storage_context.hcross_site_request_manager.ccdevice_orientation
file_system
geolocation
access_token_store.harbitrator_dependency_factory.hcore_location_data_provider_mac.hdevice_data_provider.hgateway_data_provider_common.hgateway_data_provider_common_unittest.ccgeolocation_permission_context.hgeolocation_provider.ccgeolocation_provider_unittest.ccgps_location_provider_linux.hlibgps_wrapper_linux.hlocation_arbitrator.hlocation_arbitrator_unittest.ccmock_location_provider.hnetwork_location_provider.hnetwork_location_provider_unittest.ccnetwork_location_request.hwifi_data_provider_common.hwifi_data_provider_common_unittest.ccwifi_data_provider_corewlan_mac.mmwifi_data_provider_linux.ccwin7_location_api_unittest_win.ccwin7_location_api_win.ccwin7_location_provider_win.h
gpu_blacklist.hgpu_blacklist_unittest.ccgpu_process_host.cchost_zoom_map.hhost_zoom_map_unittest.ccin_process_webkit
dom_storage_area.hdom_storage_browsertest.ccdom_storage_context.hdom_storage_message_filter.hdom_storage_namespace.hindexed_db_browsertest.ccindexed_db_callbacks.hindexed_db_context.hindexed_db_database_callbacks.hindexed_db_key_utility_client.hindexed_db_transaction_callbacks.hsession_storage_namespace.hwebkit_context.hwebkit_thread.h
plugin_process_host.hplugin_service.hrenderer_host
accelerated_surface_container_mac.haudio_renderer_host.haudio_renderer_host_unittest.ccbacking_store_skia.hmock_render_process_host.hpepper_file_message_filter.hredirect_to_file_resource_handler.hrender_message_filter.hrender_process_host.hrender_sandbox_host_linux.ccrender_view_host.hrender_view_host_delegate.ccrender_view_host_delegate.hrender_view_host_manager_browsertest.ccrender_widget_helper.hrender_widget_host.hrender_widget_host_unittest.ccresource_dispatcher_host.ccresource_dispatcher_host.hresource_message_filter.hresource_queue_unittest.ccsocket_stream_host.hx509_user_cert_resource_handler.h
speech
audio_encoder.cc
endpointer
speech_input_dispatcher_host.hspeech_recognition_request.hspeech_recognizer.htab_contents
interstitial_page.hnavigation_controller.hnavigation_controller_unittest.ccnavigation_entry.hrender_view_host_manager.htab_contents.h
trace_controller.hworker_host
zygote_host_linux.cczygote_main_linux.cccommon
child_process.hchild_process_host.hchild_thread.hchrome_application_mac.hcommon_param_traits.h
file_path_watcher
file_path_watcher.hfile_path_watcher_browsertest.ccfile_path_watcher_inotify.ccfile_path_watcher_mac.ccfile_path_watcher_win.cc
file_system
process_watcher_win.ccproperty_bag.ccresource_dispatcher.hresource_dispatcher_unittest.ccresource_response.hsandbox_mac_fontloading_unittest.mmsandbox_mac_unittest_helper.mmsocket_stream_dispatcher.ccwebblobregistry_impl.ccwebmessageportchannel_impl.hgpu
gpu_channel.hgpu_child_thread.hgpu_command_buffer_stub.hgpu_info_collector_linux.ccgpu_info_collector_mac.mmgpu_info_collector_unittest.ccgpu_info_collector_win.ccgpu_info_unittest_win.ccgpu_render_thread.hgpu_video_decoder.hgpu_video_service.hgpu_watchdog_thread.h
media
plugin
npobject_proxy.hnpobject_stub.hplugin_channel.hplugin_channel_base.hplugin_main_mac.mmwebplugin_delegate_stub.ccwebplugin_delegate_stub.hwebplugin_proxy.ccwebplugin_proxy.h
ppapi_plugin
renderer
active_notification_tracker.ccaudio_device.ccaudio_device.hcommand_buffer_proxy.hdevice_orientation_dispatcher.hgeolocation_dispatcher.hggl.ccggl.hgpu_channel_host.hgpu_video_decoder_host.hgpu_video_service_host.h
media
navigation_state.hp2p
pepper_platform_context_3d_impl.hpepper_plugin_delegate_impl.ccpepper_plugin_delegate_impl.hrender_view.hrender_widget.ccrender_widget.hrender_widget_browsertest.ccrender_widget_unittest.ccrenderer_sandbox_support_linux.ccrenderer_webaudiodevice_impl.hrenderer_webkitclient_impl.hweb_ui_bindings.ccwebgraphicscontext3d_command_buffer_impl.hwebplugin_delegate_proxy.ccwebplugin_delegate_proxy.hworker
courgette
gpu
command_buffer
client
service
buffer_manager.hcmd_parser_test.cccommand_buffer_service.hcommon_decoder.hcontext_group.hcontext_group_unittest.ccfeature_info_unittest.ccframebuffer_manager.hgles2_cmd_decoder.ccgpu_processor.hprogram_manager.ccprogram_manager.hprogram_manager_unittest.ccrenderbuffer_manager.hshader_manager.hshader_manager_unittest.ccshader_translator.htexture_manager.htexture_manager_unittest.cc
common
demos
ipc
file_descriptor_set_posix.hipc_channel_posix.ccipc_channel_posix_unittest.ccipc_channel_proxy.ccipc_channel_proxy.hipc_channel_win.hipc_logging.hipc_message.hipc_message_unittest.ccipc_message_utils.ccipc_sync_channel.hipc_sync_channel_unittest.ccipc_sync_message_filter.h
jingle/notifier
base
chrome_async_socket.hchrome_async_socket_unittest.ccfake_base_task.hfake_ssl_client_socket.hfake_ssl_client_socket_unittest.ccweak_xmpp_client.hweak_xmpp_client_unittest.ccxmpp_connection.hxmpp_connection_unittest.cc
communicator
listener
media
audio
audio_input_controller.haudio_input_unittest.ccaudio_output_controller.haudio_output_dispatcher.hfake_audio_input_stream.hfake_audio_output_stream.h
linux
simple_sources.ccsimple_sources_unittest.ccwin
base
async_filter_factory_base.hbuffers.hcallback.hclock.hcomposite_data_source_factory.ccdata_buffer.hfilter_collection.hfilters.hh264_bitstream_converter_unittest.ccmedia_win.ccmessage_loop_factory.hmock_filter_host.hmock_reader.hpipeline_impl.hseekable_buffer.hseekable_buffer_unittest.ccvideo_frame_unittest.cc
ffmpeg
filters
audio_renderer_algorithm_base.hffmpeg_demuxer.ccffmpeg_demuxer_factory.hffmpeg_glue.hffmpeg_glue_unittest.ccffmpeg_video_decoder_unittest.ccnull_audio_renderer.hrtc_video_decoder_unittest.ccvideo_renderer_base.h
omx
tools
mfdecoder
omx_test
player_wtl
player_x11
scaler_bench
shader_bench
tile_render_bench
wav_ola_test
video
net
base
address_list.haddress_list_unittest.ccauth.hcapturing_net_log.hcert_database.cccert_database.hcert_database_nss.cccert_database_nss_unittest.cccert_test_util.hcert_verifier.hcookie_monster.cccookie_monster.hcookie_monster_unittest.cccookie_store.hcrypto_module.hdirectory_lister.hdnsrr_resolver.ccdnsrr_resolver.hdnssec_chain_verifier.ccdnssec_keyset.ccdnssec_unittest.ccfile_stream.hfilter.hgzip_filter.hgzip_filter_unittest.cchost_cache.hhost_resolver.hhost_resolver_impl.hhost_resolver_impl_unittest.cchost_resolver_proc.hio_buffer.hkeygen_handler.hkeygen_handler_openssl.cclisten_socket.hlisten_socket_unittest.hmapped_host_resolver.hmock_host_resolver.ccnet_log.hnet_test_suite.hnet_util.ccnet_util_win.ccnetwork_change_notifier_linux.hnetwork_config_watcher_mac.hopenssl_memory_private_key_store.ccregistry_controlled_domain.ccscoped_cert_chain_context.hsdch_filter.hsdch_filter_unittest.ccsdch_manager.hssl_cert_request_info.hssl_client_auth_cache.hssl_config_service.hssl_info.htransport_security_state.cctransport_security_state.hupload_data.hupload_data_stream.hupload_data_stream_unittest.ccx509_certificate.ccx509_certificate.hx509_certificate_mac.ccx509_certificate_nss.ccx509_certificate_openssl.cc
disk_cache
ftp
ftp_network_layer.hftp_network_session.hftp_network_transaction.hftp_network_transaction_unittest.cc
http
disk_cache_based_ssl_host_info.hhttp_auth.hhttp_auth_cache.hhttp_auth_controller.hhttp_auth_filter_unittest.cchttp_auth_gssapi_posix_unittest.cchttp_auth_handler_basic_unittest.cchttp_auth_handler_digest.hhttp_auth_handler_factory.hhttp_auth_handler_factory_unittest.cchttp_auth_unittest.cchttp_basic_stream.hhttp_cache.cchttp_cache.hhttp_cache_transaction.cchttp_cache_unittest.cchttp_net_log_params.hhttp_network_layer.hhttp_network_session.hhttp_network_session_peer.hhttp_network_transaction.cchttp_network_transaction.hhttp_network_transaction_unittest.cchttp_proxy_client_socket.hhttp_proxy_client_socket_pool.hhttp_request_info.hhttp_response_body_drainer.hhttp_response_headers.hhttp_stream_factory.hhttp_stream_factory_impl.hhttp_stream_factory_impl_job.hhttp_stream_factory_impl_request.hhttp_transaction_factory.hhttp_util.hurl_security_manager.h
proxy
mock_proxy_resolver.hmulti_threaded_proxy_resolver.hpolling_proxy_config_service.ccpolling_proxy_config_service.hproxy_config_service_linux.hproxy_config_service_mac.hproxy_config_service_win.ccproxy_resolver.hproxy_resolver_js_bindings_unittest.ccproxy_resolver_script_data.hproxy_resolver_v8.hproxy_script_fetcher_impl.hproxy_service.hsync_host_resolver_bridge.h
server
socket
client_socket_handle.hclient_socket_pool.hclient_socket_pool_base.hclient_socket_pool_base_unittest.ccclient_socket_pool_histograms.hclient_socket_pool_manager.hdns_cert_provenance_checker.ccnss_ssl_util.ccsocket_test_util.hsocks5_client_socket.hsocks_client_socket.hsocks_client_socket_pool.hssl_client_socket_mac.hssl_client_socket_nss.ccssl_client_socket_nss.hssl_client_socket_openssl.ccssl_client_socket_openssl.hssl_client_socket_pool.hssl_client_socket_win.hssl_host_info.hssl_server_socket_nss.ccssl_server_socket_nss.htcp_client_socket_libevent.htcp_client_socket_pool.htcp_client_socket_win.cc
socket_stream
spdy
spdy_framer.ccspdy_framer.hspdy_framer_test.ccspdy_http_stream.hspdy_io_buffer.hspdy_protocol_test.ccspdy_proxy_client_socket.hspdy_session.ccspdy_session.hspdy_session_pool.hspdy_stream.hspdy_stream_unittest.cc
test
third_party
mozilla_security_manager
tools
udp
url_request
https_prober.ccurl_request.ccurl_request.hurl_request_context.hurl_request_context_storage.hurl_request_http_job.hurl_request_job.hurl_request_job_manager.ccurl_request_throttler_entry_interface.hurl_request_throttler_header_adapter.hurl_request_throttler_manager.hurl_request_throttler_unittest.cc
websockets
websocket.hwebsocket_frame_handler.hwebsocket_frame_handler_unittest.ccwebsocket_handshake.ccwebsocket_handshake.hwebsocket_handshake_draft75.ccwebsocket_handshake_draft75_unittest.ccwebsocket_handshake_handler.hwebsocket_handshake_unittest.ccwebsocket_job_unittest.ccwebsocket_net_log_params.hwebsocket_net_log_params_unittest.ccwebsocket_throttle.cc
o3d
converter
converter_edge
core
cross
win
import
plugin
cross
mac
npapi_host_control
statsreport
utils
ppapi
proxy
dispatcher.ccdispatcher.hhost_dispatcher.hhost_dispatcher_unittest.ccplugin_dispatcher.hplugin_dispatcher_unittest.ccplugin_resource_tracker.ccplugin_resource_tracker.hplugin_resource_tracker_unittest.ccplugin_var_tracker.ccppapi_proxy_test.hppb_pdf_proxy.ccserialized_flash_menu.hserialized_var.h
shared_impl
printing
backend
emf_win.ccemf_win_unittest.ccimage.ccnative_metafile_factory.ccprinted_document.hprinted_page.hprinting_context_mac.hprinting_context_win.hprinting_context_win_unittest.ccremoting
base
capture_data.hcodec_test.hcompound_buffer.hcompound_buffer_unittest.cccompressor_zlib.hdecoder.hdecompressor_verbatim.hdecompressor_zlib.htracer.cctracer.h
client
chromoting_view.hchromoting_view_unittest.ccclient_util_unittest.cc
plugin
chromoting_instance.hchromoting_plugin_unittest.ccchromoting_scriptable_object.hpepper_view.hpepper_view_proxy.hpepper_xmpp_proxy.h
rectangle_update_decoder.hx11_view.hhost
access_verifier_unittest.cccapturer_fake.hcapturer_fake_ascii.hcapturer_gdi.hcapturer_linux.hcapturer_mac.hcapturer_mac_unittest.ccchromoting_host.hclient_session.ccdesktop_environment.hdiffer.hdiffer_block_unittest.ccdiffer_unittest.ccevent_executor_linux.hevent_executor_win.hheartbeat_sender.hheartbeat_sender_unittest.cchost_config.hhost_key_pair.hhost_key_pair_unittest.ccin_memory_host_config.hjson_host_config.hjson_host_config_unittest.cckeygen_main.ccscreen_recorder.ccscreen_recorder.hx_server_pixel_buffer.h
jingle_glue
channel_socket_adapter_unittest.cchttp_port_allocator.hiq_request.cciq_request.hiq_request_unittest.ccjingle_client.hssl_socket_adapter.hstream_socket_adapter.hstream_socket_adapter_unittest.ccxmpp_proxy.h
protocol
buffered_socket_writer.hclient_control_sender.hclient_message_dispatcher.ccclient_message_dispatcher.hconnection_to_client.hconnection_to_host.hfake_session.hhost_control_sender.hhost_message_dispatcher.cchost_message_dispatcher.hinput_sender.hjingle_session.hjingle_session_manager.hmessage_decoder.hmessage_decoder_unittest.ccmessage_reader.hprotobuf_video_writer.hrtp_reader.hsession_manager.hsession_manager_pair.hsocket_reader_base.hsocket_wrapper.h
sandbox
src
Wow64.ccacl.hinterception.ccinterception_unittest.ccprocess_thread_policy.ccservice_resolver_32.ccservice_resolver_64.ccservice_resolver_unittest.ccsharedmem_ipc_server.cctarget_process.ccwin_utils.ccwindow.cc
wow_helper
skia/ext
bitmap_platform_device_linux.hbitmap_platform_device_mac.ccbitmap_platform_device_mac_unittest.ccskia_utils_mac.mm
testing
third_party
cacheinvalidation
overrides
google
cacheinvalidation
cld
base
libjingle
overrides
talk
base
protobuf
src
google
protobuf
stubs
tools/imagediff
ui
base
animation
clipboard
dragdrop
download_file_interface.hdrag_source.hdrop_target.hgtk_dnd_util_unittest.ccos_exchange_data.hos_exchange_data_provider_win.ccos_exchange_data_win_unittest.cc
l10n
models
resource
text
view_prop.hview_prop_unittest.ccwin
x
gfx
canvas_direct2d.cccanvas_direct2d_unittest.cc
codec
compositor
font.hgtk_native_view_id_manager.hgtk_util.hicon_util.ccicon_util_unittest.ccimage_unittest.ccimage_unittest.hnative_theme_win.ccpath_gtk.ccpath_win.ccplatform_font.hplatform_font_gtk.hplatform_font_mac.mmplatform_font_win.hsurface
accelerated_surface_mac.hio_surface_support_mac.cctransport_dib_linux.cctransport_dib_mac.cctransport_dib_win.cc
transform_skia.hviews
views
accessibility
animation
controls
focus
mouse_watcher.hrepeat_controller.htest
touchui
view.ccview.hwidget
window
webkit
appcache
appcache.happcache_database.happcache_database_unittest.ccappcache_disk_cache.happcache_group.happcache_host.happcache_host_unittest.ccappcache_interceptor.happcache_response.happcache_service.happcache_storage.happcache_update_job.hmock_appcache_storage.ccmock_appcache_storage.h
blob
blob_data.hblob_storage_controller.hblob_storage_controller_unittest.ccblob_url_request_job.hblob_url_request_job_unittest.ccdeletable_file_reference.hdeletable_file_reference_unittest.cc
chromeos
fileapi
database
fileapi
file_system_context.hfile_system_context_unittest.ccfile_system_dir_url_request_job.hfile_system_dir_url_request_job_unittest.ccfile_system_file_util.hfile_system_file_util_proxy.hfile_system_operation.hfile_system_operation_context.hfile_system_operation_unittest.ccfile_system_path_manager.ccfile_system_path_manager_unittest.ccfile_system_url_request_job.hfile_system_url_request_job_unittest.ccfile_system_usage_cache_unittest.ccfile_system_usage_tracker.ccfile_system_usage_tracker.hfile_system_usage_tracker_unittest.ccfile_writer_delegate.hlocal_file_system_file_util.hsandbox_mount_point_provider.ccsandbox_mount_point_provider_unittest.ccwebfilewriter_base_unittest.cc
glue
alt_error_page_resource_fetcher.hcpp_bound_class.hidb_bindings.cc
media
resource_fetcher.hresource_loader_bridge.hwebkit_glue.ccwebkitclient_impl.ccwebmediaplayer_impl.hwebmenurunner_mac.hwebsocketstreamhandle_bridge.hwebsocketstreamhandle_impl.ccwebsocketstreamhandle_impl.hweburlloader_impl.ccweburlloader_impl.hgpu
plugins
npapi
plugin_group.ccplugin_group.hplugin_group_unittest.ccplugin_host.ccplugin_host.hplugin_instance.hplugin_lib.hplugin_lib_mac.mmplugin_list.hplugin_list_win.ccplugin_stream.hwebplugin_delegate_impl.ccwebplugin_delegate_impl.hwebplugin_delegate_impl_mac.mmwebplugin_delegate_impl_win.ccwebplugin_impl.ccwebplugin_impl.hwebview_plugin.h
ppapi
callbacks.hcallbacks_unittest.ccevent_conversion.ccfile_callbacks.hnpapi_glue.ccnpapi_glue.hplugin_delegate.hplugin_module.ccplugin_module.hplugin_object.ccppapi_plugin_instance.ccppapi_plugin_instance.hppapi_unittest.hppapi_webplugin_impl.hppb_audio_impl.hppb_buffer_impl.ccppb_buffer_impl.hppb_context_3d_impl.hppb_cursor_control_impl.ccppb_file_chooser_impl.hppb_file_io_impl.hppb_file_system_impl.ccppb_flash_clipboard_impl.ccppb_flash_menu_impl.hppb_flash_net_connector_impl.hppb_font_impl.hppb_image_data_impl.ccppb_image_data_impl.hppb_transport_impl.hppb_url_loader_impl.hppb_url_request_info_impl.hppb_video_decoder_impl.hppb_widget_impl.hresource.hresource_tracker.hresource_tracker_unittest.ccstring.hvar.ccvar.h
quota
support
tools
pepper_test_plugin
test_shell
image_decoder_unittest.ccimage_decoder_unittest.h
mac
simple_file_system.ccsimple_file_system.hsimple_file_writer.hsimple_resource_loader_bridge.ccsimple_socket_stream_bridge.cctest_navigation_controller.htest_shell.htest_shell_devtools_client.htest_shell_mac.mmtest_shell_main.cctest_shell_webblobregistry_impl.htest_shell_win.cctest_web_worker.htest_webview_delegate.hwebwidget_host.h@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "third_party/angle/include/EGL/egl.h"
|
||||
|
||||
// This header must come after the above third-party include, as
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "app/gfx/gl/gl_context.h"
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "ui/gfx/size.h"
|
||||
|
||||
typedef void* EGLDisplay;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -19,7 +19,7 @@ extern "C" {
|
||||
#include "app/gfx/gl/gl_implementation.h"
|
||||
#include "base/basictypes.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "ui/base/x/x11_util.h"
|
||||
|
||||
namespace {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
#include "app/gfx/gl/gl_implementation.h"
|
||||
#include "base/basictypes.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
namespace gfx {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
#define APP_GFX_GL_GL_CONTEXT_OSMESA_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "app/gfx/gl/gl_context.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "ui/gfx/size.h"
|
||||
|
||||
typedef struct osmesa_context *OSMesaContext;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
#include "app/gfx/gl/gl_implementation.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
namespace gfx {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
#include <string>
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/time.h"
|
||||
|
||||
class FilePath;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
#include "app/sql/connection.h"
|
||||
#include "base/basictypes.h"
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/string16.h"
|
||||
|
||||
namespace sql {
|
||||
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// This is a low level implementation of atomic semantics for reference
|
||||
// counting. Please use base/ref_counted.h directly instead.
|
||||
// counting. Please use base/memory/ref_counted.h directly instead.
|
||||
//
|
||||
// The implementation includes annotations to avoid some false positives
|
||||
// when using data race detection tools.
|
||||
|
@ -99,9 +99,15 @@
|
||||
'json/string_escape_unittest.cc',
|
||||
'lazy_instance_unittest.cc',
|
||||
'linked_list_unittest.cc',
|
||||
'linked_ptr_unittest.cc',
|
||||
'logging_unittest.cc',
|
||||
'mac/mac_util_unittest.mm',
|
||||
'memory/linked_ptr_unittest.cc',
|
||||
'memory/ref_counted_unittest.cc',
|
||||
'memory/scoped_native_library_unittest.cc',
|
||||
'memory/scoped_ptr_unittest.cc',
|
||||
'memory/scoped_temp_dir_unittest.cc',
|
||||
'memory/singleton_unittest.cc',
|
||||
'memory/weak_ptr_unittest.cc',
|
||||
'message_loop_proxy_impl_unittest.cc',
|
||||
'message_loop_unittest.cc',
|
||||
'message_pump_glib_unittest.cc',
|
||||
@ -117,14 +123,9 @@
|
||||
'process_util_unittest_mac.h',
|
||||
'process_util_unittest_mac.mm',
|
||||
'rand_util_unittest.cc',
|
||||
'ref_counted_unittest.cc',
|
||||
'scoped_native_library_unittest.cc',
|
||||
'scoped_ptr_unittest.cc',
|
||||
'scoped_temp_dir_unittest.cc',
|
||||
'sha1_unittest.cc',
|
||||
'sha2_unittest.cc',
|
||||
'shared_memory_unittest.cc',
|
||||
'singleton_unittest.cc',
|
||||
'stack_container_unittest.cc',
|
||||
'string16_unittest.cc',
|
||||
'string_number_conversions_unittest.cc',
|
||||
@ -167,7 +168,6 @@
|
||||
'values_unittest.cc',
|
||||
'version_unittest.cc',
|
||||
'vlog_unittest.cc',
|
||||
'weak_ptr_unittest.cc',
|
||||
'win/event_trace_consumer_unittest.cc',
|
||||
'win/event_trace_controller_unittest.cc',
|
||||
'win/event_trace_provider_unittest.cc',
|
||||
|
@ -107,7 +107,6 @@
|
||||
'lazy_instance.cc',
|
||||
'lazy_instance.h',
|
||||
'linked_list.h',
|
||||
'linked_ptr.h',
|
||||
'logging.cc',
|
||||
'logging.h',
|
||||
'logging_win.cc',
|
||||
@ -124,8 +123,27 @@
|
||||
'mac/scoped_nsautorelease_pool.mm',
|
||||
'mach_ipc_mac.h',
|
||||
'mach_ipc_mac.mm',
|
||||
'memory_debug.cc',
|
||||
'memory_debug.h',
|
||||
'memory/linked_ptr.h',
|
||||
'memory/memory_debug.cc',
|
||||
'memory/memory_debug.h',
|
||||
'memory/raw_scoped_refptr_mismatch_checker.h',
|
||||
'memory/ref_counted.cc',
|
||||
'memory/ref_counted.h',
|
||||
'memory/ref_counted_memory.cc',
|
||||
'memory/ref_counted_memory.h',
|
||||
'memory/scoped_callback_factory.h',
|
||||
'memory/scoped_handle.h',
|
||||
'memory/scoped_native_library.cc',
|
||||
'memory/scoped_native_library.h',
|
||||
'memory/scoped_nsobject.h',
|
||||
'memory/scoped_open_process.h',
|
||||
'memory/scoped_ptr.h',
|
||||
'memory/scoped_temp_dir.cc',
|
||||
'memory/scoped_temp_dir.h',
|
||||
'memory/scoped_vector.h',
|
||||
'memory/singleton.h',
|
||||
'memory/weak_ptr.cc',
|
||||
'memory/weak_ptr.h',
|
||||
'message_loop.cc',
|
||||
'message_loop.h',
|
||||
'message_loop_proxy.cc',
|
||||
@ -177,32 +195,18 @@
|
||||
'rand_util.h',
|
||||
'rand_util_posix.cc',
|
||||
'rand_util_win.cc',
|
||||
'raw_scoped_refptr_mismatch_checker.h',
|
||||
'ref_counted.cc',
|
||||
'ref_counted.h',
|
||||
'ref_counted_memory.cc',
|
||||
'ref_counted_memory.h',
|
||||
'resource_util.cc',
|
||||
'resource_util.h',
|
||||
'safe_strerror_posix.cc',
|
||||
'safe_strerror_posix.h',
|
||||
'scoped_callback_factory.h',
|
||||
'scoped_handle.h',
|
||||
'scoped_native_library.cc',
|
||||
'scoped_native_library.h',
|
||||
'scoped_nsobject.h',
|
||||
'scoped_open_process.h',
|
||||
'scoped_ptr.h',
|
||||
'scoped_temp_dir.cc',
|
||||
'scoped_temp_dir.h',
|
||||
'scoped_vector.h',
|
||||
'sha1.h',
|
||||
'sha1_portable.cc',
|
||||
'sha1_win.cc',
|
||||
'shared_memory.h',
|
||||
'shared_memory_posix.cc',
|
||||
'shared_memory_win.cc',
|
||||
'singleton.h',
|
||||
'spin_wait.h',
|
||||
'stack_container.h',
|
||||
'stl_util-inl.h',
|
||||
@ -306,8 +310,6 @@
|
||||
'version.h',
|
||||
'vlog.cc',
|
||||
'vlog.h',
|
||||
'weak_ptr.cc',
|
||||
'weak_ptr.h',
|
||||
'win/i18n.cc',
|
||||
'win/i18n.h',
|
||||
'win/object_watcher.cc',
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -14,8 +14,8 @@
|
||||
#include "base/file_path.h"
|
||||
#include "base/file_util.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/sys_string_conversions.h"
|
||||
#include "base/nix/xdg_util.h"
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "base/base_api.h"
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
|
||||
namespace base {
|
||||
namespace internal {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
#define BASE_CALLBACK_OLD_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/memory/raw_scoped_refptr_mismatch_checker.h"
|
||||
#include "base/tuple.h"
|
||||
#include "base/raw_scoped_refptr_mismatch_checker.h"
|
||||
|
||||
// Callback --------------------------------------------------------------------
|
||||
//
|
||||
|
@ -1,10 +1,10 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/callback.h"
|
||||
#include "base/callback_internal.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "base/file_path.h"
|
||||
#include "base/file_util.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/string_split.h"
|
||||
#include "base/string_util.h"
|
||||
#include "base/sys_string_conversions.h"
|
||||
|
@ -1,11 +1,11 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/crypto/capi_util.h"
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/synchronization/lock.h"
|
||||
|
||||
namespace {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/sys_string_conversions.h"
|
||||
|
||||
// When writing crypto code for Mac OS X, you may find the following
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
#include <string>
|
||||
|
||||
#include "base/crypto/symmetric_key.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/string_number_conversions.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include "base/crypto/mac_security_services_lock.h"
|
||||
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/synchronization/lock.h"
|
||||
|
||||
namespace {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#include <list>
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/string_util.h"
|
||||
|
||||
// This file manually encodes and decodes RSA private keys using PrivateKeyInfo
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
#include "base/crypto/cssm_init.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -12,9 +12,9 @@
|
||||
|
||||
#include "base/debug/leak_annotations.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/nss_util.h"
|
||||
#include "base/nss_util_internal.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/string_util.h"
|
||||
|
||||
// TODO(rafaelw): Consider refactoring common functions and definitions from
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -7,8 +7,8 @@
|
||||
#include <keyhi.h>
|
||||
#include <pk11pub.h>
|
||||
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/nss_util.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
#include <openssl/rsa.h>
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/openssl_util.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/stl_util-inl.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/crypto/rsa_private_key.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
// Generate random private keys with two different sizes. Reimport, then
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
#include <list>
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/string_util.h"
|
||||
|
||||
namespace {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
#include <nss.h>
|
||||
#include <pk11pub.h>
|
||||
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "base/crypto/secure_hash.h"
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/sha2.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
#include "base/crypto/cssm_init.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/nss_util.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -7,8 +7,8 @@
|
||||
#include <openssl/evp.h>
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/openssl_util.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/stl_util-inl.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
#include "base/crypto/signature_creator.h"
|
||||
#include "base/crypto/signature_verifier.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
TEST(SignatureCreatorTest, BasicTest) {
|
||||
|
@ -1,11 +1,11 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/crypto/signature_creator.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -10,8 +10,8 @@
|
||||
#include <vector>
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/openssl_util.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/stl_util-inl.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -10,8 +10,8 @@
|
||||
#include <algorithm>
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/openssl_util.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/string_util.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/string_number_conversions.h"
|
||||
#include "base/string_util.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
#include <vector>
|
||||
|
||||
// TODO(wtc): replace scoped_array by std::vector.
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -33,8 +33,8 @@
|
||||
#include "base/basictypes.h"
|
||||
#include "base/eintr_wrapper.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/safe_strerror_posix.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/string_piece.h"
|
||||
#include "base/stringprintf.h"
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/debug/leak_tracker.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -30,8 +30,8 @@
|
||||
#include "base/basictypes.h"
|
||||
#include "base/eintr_wrapper.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/safe_strerror_posix.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/string_piece.h"
|
||||
#include "base/stringprintf.h"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/synchronization/lock.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -31,8 +31,8 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/synchronization/lock.h"
|
||||
#include "base/time.h"
|
||||
#include "base/timer.h"
|
||||
|
@ -1,11 +1,11 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/debug/trace_event_win.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include <initguid.h> // NOLINT
|
||||
|
||||
namespace base {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
#include "base/string_util.h"
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
#endif
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/environment.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "testing/platform_test.h"
|
||||
|
||||
|
@ -29,8 +29,8 @@
|
||||
#include "base/base_api.h"
|
||||
#include "base/basictypes.h"
|
||||
#include "base/file_path.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/platform_file.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/string16.h"
|
||||
|
||||
#if defined(OS_POSIX)
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -34,8 +34,8 @@
|
||||
#include "base/eintr_wrapper.h"
|
||||
#include "base/file_path.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/string_util.h"
|
||||
#include "base/sys_string_conversions.h"
|
||||
#include "base/threading/thread_restrictions.h"
|
||||
|
@ -10,8 +10,8 @@
|
||||
#include "base/callback.h"
|
||||
#include "base/file_path.h"
|
||||
#include "base/file_util.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/platform_file.h"
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/tracked_objects.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -18,8 +18,8 @@
|
||||
#include "base/base_paths.h"
|
||||
#include "base/file_path.h"
|
||||
#include "base/file_util.h"
|
||||
#include "base/memory/scoped_temp_dir.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/scoped_temp_dir.h"
|
||||
#include "base/threading/platform_thread.h"
|
||||
#include "base/time.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
#include <string>
|
||||
|
||||
#include "base/file_version_info.h"
|
||||
#include "base/scoped_nsobject.h"
|
||||
#include "base/memory/scoped_nsobject.h"
|
||||
|
||||
#ifdef __OBJC__
|
||||
@class NSBundle;
|
||||
|
@ -1,10 +1,10 @@
|
||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/file_util.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/file_version_info.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "base/base_api.h"
|
||||
#include "base/basictypes.h"
|
||||
#include "base/file_version_info.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
struct tagVS_FIXEDFILEINFO;
|
||||
typedef tagVS_FIXEDFILEINFO VS_FIXEDFILEINFO;
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/singleton.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include "base/base_api.h"
|
||||
#include "base/basictypes.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
|
||||
#include "base/crypto/scoped_nss_types.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/nss_util.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -10,8 +10,8 @@
|
||||
#include <vector>
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/openssl_util.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/stl_util-inl.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
|
||||
#include "base/file_path.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/string_util.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
#include "base/sys_string_conversions.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
#include "base/format_macros.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/lazy_instance.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/string_util.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
#include "unicode/numfmt.h"
|
||||
|
@ -1,11 +1,11 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/i18n/time_formatting.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
#include "base/time.h"
|
||||
#include "unicode/datefmt.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
#include "base/float_util.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/string_number_conversions.h"
|
||||
#include "base/string_util.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
|
@ -1,10 +1,10 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "base/json/json_reader.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/string_piece.h"
|
||||
#include "base/utf_string_conversions.h"
|
||||
#include "base/values.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -17,10 +17,10 @@
|
||||
|
||||
#include "base/command_line.h"
|
||||
#include "base/file_util.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/process_util.h"
|
||||
#include "base/singleton.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/string_util.h"
|
||||
#include "base/synchronization/lock.h"
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/logging_win.h"
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include <initguid.h> // NOLINT
|
||||
|
||||
namespace logging {
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "base/file_path.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/scoped_nsobject.h"
|
||||
#include "base/memory/scoped_nsobject.h"
|
||||
#include "base/sys_string_conversions.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "base/file_path.h"
|
||||
#include "base/file_util.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/scoped_nsobject.h"
|
||||
#include "base/memory/scoped_nsobject.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "testing/platform_test.h"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
//
|
||||
@ -34,8 +34,8 @@
|
||||
// - is thread safe for copying and deletion
|
||||
// - supports weak_ptrs
|
||||
|
||||
#ifndef BASE_LINKED_PTR_H_
|
||||
#define BASE_LINKED_PTR_H_
|
||||
#ifndef BASE_MEMORY_LINKED_PTR_H_
|
||||
#define BASE_MEMORY_LINKED_PTR_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/logging.h" // for CHECK macros
|
||||
@ -179,4 +179,4 @@ linked_ptr<T> make_linked_ptr(T* ptr) {
|
||||
return linked_ptr<T>(ptr);
|
||||
}
|
||||
|
||||
#endif // BASE_LINKED_PTR_H_
|
||||
#endif // BASE_MEMORY_LINKED_PTR_H_
|
@ -1,10 +1,10 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "base/linked_ptr.h"
|
||||
#include "base/memory/linked_ptr.h"
|
||||
#include "base/stringprintf.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
@ -1,8 +1,8 @@
|
||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/memory_debug.h"
|
||||
#include "base/memory/memory_debug.h"
|
||||
|
||||
#ifdef PURIFY
|
||||
// this #define is used to prevent people from directly using pure.h
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
// All methods are effectively no-ops unless this program is being run through
|
||||
// a supported memory tool (currently, only Purify)
|
||||
|
||||
#ifndef BASE_MEMORY_DEBUG_H_
|
||||
#define BASE_MEMORY_DEBUG_H_
|
||||
#ifndef BASE_MEMORY_MEMORY_DEBUG_H_
|
||||
#define BASE_MEMORY_MEMORY_DEBUG_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/basictypes.h"
|
||||
@ -44,4 +44,4 @@ class MemoryDebug {
|
||||
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_MEMORY_DEBUG_H_
|
||||
#endif // BASE_MEMORY_MEMORY_DEBUG_H_
|
@ -1,12 +1,12 @@
|
||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_RAW_SCOPED_REFPTR_MISMATCH_CHECKER_H_
|
||||
#define BASE_RAW_SCOPED_REFPTR_MISMATCH_CHECKER_H_
|
||||
#ifndef BASE_MEMORY_RAW_SCOPED_REFPTR_MISMATCH_CHECKER_H_
|
||||
#define BASE_MEMORY_RAW_SCOPED_REFPTR_MISMATCH_CHECKER_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/template_util.h"
|
||||
#include "base/tuple.h"
|
||||
#include "build/build_config.h"
|
||||
@ -127,4 +127,4 @@ struct ParamsUseScopedRefptrCorrectly<Tuple8<A, B, C, D, E, F, G, H> > {
|
||||
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_RAW_SCOPED_REFPTR_MISMATCH_CHECKER_H_
|
||||
#endif // BASE_MEMORY_RAW_SCOPED_REFPTR_MISMATCH_CHECKER_H_
|
@ -1,8 +1,8 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/threading/thread_collision_warner.h"
|
299
base/memory/ref_counted.h
Normal file
299
base/memory/ref_counted.h
Normal file
@ -0,0 +1,299 @@
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_MEMORY_REF_COUNTED_H_
|
||||
#define BASE_MEMORY_REF_COUNTED_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/atomic_ref_count.h"
|
||||
#include "base/base_api.h"
|
||||
#include "base/threading/thread_collision_warner.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
namespace subtle {
|
||||
|
||||
class BASE_API RefCountedBase {
|
||||
public:
|
||||
static bool ImplementsThreadSafeReferenceCounting() { return false; }
|
||||
|
||||
bool HasOneRef() const { return ref_count_ == 1; }
|
||||
|
||||
protected:
|
||||
RefCountedBase();
|
||||
~RefCountedBase();
|
||||
|
||||
void AddRef() const;
|
||||
|
||||
// Returns true if the object should self-delete.
|
||||
bool Release() const;
|
||||
|
||||
private:
|
||||
mutable int ref_count_;
|
||||
#ifndef NDEBUG
|
||||
mutable bool in_dtor_;
|
||||
#endif
|
||||
|
||||
DFAKE_MUTEX(add_release_);
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(RefCountedBase);
|
||||
};
|
||||
|
||||
class BASE_API RefCountedThreadSafeBase {
|
||||
public:
|
||||
static bool ImplementsThreadSafeReferenceCounting() { return true; }
|
||||
|
||||
bool HasOneRef() const;
|
||||
|
||||
protected:
|
||||
RefCountedThreadSafeBase();
|
||||
~RefCountedThreadSafeBase();
|
||||
|
||||
void AddRef() const;
|
||||
|
||||
// Returns true if the object should self-delete.
|
||||
bool Release() const;
|
||||
|
||||
private:
|
||||
mutable AtomicRefCount ref_count_;
|
||||
#ifndef NDEBUG
|
||||
mutable bool in_dtor_;
|
||||
#endif
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(RefCountedThreadSafeBase);
|
||||
};
|
||||
|
||||
} // namespace subtle
|
||||
|
||||
//
|
||||
// A base class for reference counted classes. Otherwise, known as a cheap
|
||||
// knock-off of WebKit's RefCounted<T> class. To use this guy just extend your
|
||||
// class from it like so:
|
||||
//
|
||||
// class MyFoo : public base::RefCounted<MyFoo> {
|
||||
// ...
|
||||
// private:
|
||||
// friend class base::RefCounted<MyFoo>;
|
||||
// ~MyFoo();
|
||||
// };
|
||||
//
|
||||
// You should always make your destructor private, to avoid any code deleting
|
||||
// the object accidently while there are references to it.
|
||||
template <class T>
|
||||
class RefCounted : public subtle::RefCountedBase {
|
||||
public:
|
||||
RefCounted() { }
|
||||
~RefCounted() { }
|
||||
|
||||
void AddRef() const {
|
||||
subtle::RefCountedBase::AddRef();
|
||||
}
|
||||
|
||||
void Release() const {
|
||||
if (subtle::RefCountedBase::Release()) {
|
||||
delete static_cast<const T*>(this);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(RefCounted<T>);
|
||||
};
|
||||
|
||||
// Forward declaration.
|
||||
template <class T, typename Traits> class RefCountedThreadSafe;
|
||||
|
||||
// Default traits for RefCountedThreadSafe<T>. Deletes the object when its ref
|
||||
// count reaches 0. Overload to delete it on a different thread etc.
|
||||
template<typename T>
|
||||
struct DefaultRefCountedThreadSafeTraits {
|
||||
static void Destruct(const T* x) {
|
||||
// Delete through RefCountedThreadSafe to make child classes only need to be
|
||||
// friend with RefCountedThreadSafe instead of this struct, which is an
|
||||
// implementation detail.
|
||||
RefCountedThreadSafe<T,
|
||||
DefaultRefCountedThreadSafeTraits>::DeleteInternal(x);
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// A thread-safe variant of RefCounted<T>
|
||||
//
|
||||
// class MyFoo : public base::RefCountedThreadSafe<MyFoo> {
|
||||
// ...
|
||||
// };
|
||||
//
|
||||
// If you're using the default trait, then you should add compile time
|
||||
// asserts that no one else is deleting your object. i.e.
|
||||
// private:
|
||||
// friend class base::RefCountedThreadSafe<MyFoo>;
|
||||
// ~MyFoo();
|
||||
template <class T, typename Traits = DefaultRefCountedThreadSafeTraits<T> >
|
||||
class RefCountedThreadSafe : public subtle::RefCountedThreadSafeBase {
|
||||
public:
|
||||
RefCountedThreadSafe() { }
|
||||
~RefCountedThreadSafe() { }
|
||||
|
||||
void AddRef() const {
|
||||
subtle::RefCountedThreadSafeBase::AddRef();
|
||||
}
|
||||
|
||||
void Release() const {
|
||||
if (subtle::RefCountedThreadSafeBase::Release()) {
|
||||
Traits::Destruct(static_cast<const T*>(this));
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
friend struct DefaultRefCountedThreadSafeTraits<T>;
|
||||
static void DeleteInternal(const T* x) { delete x; }
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(RefCountedThreadSafe);
|
||||
};
|
||||
|
||||
//
|
||||
// A wrapper for some piece of data so we can place other things in
|
||||
// scoped_refptrs<>.
|
||||
//
|
||||
template<typename T>
|
||||
class RefCountedData : public base::RefCounted< base::RefCountedData<T> > {
|
||||
public:
|
||||
RefCountedData() : data() {}
|
||||
RefCountedData(const T& in_value) : data(in_value) {}
|
||||
|
||||
T data;
|
||||
};
|
||||
|
||||
} // namespace base
|
||||
|
||||
//
|
||||
// A smart pointer class for reference counted objects. Use this class instead
|
||||
// of calling AddRef and Release manually on a reference counted object to
|
||||
// avoid common memory leaks caused by forgetting to Release an object
|
||||
// reference. Sample usage:
|
||||
//
|
||||
// class MyFoo : public RefCounted<MyFoo> {
|
||||
// ...
|
||||
// };
|
||||
//
|
||||
// void some_function() {
|
||||
// scoped_refptr<MyFoo> foo = new MyFoo();
|
||||
// foo->Method(param);
|
||||
// // |foo| is released when this function returns
|
||||
// }
|
||||
//
|
||||
// void some_other_function() {
|
||||
// scoped_refptr<MyFoo> foo = new MyFoo();
|
||||
// ...
|
||||
// foo = NULL; // explicitly releases |foo|
|
||||
// ...
|
||||
// if (foo)
|
||||
// foo->Method(param);
|
||||
// }
|
||||
//
|
||||
// The above examples show how scoped_refptr<T> acts like a pointer to T.
|
||||
// Given two scoped_refptr<T> classes, it is also possible to exchange
|
||||
// references between the two objects, like so:
|
||||
//
|
||||
// {
|
||||
// scoped_refptr<MyFoo> a = new MyFoo();
|
||||
// scoped_refptr<MyFoo> b;
|
||||
//
|
||||
// b.swap(a);
|
||||
// // now, |b| references the MyFoo object, and |a| references NULL.
|
||||
// }
|
||||
//
|
||||
// To make both |a| and |b| in the above example reference the same MyFoo
|
||||
// object, simply use the assignment operator:
|
||||
//
|
||||
// {
|
||||
// scoped_refptr<MyFoo> a = new MyFoo();
|
||||
// scoped_refptr<MyFoo> b;
|
||||
//
|
||||
// b = a;
|
||||
// // now, |a| and |b| each own a reference to the same MyFoo object.
|
||||
// }
|
||||
//
|
||||
template <class T>
|
||||
class scoped_refptr {
|
||||
public:
|
||||
scoped_refptr() : ptr_(NULL) {
|
||||
}
|
||||
|
||||
scoped_refptr(T* p) : ptr_(p) {
|
||||
if (ptr_)
|
||||
ptr_->AddRef();
|
||||
}
|
||||
|
||||
scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
|
||||
if (ptr_)
|
||||
ptr_->AddRef();
|
||||
}
|
||||
|
||||
template <typename U>
|
||||
scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
|
||||
if (ptr_)
|
||||
ptr_->AddRef();
|
||||
}
|
||||
|
||||
~scoped_refptr() {
|
||||
if (ptr_)
|
||||
ptr_->Release();
|
||||
}
|
||||
|
||||
T* get() const { return ptr_; }
|
||||
operator T*() const { return ptr_; }
|
||||
T* operator->() const { return ptr_; }
|
||||
|
||||
// Release a pointer.
|
||||
// The return value is the current pointer held by this object.
|
||||
// If this object holds a NULL pointer, the return value is NULL.
|
||||
// After this operation, this object will hold a NULL pointer,
|
||||
// and will not own the object any more.
|
||||
T* release() {
|
||||
T* retVal = ptr_;
|
||||
ptr_ = NULL;
|
||||
return retVal;
|
||||
}
|
||||
|
||||
scoped_refptr<T>& operator=(T* p) {
|
||||
// AddRef first so that self assignment should work
|
||||
if (p)
|
||||
p->AddRef();
|
||||
if (ptr_ )
|
||||
ptr_ ->Release();
|
||||
ptr_ = p;
|
||||
return *this;
|
||||
}
|
||||
|
||||
scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
|
||||
return *this = r.ptr_;
|
||||
}
|
||||
|
||||
template <typename U>
|
||||
scoped_refptr<T>& operator=(const scoped_refptr<U>& r) {
|
||||
return *this = r.get();
|
||||
}
|
||||
|
||||
void swap(T** pp) {
|
||||
T* p = ptr_;
|
||||
ptr_ = *pp;
|
||||
*pp = p;
|
||||
}
|
||||
|
||||
void swap(scoped_refptr<T>& r) {
|
||||
swap(&r.ptr_);
|
||||
}
|
||||
|
||||
protected:
|
||||
T* ptr_;
|
||||
};
|
||||
|
||||
// Handy utility for creating a scoped_refptr<T> out of a T* explicitly without
|
||||
// having to retype all the template arguments
|
||||
template <typename T>
|
||||
scoped_refptr<T> make_scoped_refptr(T* t) {
|
||||
return scoped_refptr<T>(t);
|
||||
}
|
||||
|
||||
#endif // BASE_MEMORY_REF_COUNTED_H_
|
@ -1,8 +1,8 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/ref_counted_memory.h"
|
||||
#include "base/memory/ref_counted_memory.h"
|
||||
|
||||
RefCountedMemory::RefCountedMemory() {
|
||||
}
|
@ -2,13 +2,13 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_REF_COUNTED_MEMORY_H_
|
||||
#define BASE_REF_COUNTED_MEMORY_H_
|
||||
#ifndef BASE_MEMORY_REF_COUNTED_MEMORY_H_
|
||||
#define BASE_MEMORY_REF_COUNTED_MEMORY_H_
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
|
||||
// TODO(erg): The contents of this file should be in a namespace. This would
|
||||
// require touching >100 files in chrome/ though.
|
||||
@ -79,4 +79,4 @@ class RefCountedBytes : public RefCountedMemory {
|
||||
DISALLOW_COPY_AND_ASSIGN(RefCountedBytes);
|
||||
};
|
||||
|
||||
#endif // BASE_REF_COUNTED_MEMORY_H_
|
||||
#endif // BASE_MEMORY_REF_COUNTED_MEMORY_H_
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "base/ref_counted.h"
|
||||
|
||||
namespace {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -33,11 +33,11 @@
|
||||
// callback runs, it will notice that the MyClass instance is dead, and it will
|
||||
// avoid calling the GotData method.
|
||||
|
||||
#ifndef BASE_SCOPED_CALLBACK_FACTORY_H_
|
||||
#define BASE_SCOPED_CALLBACK_FACTORY_H_
|
||||
#ifndef BASE_MEMORY_SCOPED_CALLBACK_FACTORY_H_
|
||||
#define BASE_MEMORY_SCOPED_CALLBACK_FACTORY_H_
|
||||
|
||||
#include "base/callback.h"
|
||||
#include "base/weak_ptr.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
@ -130,4 +130,4 @@ class ScopedCallbackFactory {
|
||||
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_SCOPED_CALLBACK_FACTORY_H_
|
||||
#endif // BASE_MEMORY_SCOPED_CALLBACK_FACTORY_H_
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_SCOPED_HANDLE_H_
|
||||
#define BASE_SCOPED_HANDLE_H_
|
||||
#ifndef BASE_MEMORY_SCOPED_HANDLE_H_
|
||||
#define BASE_MEMORY_SCOPED_HANDLE_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
@ -48,4 +48,4 @@ class ScopedStdioHandle {
|
||||
DISALLOW_COPY_AND_ASSIGN(ScopedStdioHandle);
|
||||
};
|
||||
|
||||
#endif // BASE_SCOPED_HANDLE_H_
|
||||
#endif // BASE_MEMORY_SCOPED_HANDLE_H_
|
@ -1,8 +1,8 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/scoped_native_library.h"
|
||||
#include "base/memory/scoped_native_library.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_SCOPED_NATIVE_LIBRARY_H_
|
||||
#define BASE_SCOPED_NATIVE_LIBRARY_H_
|
||||
#ifndef BASE_MEMORY_SCOPED_NATIVE_LIBRARY_H_
|
||||
#define BASE_MEMORY_SCOPED_NATIVE_LIBRARY_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/base_api.h"
|
||||
@ -50,4 +50,4 @@ class BASE_API ScopedNativeLibrary {
|
||||
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_SCOPED_NATIVE_LIBRARY_H_
|
||||
#endif // BASE_MEMORY_SCOPED_NATIVE_LIBRARY_H_
|
@ -1,8 +1,8 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/scoped_native_library.h"
|
||||
#include "base/memory/scoped_native_library.h"
|
||||
#if defined(OS_WIN)
|
||||
#include "base/file_path.h"
|
||||
#endif
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_SCOPED_NSOBJECT_H_
|
||||
#define BASE_SCOPED_NSOBJECT_H_
|
||||
#ifndef BASE_MEMORY_SCOPED_NSOBJECT_H_
|
||||
#define BASE_MEMORY_SCOPED_NSOBJECT_H_
|
||||
#pragma once
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
@ -164,4 +164,4 @@ class scoped_nsobject<NSAutoreleasePool> {
|
||||
DISALLOW_COPY_AND_ASSIGN(scoped_nsobject);
|
||||
};
|
||||
|
||||
#endif // BASE_SCOPED_NSOBJECT_H_
|
||||
#endif // BASE_MEMORY_SCOPED_NSOBJECT_H_
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_SCOPED_OPEN_PROCESS_H_
|
||||
#define BASE_SCOPED_OPEN_PROCESS_H_
|
||||
#ifndef BASE_MEMORY_SCOPED_OPEN_PROCESS_H_
|
||||
#define BASE_MEMORY_SCOPED_OPEN_PROCESS_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/process.h"
|
||||
@ -47,4 +47,4 @@ class ScopedOpenProcess {
|
||||
};
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_SCOPED_OPEN_PROCESS_H_
|
||||
#endif // BASE_MEMORY_SCOPED_OPEN_PROCESS_H_
|
383
base/memory/scoped_ptr.h
Normal file
383
base/memory/scoped_ptr.h
Normal file
@ -0,0 +1,383 @@
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Scopers help you manage ownership of a pointer, helping you easily manage the
|
||||
// a pointer within a scope, and automatically destroying the pointer at the
|
||||
// end of a scope. There are two main classes you will use, which correspond
|
||||
// to the operators new/delete and new[]/delete[].
|
||||
//
|
||||
// Example usage (scoped_ptr):
|
||||
// {
|
||||
// scoped_ptr<Foo> foo(new Foo("wee"));
|
||||
// } // foo goes out of scope, releasing the pointer with it.
|
||||
//
|
||||
// {
|
||||
// scoped_ptr<Foo> foo; // No pointer managed.
|
||||
// foo.reset(new Foo("wee")); // Now a pointer is managed.
|
||||
// foo.reset(new Foo("wee2")); // Foo("wee") was destroyed.
|
||||
// foo.reset(new Foo("wee3")); // Foo("wee2") was destroyed.
|
||||
// foo->Method(); // Foo::Method() called.
|
||||
// foo.get()->Method(); // Foo::Method() called.
|
||||
// SomeFunc(foo.release()); // SomeFunc takes ownership, foo no longer
|
||||
// // manages a pointer.
|
||||
// foo.reset(new Foo("wee4")); // foo manages a pointer again.
|
||||
// foo.reset(); // Foo("wee4") destroyed, foo no longer
|
||||
// // manages a pointer.
|
||||
// } // foo wasn't managing a pointer, so nothing was destroyed.
|
||||
//
|
||||
// Example usage (scoped_array):
|
||||
// {
|
||||
// scoped_array<Foo> foo(new Foo[100]);
|
||||
// foo.get()->Method(); // Foo::Method on the 0th element.
|
||||
// foo[10].Method(); // Foo::Method on the 10th element.
|
||||
// }
|
||||
|
||||
#ifndef BASE_MEMORY_SCOPED_PTR_H_
|
||||
#define BASE_MEMORY_SCOPED_PTR_H_
|
||||
#pragma once
|
||||
|
||||
// This is an implementation designed to match the anticipated future TR2
|
||||
// implementation of the scoped_ptr class, and its closely-related brethren,
|
||||
// scoped_array, scoped_ptr_malloc.
|
||||
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
|
||||
// A scoped_ptr<T> is like a T*, except that the destructor of scoped_ptr<T>
|
||||
// automatically deletes the pointer it holds (if any).
|
||||
// That is, scoped_ptr<T> owns the T object that it points to.
|
||||
// Like a T*, a scoped_ptr<T> may hold either NULL or a pointer to a T object.
|
||||
// Also like T*, scoped_ptr<T> is thread-compatible, and once you
|
||||
// dereference it, you get the threadsafety guarantees of T.
|
||||
//
|
||||
// The size of a scoped_ptr is small:
|
||||
// sizeof(scoped_ptr<C>) == sizeof(C*)
|
||||
template <class C>
|
||||
class scoped_ptr {
|
||||
public:
|
||||
|
||||
// The element type
|
||||
typedef C element_type;
|
||||
|
||||
// Constructor. Defaults to initializing with NULL.
|
||||
// There is no way to create an uninitialized scoped_ptr.
|
||||
// The input parameter must be allocated with new.
|
||||
explicit scoped_ptr(C* p = NULL) : ptr_(p) { }
|
||||
|
||||
// Destructor. If there is a C object, delete it.
|
||||
// We don't need to test ptr_ == NULL because C++ does that for us.
|
||||
~scoped_ptr() {
|
||||
enum { type_must_be_complete = sizeof(C) };
|
||||
delete ptr_;
|
||||
}
|
||||
|
||||
// Reset. Deletes the current owned object, if any.
|
||||
// Then takes ownership of a new object, if given.
|
||||
// this->reset(this->get()) works.
|
||||
void reset(C* p = NULL) {
|
||||
if (p != ptr_) {
|
||||
enum { type_must_be_complete = sizeof(C) };
|
||||
delete ptr_;
|
||||
ptr_ = p;
|
||||
}
|
||||
}
|
||||
|
||||
// Accessors to get the owned object.
|
||||
// operator* and operator-> will assert() if there is no current object.
|
||||
C& operator*() const {
|
||||
assert(ptr_ != NULL);
|
||||
return *ptr_;
|
||||
}
|
||||
C* operator->() const {
|
||||
assert(ptr_ != NULL);
|
||||
return ptr_;
|
||||
}
|
||||
C* get() const { return ptr_; }
|
||||
|
||||
// Comparison operators.
|
||||
// These return whether two scoped_ptr refer to the same object, not just to
|
||||
// two different but equal objects.
|
||||
bool operator==(C* p) const { return ptr_ == p; }
|
||||
bool operator!=(C* p) const { return ptr_ != p; }
|
||||
|
||||
// Swap two scoped pointers.
|
||||
void swap(scoped_ptr& p2) {
|
||||
C* tmp = ptr_;
|
||||
ptr_ = p2.ptr_;
|
||||
p2.ptr_ = tmp;
|
||||
}
|
||||
|
||||
// Release a pointer.
|
||||
// The return value is the current pointer held by this object.
|
||||
// If this object holds a NULL pointer, the return value is NULL.
|
||||
// After this operation, this object will hold a NULL pointer,
|
||||
// and will not own the object any more.
|
||||
C* release() WARN_UNUSED_RESULT {
|
||||
C* retVal = ptr_;
|
||||
ptr_ = NULL;
|
||||
return retVal;
|
||||
}
|
||||
|
||||
private:
|
||||
C* ptr_;
|
||||
|
||||
// Forbid comparison of scoped_ptr types. If C2 != C, it totally doesn't
|
||||
// make sense, and if C2 == C, it still doesn't make sense because you should
|
||||
// never have the same object owned by two different scoped_ptrs.
|
||||
template <class C2> bool operator==(scoped_ptr<C2> const& p2) const;
|
||||
template <class C2> bool operator!=(scoped_ptr<C2> const& p2) const;
|
||||
|
||||
// Disallow evil constructors
|
||||
scoped_ptr(const scoped_ptr&);
|
||||
void operator=(const scoped_ptr&);
|
||||
};
|
||||
|
||||
// Free functions
|
||||
template <class C>
|
||||
void swap(scoped_ptr<C>& p1, scoped_ptr<C>& p2) {
|
||||
p1.swap(p2);
|
||||
}
|
||||
|
||||
template <class C>
|
||||
bool operator==(C* p1, const scoped_ptr<C>& p2) {
|
||||
return p1 == p2.get();
|
||||
}
|
||||
|
||||
template <class C>
|
||||
bool operator!=(C* p1, const scoped_ptr<C>& p2) {
|
||||
return p1 != p2.get();
|
||||
}
|
||||
|
||||
// scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
|
||||
// with new [] and the destructor deletes objects with delete [].
|
||||
//
|
||||
// As with scoped_ptr<C>, a scoped_array<C> either points to an object
|
||||
// or is NULL. A scoped_array<C> owns the object that it points to.
|
||||
// scoped_array<T> is thread-compatible, and once you index into it,
|
||||
// the returned objects have only the threadsafety guarantees of T.
|
||||
//
|
||||
// Size: sizeof(scoped_array<C>) == sizeof(C*)
|
||||
template <class C>
|
||||
class scoped_array {
|
||||
public:
|
||||
|
||||
// The element type
|
||||
typedef C element_type;
|
||||
|
||||
// Constructor. Defaults to intializing with NULL.
|
||||
// There is no way to create an uninitialized scoped_array.
|
||||
// The input parameter must be allocated with new [].
|
||||
explicit scoped_array(C* p = NULL) : array_(p) { }
|
||||
|
||||
// Destructor. If there is a C object, delete it.
|
||||
// We don't need to test ptr_ == NULL because C++ does that for us.
|
||||
~scoped_array() {
|
||||
enum { type_must_be_complete = sizeof(C) };
|
||||
delete[] array_;
|
||||
}
|
||||
|
||||
// Reset. Deletes the current owned object, if any.
|
||||
// Then takes ownership of a new object, if given.
|
||||
// this->reset(this->get()) works.
|
||||
void reset(C* p = NULL) {
|
||||
if (p != array_) {
|
||||
enum { type_must_be_complete = sizeof(C) };
|
||||
delete[] array_;
|
||||
array_ = p;
|
||||
}
|
||||
}
|
||||
|
||||
// Get one element of the current object.
|
||||
// Will assert() if there is no current object, or index i is negative.
|
||||
C& operator[](ptrdiff_t i) const {
|
||||
assert(i >= 0);
|
||||
assert(array_ != NULL);
|
||||
return array_[i];
|
||||
}
|
||||
|
||||
// Get a pointer to the zeroth element of the current object.
|
||||
// If there is no current object, return NULL.
|
||||
C* get() const {
|
||||
return array_;
|
||||
}
|
||||
|
||||
// Comparison operators.
|
||||
// These return whether two scoped_array refer to the same object, not just to
|
||||
// two different but equal objects.
|
||||
bool operator==(C* p) const { return array_ == p; }
|
||||
bool operator!=(C* p) const { return array_ != p; }
|
||||
|
||||
// Swap two scoped arrays.
|
||||
void swap(scoped_array& p2) {
|
||||
C* tmp = array_;
|
||||
array_ = p2.array_;
|
||||
p2.array_ = tmp;
|
||||
}
|
||||
|
||||
// Release an array.
|
||||
// The return value is the current pointer held by this object.
|
||||
// If this object holds a NULL pointer, the return value is NULL.
|
||||
// After this operation, this object will hold a NULL pointer,
|
||||
// and will not own the object any more.
|
||||
C* release() WARN_UNUSED_RESULT {
|
||||
C* retVal = array_;
|
||||
array_ = NULL;
|
||||
return retVal;
|
||||
}
|
||||
|
||||
private:
|
||||
C* array_;
|
||||
|
||||
// Forbid comparison of different scoped_array types.
|
||||
template <class C2> bool operator==(scoped_array<C2> const& p2) const;
|
||||
template <class C2> bool operator!=(scoped_array<C2> const& p2) const;
|
||||
|
||||
// Disallow evil constructors
|
||||
scoped_array(const scoped_array&);
|
||||
void operator=(const scoped_array&);
|
||||
};
|
||||
|
||||
// Free functions
|
||||
template <class C>
|
||||
void swap(scoped_array<C>& p1, scoped_array<C>& p2) {
|
||||
p1.swap(p2);
|
||||
}
|
||||
|
||||
template <class C>
|
||||
bool operator==(C* p1, const scoped_array<C>& p2) {
|
||||
return p1 == p2.get();
|
||||
}
|
||||
|
||||
template <class C>
|
||||
bool operator!=(C* p1, const scoped_array<C>& p2) {
|
||||
return p1 != p2.get();
|
||||
}
|
||||
|
||||
// This class wraps the c library function free() in a class that can be
|
||||
// passed as a template argument to scoped_ptr_malloc below.
|
||||
class ScopedPtrMallocFree {
|
||||
public:
|
||||
inline void operator()(void* x) const {
|
||||
free(x);
|
||||
}
|
||||
};
|
||||
|
||||
// scoped_ptr_malloc<> is similar to scoped_ptr<>, but it accepts a
|
||||
// second template argument, the functor used to free the object.
|
||||
|
||||
template<class C, class FreeProc = ScopedPtrMallocFree>
|
||||
class scoped_ptr_malloc {
|
||||
public:
|
||||
|
||||
// The element type
|
||||
typedef C element_type;
|
||||
|
||||
// Constructor. Defaults to initializing with NULL.
|
||||
// There is no way to create an uninitialized scoped_ptr.
|
||||
// The input parameter must be allocated with an allocator that matches the
|
||||
// Free functor. For the default Free functor, this is malloc, calloc, or
|
||||
// realloc.
|
||||
explicit scoped_ptr_malloc(C* p = NULL): ptr_(p) {}
|
||||
|
||||
// Destructor. If there is a C object, call the Free functor.
|
||||
~scoped_ptr_malloc() {
|
||||
free_(ptr_);
|
||||
}
|
||||
|
||||
// Reset. Calls the Free functor on the current owned object, if any.
|
||||
// Then takes ownership of a new object, if given.
|
||||
// this->reset(this->get()) works.
|
||||
void reset(C* p = NULL) {
|
||||
if (ptr_ != p) {
|
||||
free_(ptr_);
|
||||
ptr_ = p;
|
||||
}
|
||||
}
|
||||
|
||||
// Get the current object.
|
||||
// operator* and operator-> will cause an assert() failure if there is
|
||||
// no current object.
|
||||
C& operator*() const {
|
||||
assert(ptr_ != NULL);
|
||||
return *ptr_;
|
||||
}
|
||||
|
||||
C* operator->() const {
|
||||
assert(ptr_ != NULL);
|
||||
return ptr_;
|
||||
}
|
||||
|
||||
C* get() const {
|
||||
return ptr_;
|
||||
}
|
||||
|
||||
// Comparison operators.
|
||||
// These return whether a scoped_ptr_malloc and a plain pointer refer
|
||||
// to the same object, not just to two different but equal objects.
|
||||
// For compatibility with the boost-derived implementation, these
|
||||
// take non-const arguments.
|
||||
bool operator==(C* p) const {
|
||||
return ptr_ == p;
|
||||
}
|
||||
|
||||
bool operator!=(C* p) const {
|
||||
return ptr_ != p;
|
||||
}
|
||||
|
||||
// Swap two scoped pointers.
|
||||
void swap(scoped_ptr_malloc & b) {
|
||||
C* tmp = b.ptr_;
|
||||
b.ptr_ = ptr_;
|
||||
ptr_ = tmp;
|
||||
}
|
||||
|
||||
// Release a pointer.
|
||||
// The return value is the current pointer held by this object.
|
||||
// If this object holds a NULL pointer, the return value is NULL.
|
||||
// After this operation, this object will hold a NULL pointer,
|
||||
// and will not own the object any more.
|
||||
C* release() WARN_UNUSED_RESULT {
|
||||
C* tmp = ptr_;
|
||||
ptr_ = NULL;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
private:
|
||||
C* ptr_;
|
||||
|
||||
// no reason to use these: each scoped_ptr_malloc should have its own object
|
||||
template <class C2, class GP>
|
||||
bool operator==(scoped_ptr_malloc<C2, GP> const& p) const;
|
||||
template <class C2, class GP>
|
||||
bool operator!=(scoped_ptr_malloc<C2, GP> const& p) const;
|
||||
|
||||
static FreeProc const free_;
|
||||
|
||||
// Disallow evil constructors
|
||||
scoped_ptr_malloc(const scoped_ptr_malloc&);
|
||||
void operator=(const scoped_ptr_malloc&);
|
||||
};
|
||||
|
||||
template<class C, class FP>
|
||||
FP const scoped_ptr_malloc<C, FP>::free_ = FP();
|
||||
|
||||
template<class C, class FP> inline
|
||||
void swap(scoped_ptr_malloc<C, FP>& a, scoped_ptr_malloc<C, FP>& b) {
|
||||
a.swap(b);
|
||||
}
|
||||
|
||||
template<class C, class FP> inline
|
||||
bool operator==(C* p, const scoped_ptr_malloc<C, FP>& b) {
|
||||
return p == b.get();
|
||||
}
|
||||
|
||||
template<class C, class FP> inline
|
||||
bool operator!=(C* p, const scoped_ptr_malloc<C, FP>& b) {
|
||||
return p != b.get();
|
||||
}
|
||||
|
||||
#endif // BASE_MEMORY_SCOPED_PTR_H_
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
namespace {
|
@ -1,8 +1,8 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/scoped_temp_dir.h"
|
||||
#include "base/memory/scoped_temp_dir.h"
|
||||
|
||||
#include "base/file_util.h"
|
||||
#include "base/logging.h"
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_SCOPED_TEMP_DIR_H_
|
||||
#define BASE_SCOPED_TEMP_DIR_H_
|
||||
#ifndef BASE_MEMORY_SCOPED_TEMP_DIR_H_
|
||||
#define BASE_MEMORY_SCOPED_TEMP_DIR_H_
|
||||
#pragma once
|
||||
|
||||
// An object representing a temporary / scratch directory that should be cleaned
|
||||
@ -56,4 +56,4 @@ class BASE_API ScopedTempDir {
|
||||
DISALLOW_COPY_AND_ASSIGN(ScopedTempDir);
|
||||
};
|
||||
|
||||
#endif // BASE_SCOPED_TEMP_DIR_H_
|
||||
#endif // BASE_MEMORY_SCOPED_TEMP_DIR_H_
|
@ -1,10 +1,10 @@
|
||||
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/file_util.h"
|
||||
#include "base/memory/scoped_temp_dir.h"
|
||||
#include "base/platform_file.h"
|
||||
#include "base/scoped_temp_dir.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
TEST(ScopedTempDir, FullPath) {
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_SCOPED_VECTOR_H_
|
||||
#define BASE_SCOPED_VECTOR_H_
|
||||
#ifndef BASE_MEMORY_SCOPED_VECTOR_H_
|
||||
#define BASE_MEMORY_SCOPED_VECTOR_H_
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
@ -87,4 +87,4 @@ class ScopedVector {
|
||||
DISALLOW_COPY_AND_ASSIGN(ScopedVector);
|
||||
};
|
||||
|
||||
#endif // BASE_SCOPED_VECTOR_H_
|
||||
#endif // BASE_MEMORY_SCOPED_VECTOR_H_
|
@ -1,9 +1,9 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_SINGLETON_H_
|
||||
#define BASE_SINGLETON_H_
|
||||
#ifndef BASE_MEMORY_SINGLETON_H_
|
||||
#define BASE_MEMORY_SINGLETON_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/at_exit.h"
|
||||
@ -126,7 +126,7 @@ template <typename Type> base::subtle::Atomic32
|
||||
// Example usage:
|
||||
//
|
||||
// In your header:
|
||||
// #include "base/singleton.h"
|
||||
// #include "base/memory/singleton.h"
|
||||
// class FooClass {
|
||||
// public:
|
||||
// static FooClass* GetInstance(); <-- See comment below on this.
|
||||
@ -268,4 +268,4 @@ template <typename Type, typename Traits, typename DifferentiatingType>
|
||||
base::subtle::AtomicWord Singleton<Type, Traits, DifferentiatingType>::
|
||||
instance_ = 0;
|
||||
|
||||
#endif // BASE_SINGLETON_H_
|
||||
#endif // BASE_MEMORY_SINGLETON_H_
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
@ -27,12 +27,12 @@
|
||||
// ...
|
||||
// Foo* widgetSingleton = SingletonObjC<Foo, FooSingletonTraits>::get();
|
||||
|
||||
#ifndef BASE_SINGLETON_OBJC_H_
|
||||
#define BASE_SINGLETON_OBJC_H_
|
||||
#ifndef BASE_MEMORY_SINGLETON_OBJC_H_
|
||||
#define BASE_MEMORY_SINGLETON_OBJC_H_
|
||||
#pragma once
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#include "base/singleton.h"
|
||||
#include "base/memory/singleton.h"
|
||||
|
||||
// Singleton traits usable to manage traditional Objective-C objects, which
|
||||
// are instantiated by sending |alloc| and |init| messages, and are deallocated
|
||||
@ -58,4 +58,4 @@ template<typename Type,
|
||||
class SingletonObjC : public Singleton<Type, Traits, DifferentiatingType> {
|
||||
};
|
||||
|
||||
#endif // BASE_SINGLETON_OBJC_H_
|
||||
#endif // BASE_MEMORY_SINGLETON_OBJC_H_
|
@ -1,11 +1,11 @@
|
||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/at_exit.h"
|
||||
#include "base/file_util.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/singleton.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
namespace {
|
@ -1,8 +1,8 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/weak_ptr.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
|
||||
namespace base {
|
||||
namespace internal {
|
@ -48,13 +48,13 @@
|
||||
// WARNING: weak pointers are not threadsafe!!! You must only use a WeakPtr
|
||||
// instance on thread where it was created.
|
||||
|
||||
#ifndef BASE_WEAK_PTR_H_
|
||||
#define BASE_WEAK_PTR_H_
|
||||
#ifndef BASE_MEMORY_WEAK_PTR_H_
|
||||
#define BASE_MEMORY_WEAK_PTR_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/base_api.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/threading/non_thread_safe.h"
|
||||
|
||||
namespace base {
|
||||
@ -243,4 +243,4 @@ class WeakPtrFactory {
|
||||
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_WEAK_PTR_H_
|
||||
#endif // BASE_MEMORY_WEAK_PTR_H_
|
@ -1,12 +1,12 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "base/message_loop.h"
|
||||
#include "base/threading/thread.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/weak_ptr.h"
|
||||
|
||||
namespace base {
|
||||
namespace {
|
@ -11,9 +11,9 @@
|
||||
|
||||
#include "base/base_api.h"
|
||||
#include "base/basictypes.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/message_pump.h"
|
||||
#include "base/observer_list.h"
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/synchronization/lock.h"
|
||||
#include "base/task.h"
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include "base/base_api.h"
|
||||
#include "base/basictypes.h"
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/task.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -1,10 +1,10 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/message_loop.h"
|
||||
#include "base/message_loop_proxy_impl.h"
|
||||
#include "base/scoped_ptr.h"
|
||||
#include "base/threading/thread.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "testing/platform_test.h"
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
#include "base/eintr_wrapper.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/message_loop.h"
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/task.h"
|
||||
#include "base/threading/platform_thread.h"
|
||||
#include "base/threading/thread.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "base/base_api.h"
|
||||
#include "base/ref_counted.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user