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

Side by Side Diff: content/shell/browser/notify_done_forwarder.cc

Issue 23316003: [content shell] move browser process stuff into browser/ subdir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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
« no previous file with comments | « content/shell/browser/notify_done_forwarder.h ('k') | content/shell/browser/shell.h » ('j') | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/notify_done_forwarder.h" 5 #include "content/shell/browser/notify_done_forwarder.h"
6 6
7 #include "content/shell/browser/webkit_test_controller.h"
7 #include "content/shell/common/shell_messages.h" 8 #include "content/shell/common/shell_messages.h"
8 #include "content/shell/webkit_test_controller.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 DEFINE_WEB_CONTENTS_USER_DATA_KEY(NotifyDoneForwarder); 12 DEFINE_WEB_CONTENTS_USER_DATA_KEY(NotifyDoneForwarder);
13 13
14 NotifyDoneForwarder::NotifyDoneForwarder(WebContents* web_contents) 14 NotifyDoneForwarder::NotifyDoneForwarder(WebContents* web_contents)
15 : WebContentsObserver(web_contents) {} 15 : WebContentsObserver(web_contents) {}
16 16
17 NotifyDoneForwarder::~NotifyDoneForwarder() {} 17 NotifyDoneForwarder::~NotifyDoneForwarder() {}
18 18
19 bool NotifyDoneForwarder::OnMessageReceived(const IPC::Message& message) { 19 bool NotifyDoneForwarder::OnMessageReceived(const IPC::Message& message) {
20 bool handled = true; 20 bool handled = true;
21 IPC_BEGIN_MESSAGE_MAP(NotifyDoneForwarder, message) 21 IPC_BEGIN_MESSAGE_MAP(NotifyDoneForwarder, message)
22 IPC_MESSAGE_HANDLER(ShellViewHostMsg_TestFinishedInSecondaryWindow, 22 IPC_MESSAGE_HANDLER(ShellViewHostMsg_TestFinishedInSecondaryWindow,
23 OnTestFinishedInSecondaryWindow) 23 OnTestFinishedInSecondaryWindow)
24 IPC_MESSAGE_UNHANDLED(handled = false) 24 IPC_MESSAGE_UNHANDLED(handled = false)
25 IPC_END_MESSAGE_MAP() 25 IPC_END_MESSAGE_MAP()
26 return handled; 26 return handled;
27 } 27 }
28 28
29 void NotifyDoneForwarder::OnTestFinishedInSecondaryWindow() { 29 void NotifyDoneForwarder::OnTestFinishedInSecondaryWindow() {
30 WebKitTestController::Get()->TestFinishedInSecondaryWindow(); 30 WebKitTestController::Get()->TestFinishedInSecondaryWindow();
31 } 31 }
32 32
33 } // namespace content 33 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/notify_done_forwarder.h ('k') | content/shell/browser/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698