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

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

Issue 41363002: Devirtualize several inspector classes destructors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
« no previous file with comments | « Source/core/inspector/InspectorHistory.cpp ('k') | Source/core/inspector/InspectorStyleSheet.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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class InspectorStateUpdateListener { 43 class InspectorStateUpdateListener {
44 public: 44 public:
45 virtual ~InspectorStateUpdateListener() { } 45 virtual ~InspectorStateUpdateListener() { }
46 virtual void inspectorStateUpdated() = 0; 46 virtual void inspectorStateUpdated() = 0;
47 }; 47 };
48 48
49 class InspectorState { 49 class InspectorState {
50 WTF_MAKE_FAST_ALLOCATED; 50 WTF_MAKE_FAST_ALLOCATED;
51 public: 51 public:
52 InspectorState(InspectorStateUpdateListener*, PassRefPtr<JSONObject>); 52 InspectorState(InspectorStateUpdateListener*, PassRefPtr<JSONObject>);
53 virtual ~InspectorState() {}
54 53
55 void loadFromCookie(const String& inspectorStateCookie); 54 void loadFromCookie(const String& inspectorStateCookie);
56 55
57 void mute(); 56 void mute();
58 void unmute(); 57 void unmute();
59 58
60 bool getBoolean(const String& propertyName); 59 bool getBoolean(const String& propertyName);
61 String getString(const String& propertyName); 60 String getString(const String& propertyName);
62 long getLong(const String& propertyName); 61 long getLong(const String& propertyName);
63 long getLong(const String& propertyName, long defaultValue); 62 long getLong(const String& propertyName, long defaultValue);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 108
110 InspectorStateClient* m_client; 109 InspectorStateClient* m_client;
111 RefPtr<JSONObject> m_stateObject; 110 RefPtr<JSONObject> m_stateObject;
112 bool m_isMuted; 111 bool m_isMuted;
113 InspectorStateMap m_inspectorStateMap; 112 InspectorStateMap m_inspectorStateMap;
114 }; 113 };
115 114
116 } // namespace WebCore 115 } // namespace WebCore
117 116
118 #endif // !defined(InspectorState_h) 117 #endif // !defined(InspectorState_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorHistory.cpp ('k') | Source/core/inspector/InspectorStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698