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

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

Issue 297343002: Delete EmbeddedWorkerDispatcher in RenderThreadImpl::Shutdown(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated falken's comment 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 } 555 }
556 556
557 media_thread_.reset(); 557 media_thread_.reset();
558 compositor_thread_.reset(); 558 compositor_thread_.reset();
559 input_handler_manager_.reset(); 559 input_handler_manager_.reset();
560 if (input_event_filter_.get()) { 560 if (input_event_filter_.get()) {
561 RemoveFilter(input_event_filter_.get()); 561 RemoveFilter(input_event_filter_.get());
562 input_event_filter_ = NULL; 562 input_event_filter_ = NULL;
563 } 563 }
564 564
565 // RemoveEmbeddedWorkerRoute may be called while deleting
566 // EmbeddedWorkerDispatcher. So it must be deleted before deleting
567 // RenderThreadImpl.
568 embedded_worker_dispatcher_.reset();
569
565 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might 570 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might
566 // hold pointers to V8 objects (e.g., via pending requests). 571 // hold pointers to V8 objects (e.g., via pending requests).
567 main_thread_indexed_db_dispatcher_.reset(); 572 main_thread_indexed_db_dispatcher_.reset();
568 573
569 if (webkit_platform_support_) 574 if (webkit_platform_support_)
570 blink::shutdown(); 575 blink::shutdown();
571 576
572 lazy_tls.Pointer()->Set(NULL); 577 lazy_tls.Pointer()->Set(NULL);
573 578
574 // TODO(port) 579 // TODO(port)
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 hidden_widget_count_--; 1513 hidden_widget_count_--;
1509 1514
1510 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1515 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1511 return; 1516 return;
1512 } 1517 }
1513 1518
1514 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1519 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1515 } 1520 }
1516 1521
1517 } // namespace content 1522 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698