diff options
author | brettw <brettw@chromium.org> | 2015-06-02 21:29:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-03 04:30:27 +0000 |
commit | bd4d71128239a38fa844c42e4110458109a8b135 (patch) | |
tree | 47ff0ad11b9270fb410d93632fd63a0c78218176 /content/child | |
parent | 6f89d8f965bae07a352ee82abe1fb551f65d65e1 (diff) | |
download | chromium_src-bd4d71128239a38fa844c42e4110458109a8b135.zip chromium_src-bd4d71128239a38fa844c42e4110458109a8b135.tar.gz chromium_src-bd4d71128239a38fa844c42e4110458109a8b135.tar.bz2 |
Change most uses of Pickle to base::Pickle
There should be no behavior change.
TBR=jschuh (IPC messages)
Review URL: https://codereview.chromium.org/1154283003
Cr-Commit-Position: refs/heads/master@{#332552}
Diffstat (limited to 'content/child')
-rw-r--r-- | content/child/bluetooth/bluetooth_message_filter.cc | 2 | ||||
-rw-r--r-- | content/child/geofencing/geofencing_message_filter.cc | 2 | ||||
-rw-r--r-- | content/child/indexed_db/indexed_db_message_filter.cc | 2 | ||||
-rw-r--r-- | content/child/navigator_connect/navigator_connect_dispatcher.cc | 2 | ||||
-rw-r--r-- | content/child/notifications/notification_dispatcher.cc | 2 | ||||
-rw-r--r-- | content/child/npapi/npruntime_util.cc | 4 | ||||
-rw-r--r-- | content/child/plugin_param_traits.cc | 4 | ||||
-rw-r--r-- | content/child/push_messaging/push_dispatcher.cc | 2 | ||||
-rw-r--r-- | content/child/quota_message_filter.cc | 2 | ||||
-rw-r--r-- | content/child/resource_dispatcher.cc | 4 | ||||
-rw-r--r-- | content/child/service_worker/service_worker_message_filter.cc | 2 | ||||
-rw-r--r-- | content/child/threaded_data_provider.cc | 2 |
12 files changed, 15 insertions, 15 deletions
diff --git a/content/child/bluetooth/bluetooth_message_filter.cc b/content/child/bluetooth/bluetooth_message_filter.cc index 554e3c3..45b8da6 100644 --- a/content/child/bluetooth/bluetooth_message_filter.cc +++ b/content/child/bluetooth/bluetooth_message_filter.cc @@ -31,7 +31,7 @@ void BluetoothMessageFilter::OnFilteredMessageReceived( bool BluetoothMessageFilter::GetWorkerThreadIdForMessage( const IPC::Message& msg, int* ipc_thread_id) { - return PickleIterator(msg).ReadInt(ipc_thread_id); + return base::PickleIterator(msg).ReadInt(ipc_thread_id); } } // namespace content diff --git a/content/child/geofencing/geofencing_message_filter.cc b/content/child/geofencing/geofencing_message_filter.cc index a866b37..b30645c 100644 --- a/content/child/geofencing/geofencing_message_filter.cc +++ b/content/child/geofencing/geofencing_message_filter.cc @@ -30,7 +30,7 @@ void GeofencingMessageFilter::OnFilteredMessageReceived( bool GeofencingMessageFilter::GetWorkerThreadIdForMessage( const IPC::Message& msg, int* ipc_thread_id) { - return PickleIterator(msg).ReadInt(ipc_thread_id); + return base::PickleIterator(msg).ReadInt(ipc_thread_id); } } // namespace content diff --git a/content/child/indexed_db/indexed_db_message_filter.cc b/content/child/indexed_db/indexed_db_message_filter.cc index 60c1bea..b0d0396 100644 --- a/content/child/indexed_db/indexed_db_message_filter.cc +++ b/content/child/indexed_db/indexed_db_message_filter.cc @@ -32,7 +32,7 @@ void IndexedDBMessageFilter::OnFilteredMessageReceived( bool IndexedDBMessageFilter::GetWorkerThreadIdForMessage( const IPC::Message& msg, int* ipc_thread_id) { - return PickleIterator(msg).ReadInt(ipc_thread_id); + return base::PickleIterator(msg).ReadInt(ipc_thread_id); } void IndexedDBMessageFilter::OnStaleMessageReceived(const IPC::Message& msg) { diff --git a/content/child/navigator_connect/navigator_connect_dispatcher.cc b/content/child/navigator_connect/navigator_connect_dispatcher.cc index 1a30433..ee5bc3e 100644 --- a/content/child/navigator_connect/navigator_connect_dispatcher.cc +++ b/content/child/navigator_connect/navigator_connect_dispatcher.cc @@ -30,7 +30,7 @@ void NavigatorConnectDispatcher::OnFilteredMessageReceived( bool NavigatorConnectDispatcher::GetWorkerThreadIdForMessage( const IPC::Message& msg, int* ipc_thread_id) { - return PickleIterator(msg).ReadInt(ipc_thread_id); + return base::PickleIterator(msg).ReadInt(ipc_thread_id); } } // namespace content diff --git a/content/child/notifications/notification_dispatcher.cc b/content/child/notifications/notification_dispatcher.cc index e99ddc4..1c6fb54 100644 --- a/content/child/notifications/notification_dispatcher.cc +++ b/content/child/notifications/notification_dispatcher.cc @@ -41,7 +41,7 @@ bool NotificationDispatcher::GetWorkerThreadIdForMessage( const IPC::Message& msg, int* ipc_thread_id) { int notification_id = -1; - const bool success = PickleIterator(msg).ReadInt(¬ification_id); + const bool success = base::PickleIterator(msg).ReadInt(¬ification_id); DCHECK(success); base::AutoLock lock(notification_id_map_lock_); diff --git a/content/child/npapi/npruntime_util.cc b/content/child/npapi/npruntime_util.cc index da2f42c..f3edb9bd 100644 --- a/content/child/npapi/npruntime_util.cc +++ b/content/child/npapi/npruntime_util.cc @@ -11,7 +11,7 @@ using blink::WebBindings; namespace content { -bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle) { +bool SerializeNPIdentifier(NPIdentifier identifier, base::Pickle* pickle) { const NPUTF8* string; int32_t number; bool is_string; @@ -26,7 +26,7 @@ bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle) { return pickle->WriteInt(number); } -bool DeserializeNPIdentifier(PickleIterator* pickle_iter, +bool DeserializeNPIdentifier(base::PickleIterator* pickle_iter, NPIdentifier* identifier) { bool is_string; if (!pickle_iter->ReadBool(&is_string)) diff --git a/content/child/plugin_param_traits.cc b/content/child/plugin_param_traits.cc index 27b21dd..903936a 100644 --- a/content/child/plugin_param_traits.cc +++ b/content/child/plugin_param_traits.cc @@ -62,7 +62,7 @@ void ParamTraits<NPVariant_Param>::Write(Message* m, const param_type& p) { } bool ParamTraits<NPVariant_Param>::Read(const Message* m, - PickleIterator* iter, + base::PickleIterator* iter, param_type* r) { int type; if (!ReadParam(m, iter, &type)) @@ -117,7 +117,7 @@ void ParamTraits<NPIdentifier_Param>::Write(Message* m, const param_type& p) { } bool ParamTraits<NPIdentifier_Param>::Read(const Message* m, - PickleIterator* iter, + base::PickleIterator* iter, param_type* r) { return content::DeserializeNPIdentifier(iter, &r->identifier); } diff --git a/content/child/push_messaging/push_dispatcher.cc b/content/child/push_messaging/push_dispatcher.cc index 4303443..8d49c12 100644 --- a/content/child/push_messaging/push_dispatcher.cc +++ b/content/child/push_messaging/push_dispatcher.cc @@ -47,7 +47,7 @@ bool PushDispatcher::GetWorkerThreadIdForMessage(const IPC::Message& msg, int* ipc_thread_id) { int request_id = -1; - const bool success = PickleIterator(msg).ReadInt(&request_id); + const bool success = base::PickleIterator(msg).ReadInt(&request_id); DCHECK(success); base::AutoLock lock(request_id_map_lock_); diff --git a/content/child/quota_message_filter.cc b/content/child/quota_message_filter.cc index e9290e4..e196ebd 100644 --- a/content/child/quota_message_filter.cc +++ b/content/child/quota_message_filter.cc @@ -44,7 +44,7 @@ void QuotaMessageFilter::OnFilteredMessageReceived(const IPC::Message& msg) { bool QuotaMessageFilter::GetWorkerThreadIdForMessage(const IPC::Message& msg, int* ipc_thread_id) { int request_id = -1; - const bool success = PickleIterator(msg).ReadInt(&request_id); + const bool success = base::PickleIterator(msg).ReadInt(&request_id); DCHECK(success); base::AutoLock lock(request_id_map_lock_); diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc index 10bf13c7..59e54f4 100644 --- a/content/child/resource_dispatcher.cc +++ b/content/child/resource_dispatcher.cc @@ -84,7 +84,7 @@ bool ResourceDispatcher::OnMessageReceived(const IPC::Message& message) { int request_id; - PickleIterator iter(message); + base::PickleIterator iter(message); if (!iter.ReadInt(&request_id)) { NOTREACHED() << "malformed resource message"; return true; @@ -699,7 +699,7 @@ bool ResourceDispatcher::IsResourceDispatcherMessage( // static void ResourceDispatcher::ReleaseResourcesInDataMessage( const IPC::Message& message) { - PickleIterator iter(message); + base::PickleIterator iter(message); int request_id; if (!iter.ReadInt(&request_id)) { NOTREACHED() << "malformed resource message"; diff --git a/content/child/service_worker/service_worker_message_filter.cc b/content/child/service_worker/service_worker_message_filter.cc index 3568ad7..9966e41 100644 --- a/content/child/service_worker/service_worker_message_filter.cc +++ b/content/child/service_worker/service_worker_message_filter.cc @@ -56,7 +56,7 @@ void ServiceWorkerMessageFilter::OnFilteredMessageReceived( bool ServiceWorkerMessageFilter::GetWorkerThreadIdForMessage( const IPC::Message& msg, int* ipc_thread_id) { - return PickleIterator(msg).ReadInt(ipc_thread_id); + return base::PickleIterator(msg).ReadInt(ipc_thread_id); } void ServiceWorkerMessageFilter::OnStaleMessageReceived( diff --git a/content/child/threaded_data_provider.cc b/content/child/threaded_data_provider.cc index 4dbcb38..e5ef835 100644 --- a/content/child/threaded_data_provider.cc +++ b/content/child/threaded_data_provider.cc @@ -88,7 +88,7 @@ bool DataProviderMessageFilter::OnMessageReceived( int request_id; - PickleIterator iter(message); + base::PickleIterator iter(message); if (!iter.ReadInt(&request_id)) { NOTREACHED() << "malformed resource message"; return true; |