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

Side by Side Diff: chrome_frame/cfproxy_proxy.cc

Issue 4200007: Refactor automation messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome_frame no longer depends on tab_contents.h Created 10 years, 1 month 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 | « chrome_frame/cfproxy.h ('k') | chrome_frame/cfproxy_support.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_frame/cfproxy_private.h" 5 #include "chrome_frame/cfproxy_private.h"
6 6
7 #include "base/tuple.h" 7 #include "base/tuple.h"
8 #include "ipc/ipc_sync_message.h" 8 #include "ipc/ipc_sync_message.h"
9 #include "chrome/test/automation/automation_messages.h" 9 #include "chrome/common/automation_messages.h"
10 10
11 CFProxy::CFProxy(CFProxyTraits* api) : ipc_thread_("ipc"), 11 CFProxy::CFProxy(CFProxyTraits* api) : ipc_thread_("ipc"),
12 sync_dispatcher_(&tab2delegate_), 12 sync_dispatcher_(&tab2delegate_),
13 ipc_sender_(NULL), 13 ipc_sender_(NULL),
14 api_(api), 14 api_(api),
15 delegate_count_(0), 15 delegate_count_(0),
16 is_connected_(false) { 16 is_connected_(false) {
17 } 17 }
18 18
19 CFProxy::~CFProxy() { 19 CFProxy::~CFProxy() {
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 void CFProxy::OnChannelError() { 239 void CFProxy::OnChannelError() {
240 is_connected_ = false; 240 is_connected_ = false;
241 241
242 // Inform the sync message callbacks that there are not going to see 242 // Inform the sync message callbacks that there are not going to see
243 // any reply. 243 // any reply.
244 sync_dispatcher_.OnChannelClosed(); 244 sync_dispatcher_.OnChannelClosed();
245 OnPeerLost(ChromeProxyDelegate::CHANNEL_ERROR); 245 OnPeerLost(ChromeProxyDelegate::CHANNEL_ERROR);
246 246
247 // TODO(stoyan): Relaunch? 247 // TODO(stoyan): Relaunch?
248 } 248 }
OLDNEW
« no previous file with comments | « chrome_frame/cfproxy.h ('k') | chrome_frame/cfproxy_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698