| 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 28 matching lines...) Expand all Loading... |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 class InspectorStateClient; | 41 class InspectorStateClient; |
| 42 | 42 |
| 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 FINAL { |
| 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 | 53 |
| 54 void loadFromCookie(const String& inspectorStateCookie); | 54 void loadFromCookie(const String& inspectorStateCookie); |
| 55 | 55 |
| 56 void mute(); | 56 void mute(); |
| 57 void unmute(); | 57 void unmute(); |
| 58 | 58 |
| 59 bool getBoolean(const String& propertyName); | 59 bool getBoolean(const String& propertyName); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 InspectorStateClient* m_client; | 109 InspectorStateClient* m_client; |
| 110 RefPtr<JSONObject> m_stateObject; | 110 RefPtr<JSONObject> m_stateObject; |
| 111 bool m_isMuted; | 111 bool m_isMuted; |
| 112 InspectorStateMap m_inspectorStateMap; | 112 InspectorStateMap m_inspectorStateMap; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace WebCore | 115 } // namespace WebCore |
| 116 | 116 |
| 117 #endif // !defined(InspectorState_h) | 117 #endif // !defined(InspectorState_h) |
| OLD | NEW |