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

Side by Side Diff: third_party/WebKit/Source/core/page/EventSource.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) 2009, 2012 Ericsson AB. All rights reserved. 2 * Copyright (C) 2009, 2012 Ericsson AB. All rights reserved.
3 * Copyright (C) 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2010 Apple 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 public: 56 public:
57 static EventSource* create(ExecutionContext*, const String& url, const Event SourceInit&, ExceptionState&); 57 static EventSource* create(ExecutionContext*, const String& url, const Event SourceInit&, ExceptionState&);
58 ~EventSource() override; 58 ~EventSource() override;
59 59
60 static const unsigned long long defaultReconnectDelay; 60 static const unsigned long long defaultReconnectDelay;
61 61
62 String url() const; 62 String url() const;
63 bool withCredentials() const; 63 bool withCredentials() const;
64 64
65 enum State : short { 65 enum State : short {
66 CONNECTING = 0, 66 kConnecting = 0,
67 OPEN = 1, 67 kOpen = 1,
68 CLOSED = 2 68 kClosed = 2
69 }; 69 };
70 70
71 State readyState() const; 71 State readyState() const;
72 72
73 DEFINE_ATTRIBUTE_EVENT_LISTENER(open); 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(open);
74 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
75 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
76 76
77 void close(); 77 void close();
78 78
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 std::unique_ptr<ThreadableLoader> m_loader; 125 std::unique_ptr<ThreadableLoader> m_loader;
126 Timer<EventSource> m_connectTimer; 126 Timer<EventSource> m_connectTimer;
127 127
128 unsigned long long m_reconnectDelay; 128 unsigned long long m_reconnectDelay;
129 String m_eventStreamOrigin; 129 String m_eventStreamOrigin;
130 }; 130 };
131 131
132 } // namespace blink 132 } // namespace blink
133 133
134 #endif // EventSource_h 134 #endif // EventSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698