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

Side by Side Diff: Source/core/inspector/InspectorState.h

Issue 638553002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Nits 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 29 matching lines...) Expand all
40 namespace blink { 40 namespace blink {
41 41
42 class InspectorStateClient; 42 class InspectorStateClient;
43 43
44 class InspectorStateUpdateListener : public WillBeGarbageCollectedMixin { 44 class InspectorStateUpdateListener : public WillBeGarbageCollectedMixin {
45 public: 45 public:
46 virtual ~InspectorStateUpdateListener() { } 46 virtual ~InspectorStateUpdateListener() { }
47 virtual void inspectorStateUpdated() = 0; 47 virtual void inspectorStateUpdated() = 0;
48 }; 48 };
49 49
50 class InspectorState FINAL : public NoBaseWillBeGarbageCollectedFinalized<Inspec torState> { 50 class InspectorState final : public NoBaseWillBeGarbageCollectedFinalized<Inspec torState> {
51 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 51 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
52 public: 52 public:
53 InspectorState(InspectorStateUpdateListener*, PassRefPtr<JSONObject>); 53 InspectorState(InspectorStateUpdateListener*, PassRefPtr<JSONObject>);
54 54
55 void loadFromCookie(const String& inspectorStateCookie); 55 void loadFromCookie(const String& inspectorStateCookie);
56 56
57 void mute(); 57 void mute();
58 void unmute(); 58 void unmute();
59 59
60 bool getBoolean(const String& propertyName); 60 bool getBoolean(const String& propertyName);
(...skipping 20 matching lines...) Expand all
81 81
82 // Gets called from InspectorCompositeState::loadFromCookie(). 82 // Gets called from InspectorCompositeState::loadFromCookie().
83 void setFromCookie(PassRefPtr<JSONObject>); 83 void setFromCookie(PassRefPtr<JSONObject>);
84 84
85 friend class InspectorCompositeState; 85 friend class InspectorCompositeState;
86 86
87 RawPtrWillBeMember<InspectorStateUpdateListener> m_listener; 87 RawPtrWillBeMember<InspectorStateUpdateListener> m_listener;
88 RefPtr<JSONObject> m_properties; 88 RefPtr<JSONObject> m_properties;
89 }; 89 };
90 90
91 class InspectorCompositeState FINAL : public NoBaseWillBeGarbageCollectedFinaliz ed<InspectorCompositeState>, public InspectorStateUpdateListener { 91 class InspectorCompositeState final : public NoBaseWillBeGarbageCollectedFinaliz ed<InspectorCompositeState>, public InspectorStateUpdateListener {
92 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorCompositeState); 92 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorCompositeState);
93 public: 93 public:
94 InspectorCompositeState(InspectorStateClient* inspectorClient) 94 InspectorCompositeState(InspectorStateClient* inspectorClient)
95 : m_client(inspectorClient) 95 : m_client(inspectorClient)
96 , m_stateObject(JSONObject::create()) 96 , m_stateObject(JSONObject::create())
97 , m_isMuted(false) 97 , m_isMuted(false)
98 { 98 {
99 } 99 }
100 virtual ~InspectorCompositeState() { } 100 virtual ~InspectorCompositeState() { }
101 void trace(Visitor*); 101 void trace(Visitor*);
102 102
103 void mute(); 103 void mute();
104 void unmute(); 104 void unmute();
105 105
106 InspectorState* createAgentState(const String&); 106 InspectorState* createAgentState(const String&);
107 void loadFromCookie(const String&); 107 void loadFromCookie(const String&);
108 108
109 private: 109 private:
110 typedef WillBeHeapHashMap<String, OwnPtrWillBeMember<InspectorState> > Inspe ctorStateMap; 110 typedef WillBeHeapHashMap<String, OwnPtrWillBeMember<InspectorState> > Inspe ctorStateMap;
111 111
112 // From InspectorStateUpdateListener. 112 // From InspectorStateUpdateListener.
113 virtual void inspectorStateUpdated() OVERRIDE; 113 virtual void inspectorStateUpdated() override;
114 114
115 InspectorStateClient* m_client; 115 InspectorStateClient* m_client;
116 RefPtr<JSONObject> m_stateObject; 116 RefPtr<JSONObject> m_stateObject;
117 bool m_isMuted; 117 bool m_isMuted;
118 InspectorStateMap m_inspectorStateMap; 118 InspectorStateMap m_inspectorStateMap;
119 }; 119 };
120 120
121 } // namespace blink 121 } // namespace blink
122 122
123 #endif // !defined(InspectorState_h) 123 #endif // !defined(InspectorState_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorRuntimeAgent.h ('k') | Source/core/inspector/InspectorStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698