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

Side by Side Diff: Source/platform/network/SocketStreamHandle.cpp

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, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2011, 2012 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 23 matching lines...) Expand all
34 #include "platform/Logging.h" 34 #include "platform/Logging.h"
35 #include "platform/network/SocketStreamError.h" 35 #include "platform/network/SocketStreamError.h"
36 #include "platform/network/SocketStreamHandleClient.h" 36 #include "platform/network/SocketStreamHandleClient.h"
37 #include "platform/network/SocketStreamHandleInternal.h" 37 #include "platform/network/SocketStreamHandleInternal.h"
38 #include "public/platform/Platform.h" 38 #include "public/platform/Platform.h"
39 #include "public/platform/WebData.h" 39 #include "public/platform/WebData.h"
40 #include "public/platform/WebSocketStreamError.h" 40 #include "public/platform/WebSocketStreamError.h"
41 #include "public/platform/WebSocketStreamHandle.h" 41 #include "public/platform/WebSocketStreamHandle.h"
42 #include "wtf/PassOwnPtr.h" 42 #include "wtf/PassOwnPtr.h"
43 43
44 namespace WebCore { 44 namespace blink {
45 45
46 static const unsigned bufferSize = 100 * 1024 * 1024; 46 static const unsigned bufferSize = 100 * 1024 * 1024;
47 47
48 SocketStreamHandleInternal::SocketStreamHandleInternal(SocketStreamHandle* handl e) 48 SocketStreamHandleInternal::SocketStreamHandleInternal(SocketStreamHandle* handl e)
49 : m_handle(handle) 49 : m_handle(handle)
50 , m_socket(adoptPtr(blink::Platform::current()->createSocketStreamHandle())) 50 , m_socket(adoptPtr(blink::Platform::current()->createSocketStreamHandle()))
51 , m_maxPendingSendAllowed(0) 51 , m_maxPendingSendAllowed(0)
52 , m_pendingAmountSent(0) 52 , m_pendingAmountSent(0)
53 { 53 {
54 } 54 }
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 if (m_internal) 284 if (m_internal)
285 m_internal->close(); 285 m_internal->close();
286 } 286 }
287 287
288 void SocketStreamHandle::trace(Visitor* visitor) 288 void SocketStreamHandle::trace(Visitor* visitor)
289 { 289 {
290 visitor->trace(m_client); 290 visitor->trace(m_client);
291 visitor->trace(m_internal); 291 visitor->trace(m_internal);
292 } 292 }
293 293
294 } // namespace WebCore 294 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/network/SocketStreamHandle.h ('k') | Source/platform/network/SocketStreamHandleClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698