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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1876653003: Register clipboard image blob in the browser process to copy data less. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 audio_renderer_host_ = new AudioRendererHost( 916 audio_renderer_host_ = new AudioRendererHost(
917 GetID(), audio_manager, AudioMirroringManager::GetInstance(), 917 GetID(), audio_manager, AudioMirroringManager::GetInstance(),
918 media_internals, media_stream_manager, 918 media_internals, media_stream_manager,
919 browser_context->GetResourceContext()->GetMediaDeviceIDSalt()); 919 browser_context->GetResourceContext()->GetMediaDeviceIDSalt());
920 AddFilter(audio_renderer_host_.get()); 920 AddFilter(audio_renderer_host_.get());
921 AddFilter( 921 AddFilter(
922 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); 922 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager()));
923 AddFilter(new VideoCaptureHost(media_stream_manager)); 923 AddFilter(new VideoCaptureHost(media_stream_manager));
924 AddFilter(new AppCacheDispatcherHost( 924 AddFilter(new AppCacheDispatcherHost(
925 storage_partition_impl_->GetAppCacheService(), GetID())); 925 storage_partition_impl_->GetAppCacheService(), GetID()));
926 AddFilter(new ClipboardMessageFilter); 926 AddFilter(new ClipboardMessageFilter(blob_storage_context));
927 AddFilter(new DOMStorageMessageFilter( 927 AddFilter(new DOMStorageMessageFilter(
928 storage_partition_impl_->GetDOMStorageContext())); 928 storage_partition_impl_->GetDOMStorageContext()));
929 AddFilter(new IndexedDBDispatcherHost( 929 AddFilter(new IndexedDBDispatcherHost(
930 GetID(), storage_partition_impl_->GetURLRequestContext(), 930 GetID(), storage_partition_impl_->GetURLRequestContext(),
931 storage_partition_impl_->GetIndexedDBContext(), 931 storage_partition_impl_->GetIndexedDBContext(),
932 blob_storage_context.get())); 932 blob_storage_context.get()));
933 933
934 #if defined(ENABLE_WEBRTC) 934 #if defined(ENABLE_WEBRTC)
935 AddFilter(new WebRTCIdentityServiceHost( 935 AddFilter(new WebRTCIdentityServiceHost(
936 GetID(), storage_partition_impl_->GetWebRTCIdentityStore(), 936 GetID(), storage_partition_impl_->GetWebRTCIdentityStore(),
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 2828
2829 // Skip widgets in other processes. 2829 // Skip widgets in other processes.
2830 if (rvh->GetProcess()->GetID() != GetID()) 2830 if (rvh->GetProcess()->GetID() != GetID())
2831 continue; 2831 continue;
2832 2832
2833 rvh->OnWebkitPreferencesChanged(); 2833 rvh->OnWebkitPreferencesChanged();
2834 } 2834 }
2835 } 2835 }
2836 2836
2837 } // namespace content 2837 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/clipboard_message_filter_unittest.cc ('k') | content/common/clipboard_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698