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

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

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 Google Inc. All rights reserved. 3 * Copyright (C) 2009 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 19 matching lines...) Expand all
30 */ 30 */
31 31
32 #ifndef SocketStreamError_h 32 #ifndef SocketStreamError_h
33 #define SocketStreamError_h 33 #define SocketStreamError_h
34 34
35 #include "platform/PlatformExport.h" 35 #include "platform/PlatformExport.h"
36 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
37 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 39
40 namespace WebCore { 40 namespace blink {
41 41
42 class PLATFORM_EXPORT SocketStreamError : public RefCounted<SocketStreamError> { 42 class PLATFORM_EXPORT SocketStreamError : public RefCounted<SocketStreamError> {
43 public: 43 public:
44 static PassRefPtr<SocketStreamError> create(int errorCode, const String& err orMessage) 44 static PassRefPtr<SocketStreamError> create(int errorCode, const String& err orMessage)
45 { 45 {
46 return adoptRef(new SocketStreamError(errorCode, errorMessage)); 46 return adoptRef(new SocketStreamError(errorCode, errorMessage));
47 } 47 }
48 48
49 bool isNull() const { return m_isNull; } 49 bool isNull() const { return m_isNull; }
50 50
(...skipping 13 matching lines...) Expand all
64 64
65 int m_errorCode; 65 int m_errorCode;
66 String m_failingURL; // FIXME: Can this be deleted since it is always empty? 66 String m_failingURL; // FIXME: Can this be deleted since it is always empty?
67 String m_localizedDescription; 67 String m_localizedDescription;
68 bool m_isNull; 68 bool m_isNull;
69 }; 69 };
70 70
71 inline bool operator==(const SocketStreamError& a, const SocketStreamError& b) { return SocketStreamError::compare(a, b); } 71 inline bool operator==(const SocketStreamError& a, const SocketStreamError& b) { return SocketStreamError::compare(a, b); }
72 inline bool operator!=(const SocketStreamError& a, const SocketStreamError& b) { return !(a == b); } 72 inline bool operator!=(const SocketStreamError& a, const SocketStreamError& b) { return !(a == b); }
73 73
74 } // namespace WebCore 74 } // namespace blink
75 75
76 #endif // SocketStreamError_h 76 #endif // SocketStreamError_h
OLDNEW
« no previous file with comments | « Source/platform/network/ResourceResponse.cpp ('k') | Source/platform/network/SocketStreamError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698