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

Side by Side Diff: content/public/test/frame_load_waiter.h

Issue 629203002: Replace OVERRIDE and FINAL with override and final in content/public/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_TEST_FRAME_LOAD_WAITER_H_ 5 #ifndef CONTENT_PUBLIC_TEST_FRAME_LOAD_WAITER_H_
6 #define CONTENT_PUBLIC_TEST_FRAME_LOAD_WAITER_H_ 6 #define CONTENT_PUBLIC_TEST_FRAME_LOAD_WAITER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "content/public/renderer/render_frame_observer.h" 10 #include "content/public/renderer/render_frame_observer.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 // Helper class to spin the run loop when waiting for a frame load to complete. 14 // Helper class to spin the run loop when waiting for a frame load to complete.
15 // Blink uses a threaded HTML parser, so it's no longer sufficient to just spin 15 // Blink uses a threaded HTML parser, so it's no longer sufficient to just spin
16 // the run loop once to process all pending messages. 16 // the run loop once to process all pending messages.
17 class FrameLoadWaiter : public RenderFrameObserver { 17 class FrameLoadWaiter : public RenderFrameObserver {
18 public: 18 public:
19 explicit FrameLoadWaiter(RenderFrame* frame); 19 explicit FrameLoadWaiter(RenderFrame* frame);
20 void Wait(); 20 void Wait();
21 21
22 private: 22 private:
23 virtual void DidFinishLoad() OVERRIDE; 23 virtual void DidFinishLoad() override;
24 24
25 base::RunLoop run_loop_; 25 base::RunLoop run_loop_;
26 26
27 DISALLOW_COPY_AND_ASSIGN(FrameLoadWaiter); 27 DISALLOW_COPY_AND_ASSIGN(FrameLoadWaiter);
28 }; 28 };
29 29
30 } // namespace content 30 } // namespace content
31 31
32 #endif // CONTENT_PUBLIC_TEST_FRAME_LOAD_WAITER_H_ 32 #endif // CONTENT_PUBLIC_TEST_FRAME_LOAD_WAITER_H_
OLDNEW
« no previous file with comments | « content/public/test/fake_speech_recognition_manager.h ('k') | content/public/test/javascript_test_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698