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

Side by Side Diff: Source/modules/websockets/NewWebSocketChannelImpl.cpp

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #include "public/platform/WebSocketHandshakeRequestInfo.h" 53 #include "public/platform/WebSocketHandshakeRequestInfo.h"
54 #include "public/platform/WebSocketHandshakeResponseInfo.h" 54 #include "public/platform/WebSocketHandshakeResponseInfo.h"
55 #include "public/platform/WebString.h" 55 #include "public/platform/WebString.h"
56 #include "public/platform/WebURL.h" 56 #include "public/platform/WebURL.h"
57 #include "public/platform/WebVector.h" 57 #include "public/platform/WebVector.h"
58 58
59 using blink::WebSocketHandle; 59 using blink::WebSocketHandle;
60 60
61 namespace blink { 61 namespace blink {
62 62
63 class NewWebSocketChannelImpl::BlobLoader FINAL : public GarbageCollectedFinaliz ed<NewWebSocketChannelImpl::BlobLoader>, public FileReaderLoaderClient { 63 class NewWebSocketChannelImpl::BlobLoader final : public GarbageCollectedFinaliz ed<NewWebSocketChannelImpl::BlobLoader>, public FileReaderLoaderClient {
64 public: 64 public:
65 BlobLoader(PassRefPtr<BlobDataHandle>, NewWebSocketChannelImpl*); 65 BlobLoader(PassRefPtr<BlobDataHandle>, NewWebSocketChannelImpl*);
66 virtual ~BlobLoader() { } 66 virtual ~BlobLoader() { }
67 67
68 void cancel(); 68 void cancel();
69 69
70 // FileReaderLoaderClient functions. 70 // FileReaderLoaderClient functions.
71 virtual void didStartLoading() OVERRIDE { } 71 virtual void didStartLoading() override { }
72 virtual void didReceiveData() OVERRIDE { } 72 virtual void didReceiveData() override { }
73 virtual void didFinishLoading() OVERRIDE; 73 virtual void didFinishLoading() override;
74 virtual void didFail(FileError::ErrorCode) OVERRIDE; 74 virtual void didFail(FileError::ErrorCode) override;
75 75
76 void trace(Visitor* visitor) 76 void trace(Visitor* visitor)
77 { 77 {
78 visitor->trace(m_channel); 78 visitor->trace(m_channel);
79 } 79 }
80 80
81 private: 81 private:
82 Member<NewWebSocketChannelImpl> m_channel; 82 Member<NewWebSocketChannelImpl> m_channel;
83 FileReaderLoader m_loader; 83 FileReaderLoader m_loader;
84 }; 84 };
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 } 558 }
559 559
560 void NewWebSocketChannelImpl::trace(Visitor* visitor) 560 void NewWebSocketChannelImpl::trace(Visitor* visitor)
561 { 561 {
562 visitor->trace(m_blobLoader); 562 visitor->trace(m_blobLoader);
563 visitor->trace(m_client); 563 visitor->trace(m_client);
564 WebSocketChannel::trace(visitor); 564 WebSocketChannel::trace(visitor);
565 } 565 }
566 566
567 } // namespace blink 567 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/websockets/NewWebSocketChannelImpl.h ('k') | Source/modules/websockets/NewWebSocketChannelImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698