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

Side by Side Diff: Source/core/loader/WorkerLoaderClientBridgeSyncHelper.h

Issue 638503003: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/loader (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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // data so that they can be run on the worker thread later (by run()). 47 // data so that they can be run on the worker thread later (by run()).
48 class WorkerLoaderClientBridgeSyncHelper : public ThreadableLoaderClient { 48 class WorkerLoaderClientBridgeSyncHelper : public ThreadableLoaderClient {
49 public: 49 public:
50 static PassOwnPtr<WorkerLoaderClientBridgeSyncHelper> create(ThreadableLoade rClient&, PassOwnPtr<blink::WebWaitableEvent>); 50 static PassOwnPtr<WorkerLoaderClientBridgeSyncHelper> create(ThreadableLoade rClient&, PassOwnPtr<blink::WebWaitableEvent>);
51 virtual ~WorkerLoaderClientBridgeSyncHelper(); 51 virtual ~WorkerLoaderClientBridgeSyncHelper();
52 52
53 // Called on the worker context thread. 53 // Called on the worker context thread.
54 void run(); 54 void run();
55 55
56 // Called on the main thread. 56 // Called on the main thread.
57 virtual void didSendData(unsigned long long bytesSent, unsigned long long to talBytesToBeSent) OVERRIDE; 57 virtual void didSendData(unsigned long long bytesSent, unsigned long long to talBytesToBeSent) override;
58 virtual void didReceiveResponse(unsigned long identifier, const ResourceResp onse&) OVERRIDE; 58 virtual void didReceiveResponse(unsigned long identifier, const ResourceResp onse&) override;
59 virtual void didReceiveData(const char*, unsigned dataLength) OVERRIDE; 59 virtual void didReceiveData(const char*, unsigned dataLength) override;
60 virtual void didDownloadData(int dataLength) OVERRIDE; 60 virtual void didDownloadData(int dataLength) override;
61 virtual void didReceiveCachedMetadata(const char*, int dataLength) OVERRIDE; 61 virtual void didReceiveCachedMetadata(const char*, int dataLength) override;
62 virtual void didFinishLoading(unsigned long identifier, double finishTime) O VERRIDE; 62 virtual void didFinishLoading(unsigned long identifier, double finishTime) o verride;
63 virtual void didFail(const ResourceError&) OVERRIDE; 63 virtual void didFail(const ResourceError&) override;
64 virtual void didFailAccessControlCheck(const ResourceError&) OVERRIDE; 64 virtual void didFailAccessControlCheck(const ResourceError&) override;
65 virtual void didFailRedirectCheck() OVERRIDE; 65 virtual void didFailRedirectCheck() override;
66 66
67 private: 67 private:
68 WorkerLoaderClientBridgeSyncHelper(ThreadableLoaderClient&, PassOwnPtr<blink ::WebWaitableEvent>); 68 WorkerLoaderClientBridgeSyncHelper(ThreadableLoaderClient&, PassOwnPtr<blink ::WebWaitableEvent>);
69 69
70 bool m_done; 70 bool m_done;
71 ThreadableLoaderClient& m_client; 71 ThreadableLoaderClient& m_client;
72 OwnPtr<blink::WebWaitableEvent> m_event; 72 OwnPtr<blink::WebWaitableEvent> m_event;
73 Vector<Vector<char>*> m_receivedData; 73 Vector<Vector<char>*> m_receivedData;
74 Vector<Closure> m_clientTasks; 74 Vector<Closure> m_clientTasks;
75 }; 75 };
76 76
77 } // namespace blink 77 } // namespace blink
78 78
79 #endif // WorkerLoaderClientBridgeSyncHelper_h 79 #endif // WorkerLoaderClientBridgeSyncHelper_h
OLDNEW
« no previous file with comments | « Source/core/loader/WorkerLoaderClientBridge.h ('k') | Source/core/loader/WorkerThreadableLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698