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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: comments Created 5 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 12 matching lines...) Expand all
23 #include "base/strings/string16.h" 23 #include "base/strings/string16.h"
24 #include "base/strings/string_number_conversions.h" 24 #include "base/strings/string_number_conversions.h"
25 #include "base/strings/string_split.h" 25 #include "base/strings/string_split.h"
26 #include "base/strings/string_tokenizer.h" 26 #include "base/strings/string_tokenizer.h"
27 #include "base/strings/sys_string_conversions.h" 27 #include "base/strings/sys_string_conversions.h"
28 #include "base/strings/utf_string_conversions.h" 28 #include "base/strings/utf_string_conversions.h"
29 #include "base/thread_task_runner_handle.h" 29 #include "base/thread_task_runner_handle.h"
30 #include "base/threading/simple_thread.h" 30 #include "base/threading/simple_thread.h"
31 #include "base/threading/thread_local.h" 31 #include "base/threading/thread_local.h"
32 #include "base/threading/thread_restrictions.h" 32 #include "base/threading/thread_restrictions.h"
33 #include "base/trace_event/memory_dump_manager.h"
34 #include "base/trace_event/trace_event.h" 33 #include "base/trace_event/trace_event.h"
35 #include "base/values.h" 34 #include "base/values.h"
36 #include "cc/base/histograms.h" 35 #include "cc/base/histograms.h"
37 #include "cc/base/switches.h" 36 #include "cc/base/switches.h"
38 #include "cc/blink/web_external_bitmap_impl.h" 37 #include "cc/blink/web_external_bitmap_impl.h"
39 #include "cc/blink/web_layer_impl.h" 38 #include "cc/blink/web_layer_impl.h"
40 #include "cc/layers/layer_settings.h" 39 #include "cc/layers/layer_settings.h"
41 #include "cc/raster/task_graph_runner.h" 40 #include "cc/raster/task_graph_runner.h"
42 #include "cc/trees/layer_tree_host_common.h" 41 #include "cc/trees/layer_tree_host_common.h"
43 #include "cc/trees/layer_tree_settings.h" 42 #include "cc/trees/layer_tree_settings.h"
44 #include "components/scheduler/child/webthread_base.h" 43 #include "components/scheduler/child/webthread_base.h"
45 #include "components/scheduler/renderer/renderer_scheduler.h" 44 #include "components/scheduler/renderer/renderer_scheduler.h"
46 #include "content/child/appcache/appcache_dispatcher.h" 45 #include "content/child/appcache/appcache_dispatcher.h"
47 #include "content/child/appcache/appcache_frontend_impl.h" 46 #include "content/child/appcache/appcache_frontend_impl.h"
47 #include "content/child/blob_storage/blob_message_filter.h"
48 #include "content/child/child_discardable_shared_memory_manager.h" 48 #include "content/child/child_discardable_shared_memory_manager.h"
49 #include "content/child/child_gpu_memory_buffer_manager.h" 49 #include "content/child/child_gpu_memory_buffer_manager.h"
50 #include "content/child/child_histogram_message_filter.h" 50 #include "content/child/child_histogram_message_filter.h"
51 #include "content/child/child_resource_message_filter.h" 51 #include "content/child/child_resource_message_filter.h"
52 #include "content/child/child_shared_bitmap_manager.h" 52 #include "content/child/child_shared_bitmap_manager.h"
53 #include "content/child/content_child_helpers.h" 53 #include "content/child/content_child_helpers.h"
54 #include "content/child/db_message_filter.h" 54 #include "content/child/db_message_filter.h"
55 #include "content/child/indexed_db/indexed_db_dispatcher.h" 55 #include "content/child/indexed_db/indexed_db_dispatcher.h"
56 #include "content/child/indexed_db/indexed_db_message_filter.h" 56 #include "content/child/indexed_db/indexed_db_message_filter.h"
57 #include "content/child/npapi/npobject_util.h" 57 #include "content/child/npapi/npobject_util.h"
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 // Note: This may reorder messages from the ResourceDispatcher with respect to 605 // Note: This may reorder messages from the ResourceDispatcher with respect to
606 // other subsystems. 606 // other subsystems.
607 resource_dispatch_throttler_.reset(new ResourceDispatchThrottler( 607 resource_dispatch_throttler_.reset(new ResourceDispatchThrottler(
608 static_cast<RenderThread*>(this), renderer_scheduler_.get(), 608 static_cast<RenderThread*>(this), renderer_scheduler_.get(),
609 base::TimeDelta::FromSecondsD(kThrottledResourceRequestFlushPeriodS), 609 base::TimeDelta::FromSecondsD(kThrottledResourceRequestFlushPeriodS),
610 kMaxResourceRequestsPerFlushWhenThrottled)); 610 kMaxResourceRequestsPerFlushWhenThrottled));
611 resource_dispatcher()->set_message_sender(resource_dispatch_throttler_.get()); 611 resource_dispatcher()->set_message_sender(resource_dispatch_throttler_.get());
612 612
613 media_stream_center_ = NULL; 613 media_stream_center_ = NULL;
614 614
615 blob_message_filter_ = new BlobMessageFilter();
616 AddFilter(blob_message_filter_.get());
615 db_message_filter_ = new DBMessageFilter(); 617 db_message_filter_ = new DBMessageFilter();
616 AddFilter(db_message_filter_.get()); 618 AddFilter(db_message_filter_.get());
617 619
618 vc_manager_.reset(new VideoCaptureImplManager()); 620 vc_manager_.reset(new VideoCaptureImplManager());
619 AddFilter(vc_manager_->video_capture_message_filter()); 621 AddFilter(vc_manager_->video_capture_message_filter());
620 622
621 browser_plugin_manager_.reset(new BrowserPluginManager()); 623 browser_plugin_manager_.reset(new BrowserPluginManager());
622 AddObserver(browser_plugin_manager_.get()); 624 AddObserver(browser_plugin_manager_.get());
623 625
624 #if defined(ENABLE_WEBRTC) 626 #if defined(ENABLE_WEBRTC)
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 1993
1992 void RenderThreadImpl::ReleaseFreeMemory() { 1994 void RenderThreadImpl::ReleaseFreeMemory() {
1993 base::allocator::ReleaseFreeMemory(); 1995 base::allocator::ReleaseFreeMemory();
1994 discardable_shared_memory_manager()->ReleaseFreeMemory(); 1996 discardable_shared_memory_manager()->ReleaseFreeMemory();
1995 1997
1996 if (blink_platform_impl_) 1998 if (blink_platform_impl_)
1997 blink::decommitFreeableMemory(); 1999 blink::decommitFreeableMemory();
1998 } 2000 }
1999 2001
2000 } // namespace content 2002 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698