| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_GLUE_DEVTOOLS_NET_AGENT_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_DEVTOOLS_NET_AGENT_IMPL_H_ |
| 6 #define WEBKIT_GLUE_DEVTOOLS_NET_AGENT_IMPL_H_ | 6 #define WEBKIT_GLUE_DEVTOOLS_NET_AGENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <wtf/HashMap.h> | 8 #include <wtf/HashMap.h> |
| 9 #include <wtf/RefCounted.h> | 9 #include <wtf/RefCounted.h> |
| 10 #include <wtf/RefPtr.h> | 10 #include <wtf/RefPtr.h> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 const WebCore::ResourceRequest& request, | 66 const WebCore::ResourceRequest& request, |
| 67 const WebCore::ResourceResponse& response, | 67 const WebCore::ResourceResponse& response, |
| 68 int length); | 68 int length); |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 // Serializes headers map into a value. | 71 // Serializes headers map into a value. |
| 72 Value* BuildValueForHeaders(const WebCore::HTTPHeaderMap& headers); | 72 Value* BuildValueForHeaders(const WebCore::HTTPHeaderMap& headers); |
| 73 | 73 |
| 74 NetAgentDelegate* delegate_; | 74 NetAgentDelegate* delegate_; |
| 75 WebCore::Document* document_; | 75 WebCore::Document* document_; |
| 76 HashMap<int, RefPtr<WebCore::DocumentLoader> > loaders_; | 76 typedef HashMap<int, DictionaryValue*, DefaultHash<int>::Hash, |
| 77 WTF::UnsignedWithZeroKeyHashTraits<int> > CachedResources; |
| 78 typedef HashMap<int, RefPtr<WebCore::DocumentLoader>, DefaultHash<int>::Hash, |
| 79 WTF::UnsignedWithZeroKeyHashTraits<int> > CachedLoaders; |
| 80 CachedResources pending_resources_; |
| 81 CachedLoaders loaders_; |
| 77 int last_cached_identifier_; | 82 int last_cached_identifier_; |
| 78 DISALLOW_COPY_AND_ASSIGN(NetAgentImpl); | 83 DISALLOW_COPY_AND_ASSIGN(NetAgentImpl); |
| 79 }; | 84 }; |
| 80 | 85 |
| 81 #endif // WEBKIT_GLUE_DEVTOOLS_NET_AGENT_IMPL_H_ | 86 #endif // WEBKIT_GLUE_DEVTOOLS_NET_AGENT_IMPL_H_ |
| OLD | NEW |