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

Side by Side Diff: public/platform/WebSocketStreamError.h

Issue 462843003: Cleanup namespace usage in public/platform/{Web[P-W]*,linux/*}.h (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 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 20 matching lines...) Expand all
31 #ifndef WebSocketStreamError_h 31 #ifndef WebSocketStreamError_h
32 #define WebSocketStreamError_h 32 #define WebSocketStreamError_h
33 33
34 #include "WebCommon.h" 34 #include "WebCommon.h"
35 #include "WebPrivatePtr.h" 35 #include "WebPrivatePtr.h"
36 36
37 #if INSIDE_BLINK 37 #if INSIDE_BLINK
38 #include "wtf/PassRefPtr.h" 38 #include "wtf/PassRefPtr.h"
39 #endif 39 #endif
40 40
41 namespace blink { class SocketStreamError; }
42
43 namespace blink { 41 namespace blink {
44 42
43 class SocketStreamError;
45 class WebString; 44 class WebString;
46 45
47 class BLINK_PLATFORM_EXPORT WebSocketStreamError { 46 class BLINK_PLATFORM_EXPORT WebSocketStreamError {
48 public: 47 public:
49 WebSocketStreamError(int code, const WebString& message) { assign(code, mess age); } 48 WebSocketStreamError(int code, const WebString& message) { assign(code, mess age); }
50 WebSocketStreamError(const WebSocketStreamError& other) { assign(other); } 49 WebSocketStreamError(const WebSocketStreamError& other) { assign(other); }
51 ~WebSocketStreamError() { reset(); } 50 ~WebSocketStreamError() { reset(); }
52 51
53 void assign(int code, const WebString& message); 52 void assign(int code, const WebString& message);
54 void assign(const WebSocketStreamError&); 53 void assign(const WebSocketStreamError&);
55 void reset(); 54 void reset();
56 55
57 #if INSIDE_BLINK 56 #if INSIDE_BLINK
58 WebSocketStreamError(WTF::PassRefPtr<blink::SocketStreamError>); 57 WebSocketStreamError(WTF::PassRefPtr<SocketStreamError>);
59 WebSocketStreamError& operator=(WTF::PassRefPtr<blink::SocketStreamError>); 58 WebSocketStreamError& operator=(WTF::PassRefPtr<SocketStreamError>);
60 operator WTF::PassRefPtr<blink::SocketStreamError>() const; 59 operator WTF::PassRefPtr<SocketStreamError>() const;
61 #endif 60 #endif
62 61
63 private: 62 private:
64 WebPrivatePtr<blink::SocketStreamError> m_private; 63 WebPrivatePtr<SocketStreamError> m_private;
65 }; 64 };
66 65
67 } // namespace blink 66 } // namespace blink
68 67
69 #endif 68 #endif
OLDNEW
« no previous file with comments | « public/platform/WebSocketHandshakeResponseInfo.h ('k') | public/platform/WebSpeechSynthesisUtterance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698