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

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: Add mock interface and fix tests. 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 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 audio_renderer_host_ = new AudioRendererHost( 924 audio_renderer_host_ = new AudioRendererHost(
925 GetID(), audio_manager, AudioMirroringManager::GetInstance(), 925 GetID(), audio_manager, AudioMirroringManager::GetInstance(),
926 media_internals, media_stream_manager, 926 media_internals, media_stream_manager,
927 browser_context->GetResourceContext()->GetMediaDeviceIDSalt()); 927 browser_context->GetResourceContext()->GetMediaDeviceIDSalt());
928 AddFilter(audio_renderer_host_.get()); 928 AddFilter(audio_renderer_host_.get());
929 AddFilter( 929 AddFilter(
930 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); 930 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager()));
931 AddFilter(new VideoCaptureHost(media_stream_manager)); 931 AddFilter(new VideoCaptureHost(media_stream_manager));
932 AddFilter(new AppCacheDispatcherHost( 932 AddFilter(new AppCacheDispatcherHost(
933 storage_partition_impl_->GetAppCacheService(), GetID())); 933 storage_partition_impl_->GetAppCacheService(), GetID()));
934 AddFilter(new ClipboardMessageFilter); 934 AddFilter(new ClipboardMessageFilter(blob_storage_context));
935 AddFilter(new DOMStorageMessageFilter( 935 AddFilter(new DOMStorageMessageFilter(
936 storage_partition_impl_->GetDOMStorageContext())); 936 storage_partition_impl_->GetDOMStorageContext()));
937 AddFilter(new IndexedDBDispatcherHost( 937 AddFilter(new IndexedDBDispatcherHost(
938 GetID(), storage_partition_impl_->GetURLRequestContext(), 938 GetID(), storage_partition_impl_->GetURLRequestContext(),
939 storage_partition_impl_->GetIndexedDBContext(), 939 storage_partition_impl_->GetIndexedDBContext(),
940 blob_storage_context.get())); 940 blob_storage_context.get()));
941 941
942 #if defined(ENABLE_WEBRTC) 942 #if defined(ENABLE_WEBRTC)
943 AddFilter(new WebRTCIdentityServiceHost( 943 AddFilter(new WebRTCIdentityServiceHost(
944 GetID(), storage_partition_impl_->GetWebRTCIdentityStore(), 944 GetID(), storage_partition_impl_->GetWebRTCIdentityStore(),
(...skipping 1883 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

Powered by Google App Engine
This is Rietveld 408576698