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

Side by Side Diff: Source/platform/network/SocketStreamHandle.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, 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2011, 2012 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 21 matching lines...) Expand all
32 #ifndef SocketStreamHandle_h 32 #ifndef SocketStreamHandle_h
33 #define SocketStreamHandle_h 33 #define SocketStreamHandle_h
34 34
35 #include "platform/PlatformExport.h" 35 #include "platform/PlatformExport.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "platform/weborigin/KURL.h" 37 #include "platform/weborigin/KURL.h"
38 #include "wtf/PassRefPtr.h" 38 #include "wtf/PassRefPtr.h"
39 #include "wtf/RefCounted.h" 39 #include "wtf/RefCounted.h"
40 #include "wtf/StreamBuffer.h" 40 #include "wtf/StreamBuffer.h"
41 41
42 namespace WebCore { 42 namespace blink {
43 43
44 class SocketStreamHandleClient; 44 class SocketStreamHandleClient;
45 class SocketStreamHandleInternal; 45 class SocketStreamHandleInternal;
46 46
47 class PLATFORM_EXPORT SocketStreamHandle : public RefCountedWillBeGarbageCollect edFinalized<SocketStreamHandle> { 47 class PLATFORM_EXPORT SocketStreamHandle : public RefCountedWillBeGarbageCollect edFinalized<SocketStreamHandle> {
48 public: 48 public:
49 enum SocketStreamState { Connecting, Open, Closing, Closed }; 49 enum SocketStreamState { Connecting, Open, Closing, Closed };
50 50
51 static PassRefPtrWillBeRawPtr<SocketStreamHandle> create(SocketStreamHandleC lient* client) 51 static PassRefPtrWillBeRawPtr<SocketStreamHandle> create(SocketStreamHandleC lient* client)
52 { 52 {
(...skipping 22 matching lines...) Expand all
75 void closeInternal(); 75 void closeInternal();
76 76
77 RawPtrWillBeMember<SocketStreamHandleClient> m_client; 77 RawPtrWillBeMember<SocketStreamHandleClient> m_client;
78 StreamBuffer<char, 1024 * 1024> m_buffer; 78 StreamBuffer<char, 1024 * 1024> m_buffer;
79 SocketStreamState m_state; 79 SocketStreamState m_state;
80 80
81 friend class SocketStreamHandleInternal; 81 friend class SocketStreamHandleInternal;
82 OwnPtrWillBeMember<SocketStreamHandleInternal> m_internal; 82 OwnPtrWillBeMember<SocketStreamHandleInternal> m_internal;
83 }; 83 };
84 84
85 } // namespace WebCore 85 } // namespace blink
86 86
87 #endif // SocketStreamHandle_h 87 #endif // SocketStreamHandle_h
OLDNEW
« no previous file with comments | « Source/platform/network/SocketStreamError.cpp ('k') | Source/platform/network/SocketStreamHandle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698