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

Side by Side Diff: components/message_port/web_message_port_channel_impl.cc

Issue 1358163006: Adds some code to help isolate where crash is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 5 years, 2 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/message_port/web_message_port_channel_impl.h" 5 #include "components/message_port/web_message_port_channel_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "third_party/WebKit/public/platform/WebMessagePortChannelClient.h" 10 #include "third_party/WebKit/public/platform/WebMessagePortChannelClient.h"
(...skipping 17 matching lines...) Expand all
28 NOTREACHED(); 28 NOTREACHED();
29 return; 29 return;
30 } 30 }
31 31
32 *channel1 = new WebMessagePortChannelImpl(pipe1.Pass());; 32 *channel1 = new WebMessagePortChannelImpl(pipe1.Pass());;
33 *channel2 = new WebMessagePortChannelImpl(pipe2.Pass()); 33 *channel2 = new WebMessagePortChannelImpl(pipe2.Pass());
34 } 34 }
35 35
36 WebMessagePortChannelImpl::WebMessagePortChannelImpl( 36 WebMessagePortChannelImpl::WebMessagePortChannelImpl(
37 mojo::ScopedMessagePipeHandle pipe) 37 mojo::ScopedMessagePipeHandle pipe)
38 : client_(nullptr), pipe_(pipe.Pass()) { 38 : client_(nullptr), pipe_(pipe.Pass()), handle_watcher_(13) {
39 WaitForNextMessage(); 39 WaitForNextMessage();
40 } 40 }
41 41
42 WebMessagePortChannelImpl::~WebMessagePortChannelImpl() { 42 WebMessagePortChannelImpl::~WebMessagePortChannelImpl() {
43 } 43 }
44 44
45 void WebMessagePortChannelImpl::setClient(WebMessagePortChannelClient* client) { 45 void WebMessagePortChannelImpl::setClient(WebMessagePortChannelClient* client) {
46 client_ = client; 46 client_ = client;
47 } 47 }
48 48
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 return; 131 return;
132 132
133 DCHECK_EQ(MOJO_RESULT_OK, result); 133 DCHECK_EQ(MOJO_RESULT_OK, result);
134 if (!client_) 134 if (!client_)
135 return; 135 return;
136 client_->messageAvailable(); 136 client_->messageAvailable();
137 WaitForNextMessage(); 137 WaitForNextMessage();
138 } 138 }
139 139
140 } // namespace message_port 140 } // namespace message_port
OLDNEW
« no previous file with comments | « components/html_viewer/web_url_loader_impl.cc ('k') | content/child/web_data_consumer_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698