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

Side by Side Diff: chrome/common/webmessageportchannel_impl.h

Issue 3743001: FBTF: Fix more ctor/dtors found by clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Rebase to pick up mac fix on ToT Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/common/webmessageportchannel_impl.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_ 5 #ifndef CHROME_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_
6 #define CHROME_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_ 6 #define CHROME_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // IPC::Channel::Listener implementation. 50 // IPC::Channel::Listener implementation.
51 virtual void OnMessageReceived(const IPC::Message& message); 51 virtual void OnMessageReceived(const IPC::Message& message);
52 52
53 void OnMessage(const string16& message, 53 void OnMessage(const string16& message,
54 const std::vector<int>& sent_message_port_ids, 54 const std::vector<int>& sent_message_port_ids,
55 const std::vector<int>& new_routing_ids); 55 const std::vector<int>& new_routing_ids);
56 void OnMessagedQueued(); 56 void OnMessagedQueued();
57 57
58 struct Message { 58 struct Message {
59 Message();
60 ~Message();
61
59 string16 message; 62 string16 message;
60 std::vector<WebMessagePortChannelImpl*> ports; 63 std::vector<WebMessagePortChannelImpl*> ports;
61 }; 64 };
62 65
63 typedef std::queue<Message> MessageQueue; 66 typedef std::queue<Message> MessageQueue;
64 MessageQueue message_queue_; 67 MessageQueue message_queue_;
65 68
66 WebKit::WebMessagePortChannelClient* client_; 69 WebKit::WebMessagePortChannelClient* client_;
67 Lock lock_; // Locks access to above. 70 Lock lock_; // Locks access to above.
68 71
69 int route_id_; // The routing id for this object. 72 int route_id_; // The routing id for this object.
70 int message_port_id_; // A globally unique identifier for this message port. 73 int message_port_id_; // A globally unique identifier for this message port.
71 74
72 DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl); 75 DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl);
73 }; 76 };
74 77
75 #endif // CHROME_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_ 78 #endif // CHROME_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/common/webmessageportchannel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698