| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |