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

Side by Side Diff: third_party/WebKit/Source/modules/websockets/DOMWebSocket.h

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 public: 66 public:
67 static const char* subprotocolSeperator(); 67 static const char* subprotocolSeperator();
68 // DOMWebSocket instances must be used with a wrapper since this class's 68 // DOMWebSocket instances must be used with a wrapper since this class's
69 // lifetime management is designed assuming the V8 holds a ref on it while 69 // lifetime management is designed assuming the V8 holds a ref on it while
70 // hasPendingActivity() returns true. 70 // hasPendingActivity() returns true.
71 static DOMWebSocket* create(ExecutionContext*, const String& url, ExceptionS tate&); 71 static DOMWebSocket* create(ExecutionContext*, const String& url, ExceptionS tate&);
72 static DOMWebSocket* create(ExecutionContext*, const String& url, const Stri ngOrStringSequence& protocols, ExceptionState&); 72 static DOMWebSocket* create(ExecutionContext*, const String& url, const Stri ngOrStringSequence& protocols, ExceptionState&);
73 ~DOMWebSocket() override; 73 ~DOMWebSocket() override;
74 74
75 enum State { 75 enum State {
76 CONNECTING = 0, 76 kConnecting = 0,
77 OPEN = 1, 77 kOpen = 1,
78 CLOSING = 2, 78 kClosing = 2,
79 CLOSED = 3 79 kClosed = 3
80 }; 80 };
81 81
82 void connect(const String& url, const Vector<String>& protocols, ExceptionSt ate&); 82 void connect(const String& url, const Vector<String>& protocols, ExceptionSt ate&);
83 83
84 void send(const String& message, ExceptionState&); 84 void send(const String& message, ExceptionState&);
85 void send(DOMArrayBuffer*, ExceptionState&); 85 void send(DOMArrayBuffer*, ExceptionState&);
86 void send(DOMArrayBufferView*, ExceptionState&); 86 void send(DOMArrayBufferView*, ExceptionState&);
87 void send(Blob*, ExceptionState&); 87 void send(Blob*, ExceptionState&);
88 88
89 // To distinguish close method call with the code parameter from one 89 // To distinguish close method call with the code parameter from one
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 String m_subprotocol; 242 String m_subprotocol;
243 String m_extensions; 243 String m_extensions;
244 244
245 Member<EventQueue> m_eventQueue; 245 Member<EventQueue> m_eventQueue;
246 Timer<DOMWebSocket> m_bufferedAmountConsumeTimer; 246 Timer<DOMWebSocket> m_bufferedAmountConsumeTimer;
247 }; 247 };
248 248
249 } // namespace blink 249 } // namespace blink
250 250
251 #endif // DOMWebSocket_h 251 #endif // DOMWebSocket_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698