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

Side by Side Diff: chrome/browser/prerender/prerender_browsertest.cc

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
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 <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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_info_message_filter.cc ('k') | chrome/browser/prerender/prerender_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698