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

Side by Side Diff: Source/platform/network/SocketStreamHandle.h

Issue 463543002: Oilpan: Ensure that classes with virtual trace methods always have vtables for their left-most base… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2009, 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2011, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 SocketStreamState state() const; 55 SocketStreamState state() const;
56 56
57 void connect(const KURL&); 57 void connect(const KURL&);
58 bool send(const char* data, int length); 58 bool send(const char* data, int length);
59 void close(); // Disconnect after all data in buffer are sent. 59 void close(); // Disconnect after all data in buffer are sent.
60 void disconnect(); 60 void disconnect();
61 61
62 SocketStreamHandleClient* client() const { return m_client; } 62 SocketStreamHandleClient* client() const { return m_client; }
63 void setClient(SocketStreamHandleClient*); 63 void setClient(SocketStreamHandleClient*);
64 64
65 void trace(Visitor*); 65 virtual void trace(Visitor*);
66 66
67 private: 67 private:
68 explicit SocketStreamHandle(SocketStreamHandleClient*); 68 explicit SocketStreamHandle(SocketStreamHandleClient*);
69 69
70 bool sendPendingData(); 70 bool sendPendingData();
71 71
72 int sendInternal(const char* data, int length); 72 int sendInternal(const char* data, int length);
73 void closeInternal(); 73 void closeInternal();
74 74
75 Member<SocketStreamHandleClient> m_client; 75 Member<SocketStreamHandleClient> m_client;
76 StreamBuffer<char, 1024 * 1024> m_buffer; 76 StreamBuffer<char, 1024 * 1024> m_buffer;
77 SocketStreamState m_state; 77 SocketStreamState m_state;
78 78
79 friend class SocketStreamHandleInternal; 79 friend class SocketStreamHandleInternal;
80 Member<SocketStreamHandleInternal> m_internal; 80 Member<SocketStreamHandleInternal> m_internal;
81 }; 81 };
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 #endif // SocketStreamHandle_h 85 #endif // SocketStreamHandle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698