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

Side by Side Diff: chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc

Issue 10553010: Rename IPC::Channel and IPC::Sender in src/chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // appears. 73 // appears.
74 class PortalFrameLoadObserver : public content::RenderViewHostObserver { 74 class PortalFrameLoadObserver : public content::RenderViewHostObserver {
75 public: 75 public:
76 PortalFrameLoadObserver(const base::WeakPtr<MobileSetupUI>& parent, 76 PortalFrameLoadObserver(const base::WeakPtr<MobileSetupUI>& parent,
77 RenderViewHost* host) 77 RenderViewHost* host)
78 : content::RenderViewHostObserver(host), parent_(parent) { 78 : content::RenderViewHostObserver(host), parent_(parent) {
79 Send(new ChromeViewMsg_StartFrameSniffer(routing_id(), 79 Send(new ChromeViewMsg_StartFrameSniffer(routing_id(),
80 UTF8ToUTF16("paymentForm"))); 80 UTF8ToUTF16("paymentForm")));
81 } 81 }
82 82
83 // IPC::Channel::Listener implementation. 83 // IPC::Listener implementation.
84 virtual bool OnMessageReceived(const IPC::Message& message) { 84 virtual bool OnMessageReceived(const IPC::Message& message) {
85 bool handled = true; 85 bool handled = true;
86 IPC_BEGIN_MESSAGE_MAP(PortalFrameLoadObserver, message) 86 IPC_BEGIN_MESSAGE_MAP(PortalFrameLoadObserver, message)
87 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_FrameLoadingError, OnFrameLoadError) 87 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_FrameLoadingError, OnFrameLoadError)
88 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_FrameLoadingCompleted, 88 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_FrameLoadingCompleted,
89 OnFrameLoadCompleted) 89 OnFrameLoadCompleted)
90 IPC_MESSAGE_UNHANDLED(handled = false) 90 IPC_MESSAGE_UNHANDLED(handled = false)
91 IPC_END_MESSAGE_MAP() 91 IPC_END_MESSAGE_MAP()
92 return handled; 92 return handled;
93 } 93 }
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 339
340 // Set up the chrome://mobilesetup/ source. 340 // Set up the chrome://mobilesetup/ source.
341 Profile* profile = Profile::FromWebUI(web_ui); 341 Profile* profile = Profile::FromWebUI(web_ui);
342 ChromeURLDataManager::AddDataSource(profile, html_source); 342 ChromeURLDataManager::AddDataSource(profile, html_source);
343 } 343 }
344 344
345 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) { 345 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) {
346 // Destroyed by the corresponding RenderViewHost 346 // Destroyed by the corresponding RenderViewHost
347 new PortalFrameLoadObserver(AsWeakPtr(), host); 347 new PortalFrameLoadObserver(AsWeakPtr(), host);
348 } 348 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698