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

Side by Side Diff: webkit/support/test_webmessageportchannel.cc

Issue 15937016: Update refernces to Blink's Platform API (webkit) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 "webkit/support/test_webmessageportchannel.h" 5 #include "webkit/support/test_webmessageportchannel.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebMessagePortChann elClient.h" 10 #include "third_party/WebKit/public/platform/WebMessagePortChannelClient.h"
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 11 #include "third_party/WebKit/public/platform/WebString.h"
12 12
13 using WebKit::WebMessagePortChannel; 13 using WebKit::WebMessagePortChannel;
14 using WebKit::WebMessagePortChannelArray; 14 using WebKit::WebMessagePortChannelArray;
15 using WebKit::WebMessagePortChannelClient; 15 using WebKit::WebMessagePortChannelClient;
16 using WebKit::WebString; 16 using WebKit::WebString;
17 17
18 class TestWebMessagePortChannel::Message { 18 class TestWebMessagePortChannel::Message {
19 public: 19 public:
20 Message(WebString data, WebMessagePortChannelArray* ports) 20 Message(WebString data, WebMessagePortChannelArray* ports)
21 : data_(data), 21 : data_(data),
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 TestWebMessagePortChannel::~TestWebMessagePortChannel() {} 83 TestWebMessagePortChannel::~TestWebMessagePortChannel() {}
84 84
85 void TestWebMessagePortChannel::queueMessage(Message* message) { 85 void TestWebMessagePortChannel::queueMessage(Message* message) {
86 bool was_empty = message_queue_.empty(); 86 bool was_empty = message_queue_.empty();
87 message_queue_.push(message); 87 message_queue_.push(message);
88 if (client_ && was_empty) 88 if (client_ && was_empty)
89 client_->messageAvailable(); 89 client_->messageAvailable();
90 } 90 }
OLDNEW
« no previous file with comments | « webkit/support/test_webmessageportchannel.h ('k') | webkit/support/test_webplugin_page_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698