OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EditedResourcesContentManager_h |
| 6 #define EditedResourcesContentManager_h |
| 7 |
| 8 #include "platform/heap/Handle.h" |
| 9 #include "wtf/Forward.h" |
| 10 #include "wtf/HashMap.h" |
| 11 #include "wtf/text/StringHash.h" |
| 12 #include "wtf/text/WTFString.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class EditedResourcesContentManager : public NoBaseWillBeGarbageCollectedFinaliz
ed<EditedResourcesContentManager> { |
| 17 WTF_MAKE_NONCOPYABLE(EditedResourcesContentManager); |
| 18 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 19 public: |
| 20 static PassOwnPtrWillBeRawPtr<EditedResourcesContentManager> create(); |
| 21 ~EditedResourcesContentManager(); |
| 22 |
| 23 void clear(); |
| 24 void add(const String& url, const String& content); |
| 25 bool get(const String& url, String* content); |
| 26 |
| 27 private: |
| 28 EditedResourcesContentManager(); |
| 29 |
| 30 HashMap<String, String> m_editedResourceContent; |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 |
| 35 #endif // EditedResourcesContentManager_h |
OLD | NEW |