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

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

Issue 445023005: DevTools: reduce ResourceAgent dependency on PageAgent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698