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

Side by Side Diff: Source/core/frame/Console.h

Issue 134043004: Update page & frame classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | Source/core/frame/DOMSecurityPolicy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 26 matching lines...) Expand all
37 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
38 #include "wtf/RefCounted.h" 38 #include "wtf/RefCounted.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class Frame; 42 class Frame;
43 class MemoryInfo; 43 class MemoryInfo;
44 class Page; 44 class Page;
45 class ScriptArguments; 45 class ScriptArguments;
46 46
47 class Console : public RefCounted<Console>, public ConsoleBase, public ScriptWra ppable, public DOMWindowProperty { 47 class Console FINAL : public RefCounted<Console>, public ConsoleBase, public Scr iptWrappable, public DOMWindowProperty {
48 public: 48 public:
49 using RefCounted<Console>::ref; 49 using RefCounted<Console>::ref;
50 using RefCounted<Console>::deref; 50 using RefCounted<Console>::deref;
51 51
52 static PassRefPtr<Console> create(Frame* frame) { return adoptRef(new Consol e(frame)); } 52 static PassRefPtr<Console> create(Frame* frame) { return adoptRef(new Consol e(frame)); }
53 virtual ~Console(); 53 virtual ~Console();
54 54
55 PassRefPtr<MemoryInfo> memory() const; 55 PassRefPtr<MemoryInfo> memory() const;
56 56
57 protected: 57 protected:
58 virtual ExecutionContext* context(); 58 virtual ExecutionContext* context() OVERRIDE;
59 virtual void reportMessageToClient(MessageLevel, const String& message, Pass RefPtr<ScriptCallStack>) OVERRIDE; 59 virtual void reportMessageToClient(MessageLevel, const String& message, Pass RefPtr<ScriptCallStack>) OVERRIDE;
60 60
61 private: 61 private:
62 explicit Console(Frame*); 62 explicit Console(Frame*);
63 63
64 virtual void refConsole() { ref(); } 64 virtual void refConsole() OVERRIDE { ref(); }
65 virtual void derefConsole() { deref(); } 65 virtual void derefConsole() OVERRIDE { deref(); }
66 }; 66 };
67 67
68 } // namespace WebCore 68 } // namespace WebCore
69 69
70 #endif // Console_h 70 #endif // Console_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/DOMSecurityPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698