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

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

Issue 270633009: [FileAPI] Clean up WebFileSystemImpl before Blink shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +clean up on RenderThreadImpl Created 6 years, 7 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 (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 15 matching lines...) Expand all
26 #include "base/strings/utf_string_conversions.h" 26 #include "base/strings/utf_string_conversions.h"
27 #include "base/threading/thread_local.h" 27 #include "base/threading/thread_local.h"
28 #include "base/threading/thread_restrictions.h" 28 #include "base/threading/thread_restrictions.h"
29 #include "base/values.h" 29 #include "base/values.h"
30 #include "cc/base/switches.h" 30 #include "cc/base/switches.h"
31 #include "cc/resources/raster_worker_pool.h" 31 #include "cc/resources/raster_worker_pool.h"
32 #include "content/child/appcache/appcache_dispatcher.h" 32 #include "content/child/appcache/appcache_dispatcher.h"
33 #include "content/child/appcache/appcache_frontend_impl.h" 33 #include "content/child/appcache/appcache_frontend_impl.h"
34 #include "content/child/child_histogram_message_filter.h" 34 #include "content/child/child_histogram_message_filter.h"
35 #include "content/child/db_message_filter.h" 35 #include "content/child/db_message_filter.h"
36 #include "content/child/fileapi/webfilesystem_impl.h"
36 #include "content/child/indexed_db/indexed_db_dispatcher.h" 37 #include "content/child/indexed_db/indexed_db_dispatcher.h"
37 #include "content/child/indexed_db/indexed_db_message_filter.h" 38 #include "content/child/indexed_db/indexed_db_message_filter.h"
38 #include "content/child/npapi/npobject_util.h" 39 #include "content/child/npapi/npobject_util.h"
39 #include "content/child/plugin_messages.h" 40 #include "content/child/plugin_messages.h"
40 #include "content/child/resource_dispatcher.h" 41 #include "content/child/resource_dispatcher.h"
41 #include "content/child/runtime_features.h" 42 #include "content/child/runtime_features.h"
42 #include "content/child/thread_safe_sender.h" 43 #include "content/child/thread_safe_sender.h"
43 #include "content/child/web_database_observer_impl.h" 44 #include "content/child/web_database_observer_impl.h"
44 #include "content/child/worker_task_runner.h" 45 #include "content/child/worker_task_runner.h"
45 #include "content/common/child_process_messages.h" 46 #include "content/common/child_process_messages.h"
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 552 }
552 553
553 media_thread_.reset(); 554 media_thread_.reset();
554 compositor_thread_.reset(); 555 compositor_thread_.reset();
555 input_handler_manager_.reset(); 556 input_handler_manager_.reset();
556 if (input_event_filter_.get()) { 557 if (input_event_filter_.get()) {
557 RemoveFilter(input_event_filter_.get()); 558 RemoveFilter(input_event_filter_.get());
558 input_event_filter_ = NULL; 559 input_event_filter_ = NULL;
559 } 560 }
560 561
561 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might 562 // Ramp down IDB and FileSystem before we ramp down WebKit (and V8), since
562 // hold pointers to V8 objects (e.g., via pending requests). 563 // these classes might hold pointers to V8 objects (e.g., via pending
564 // requests).
563 main_thread_indexed_db_dispatcher_.reset(); 565 main_thread_indexed_db_dispatcher_.reset();
566 WebFileSystemImpl::DeleteThreadSpecificInstance();
kinuko 2014/05/08 07:44:09 Should we do this in ChildThread::Shutdown() rathe
tzik 2014/05/08 08:05:30 Done.
564 567
565 if (webkit_platform_support_) 568 if (webkit_platform_support_)
566 blink::shutdown(); 569 blink::shutdown();
567 570
568 lazy_tls.Pointer()->Set(NULL); 571 lazy_tls.Pointer()->Set(NULL);
569 572
570 // TODO(port) 573 // TODO(port)
571 #if defined(OS_WIN) 574 #if defined(OS_WIN)
572 // Clean up plugin channels before this thread goes away. 575 // Clean up plugin channels before this thread goes away.
573 NPChannelBase::CleanupChannels(); 576 NPChannelBase::CleanupChannels();
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 hidden_widget_count_--; 1500 hidden_widget_count_--;
1498 1501
1499 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1502 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1500 return; 1503 return;
1501 } 1504 }
1502 1505
1503 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1506 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1504 } 1507 }
1505 1508
1506 } // namespace content 1509 } // namespace content
OLDNEW
« content/child/fileapi/webfilesystem_impl.cc ('K') | « content/child/fileapi/webfilesystem_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698