OLD | NEW |
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 <deque> | 5 #include <deque> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 } | 215 } |
216 | 216 |
217 private: | 217 private: |
218 virtual ~DestructionMessageFilter() { | 218 virtual ~DestructionMessageFilter() { |
219 content::BrowserThread::PostTask( | 219 content::BrowserThread::PostTask( |
220 content::BrowserThread::UI, FROM_HERE, | 220 content::BrowserThread::UI, FROM_HERE, |
221 base::Bind(&ChannelDestructionWatcher::OnChannelDestroyed, | 221 base::Bind(&ChannelDestructionWatcher::OnChannelDestroyed, |
222 base::Unretained(watcher_))); | 222 base::Unretained(watcher_))); |
223 } | 223 } |
224 | 224 |
225 virtual bool OnMessageReceived(const IPC::Message& message, | 225 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE { |
226 bool* message_was_ok) OVERRIDE { | |
227 return false; | 226 return false; |
228 } | 227 } |
229 | 228 |
230 ChannelDestructionWatcher* watcher_; | 229 ChannelDestructionWatcher* watcher_; |
231 | 230 |
232 DISALLOW_COPY_AND_ASSIGN(DestructionMessageFilter); | 231 DISALLOW_COPY_AND_ASSIGN(DestructionMessageFilter); |
233 }; | 232 }; |
234 | 233 |
235 void OnChannelDestroyed() { | 234 void OnChannelDestroyed() { |
236 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 235 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
(...skipping 4175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4412 | 4411 |
4413 // Navigate to the URL entered. | 4412 // Navigate to the URL entered. |
4414 omnibox_view->model()->AcceptInput(CURRENT_TAB, false); | 4413 omnibox_view->model()->AcceptInput(CURRENT_TAB, false); |
4415 | 4414 |
4416 // Prerender should be running, but abandoned. | 4415 // Prerender should be running, but abandoned. |
4417 EXPECT_TRUE( | 4416 EXPECT_TRUE( |
4418 GetAutocompleteActionPredictor()->IsPrerenderAbandonedForTesting()); | 4417 GetAutocompleteActionPredictor()->IsPrerenderAbandonedForTesting()); |
4419 } | 4418 } |
4420 | 4419 |
4421 } // namespace prerender | 4420 } // namespace prerender |
OLD | NEW |