| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // shown at the devtool console. | 98 // shown at the devtool console. |
| 99 // sourceURL and lineNumber parameters may be shown with the reason text | 99 // sourceURL and lineNumber parameters may be shown with the reason text |
| 100 // at the devtool console. | 100 // at the devtool console. |
| 101 // Even if sourceURL and lineNumber are specified, they may be ignored | 101 // Even if sourceURL and lineNumber are specified, they may be ignored |
| 102 // and the "current" url and the line number in the sense of | 102 // and the "current" url and the line number in the sense of |
| 103 // JavaScript execution may be shown if this method is called in | 103 // JavaScript execution may be shown if this method is called in |
| 104 // a JS execution context. | 104 // a JS execution context. |
| 105 // You can specify String() and 0 for sourceURL and lineNumber | 105 // You can specify String() and 0 for sourceURL and lineNumber |
| 106 // respectively, if you can't / needn't provide the information. | 106 // respectively, if you can't / needn't provide the information. |
| 107 virtual void fail(const String& reason, MessageLevel, const String& sourceUR
L, unsigned lineNumber) = 0; | 107 virtual void fail(const String& reason, MessageLevel, const String& sourceUR
L, unsigned lineNumber) = 0; |
| 108 void fail(const String& reason, MessageLevel level) { fail(reason, level, St
ring(), 0); } | |
| 109 | 108 |
| 110 virtual void disconnect() = 0; // Will suppress didClose(). | 109 virtual void disconnect() = 0; // Will suppress didClose(). |
| 111 | 110 |
| 112 virtual void suspend() = 0; | 111 virtual void suspend() = 0; |
| 113 virtual void resume() = 0; | 112 virtual void resume() = 0; |
| 114 | 113 |
| 115 virtual ~WebSocketChannel() { } | 114 virtual ~WebSocketChannel() { } |
| 116 | 115 |
| 117 virtual void trace(Visitor*) { } | 116 virtual void trace(Visitor*) { } |
| 118 }; | 117 }; |
| 119 | 118 |
| 120 } // namespace WebCore | 119 } // namespace WebCore |
| 121 | 120 |
| 122 #endif // WebSocketChannel_h | 121 #endif // WebSocketChannel_h |
| OLD | NEW |