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

Side by Side Diff: content/shell/shell_browser_main.cc

Issue 8879013: Deprecate WEBKIT thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update after rebase Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_browser_context.cc ('k') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/shell/shell_browser_main.h" 5 #include "content/shell/shell_browser_main.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 void ShellBrowserMainParts::PostMainMessageLoopRun() { 60 void ShellBrowserMainParts::PostMainMessageLoopRun() {
61 browser_context_.reset(); 61 browser_context_.reset();
62 62
63 resource_dispatcher_host_->download_file_manager()->Shutdown(); 63 resource_dispatcher_host_->download_file_manager()->Shutdown();
64 resource_dispatcher_host_->save_file_manager()->Shutdown(); 64 resource_dispatcher_host_->save_file_manager()->Shutdown();
65 resource_dispatcher_host_->Shutdown(); 65 resource_dispatcher_host_->Shutdown();
66 } 66 }
67 67
68 void ShellBrowserMainParts::PreStopThread(BrowserThread::ID id) { 68 void ShellBrowserMainParts::PreStopThread(BrowserThread::ID id) {
69 if (id == BrowserThread::WEBKIT) { 69 if (id == BrowserThread::WEBKIT_DEPRECATED) {
70 resource_dispatcher_host_.reset(); 70 resource_dispatcher_host_.reset();
71 } 71 }
72 } 72 }
73 73
74 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) { 74 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) {
75 return false; 75 return false;
76 } 76 }
77 77
78 ResourceDispatcherHost* ShellBrowserMainParts::GetResourceDispatcherHost() { 78 ResourceDispatcherHost* ShellBrowserMainParts::GetResourceDispatcherHost() {
79 if (!resource_dispatcher_host_.get()) { 79 if (!resource_dispatcher_host_.get()) {
80 ResourceQueue::DelegateSet resource_queue_delegates; 80 ResourceQueue::DelegateSet resource_queue_delegates;
81 resource_dispatcher_host_.reset( 81 resource_dispatcher_host_.reset(
82 new ResourceDispatcherHost(resource_queue_delegates)); 82 new ResourceDispatcherHost(resource_queue_delegates));
83 resource_dispatcher_host_->Initialize(); 83 resource_dispatcher_host_->Initialize();
84 } 84 }
85 return resource_dispatcher_host_.get(); 85 return resource_dispatcher_host_.get();
86 } 86 }
87 87
88 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { 88 ui::Clipboard* ShellBrowserMainParts::GetClipboard() {
89 if (!clipboard_.get()) 89 if (!clipboard_.get())
90 clipboard_.reset(new ui::Clipboard()); 90 clipboard_.reset(new ui::Clipboard());
91 return clipboard_.get(); 91 return clipboard_.get();
92 } 92 }
93 93
94 } // namespace 94 } // namespace
OLDNEW
« no previous file with comments | « content/shell/shell_browser_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698