OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CONTENT_TEST_MOCK_WEBBLOB_REGISTRY_IMPL_H_ | 5 #ifndef CONTENT_TEST_MOCK_WEBBLOB_REGISTRY_IMPL_H_ |
6 #define CONTENT_TEST_MOCK_WEBBLOB_REGISTRY_IMPL_H_ | 6 #define CONTENT_TEST_MOCK_WEBBLOB_REGISTRY_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 const char* data, size_t length); | 38 const char* data, size_t length); |
39 virtual void flushStream(const blink::WebURL& url); | 39 virtual void flushStream(const blink::WebURL& url); |
40 virtual void finalizeStream(const blink::WebURL& url); | 40 virtual void finalizeStream(const blink::WebURL& url); |
41 virtual void abortStream(const blink::WebURL& url); | 41 virtual void abortStream(const blink::WebURL& url); |
42 virtual void unregisterStreamURL(const blink::WebURL& url); | 42 virtual void unregisterStreamURL(const blink::WebURL& url); |
43 | 43 |
44 bool GetBlobItems(const blink::WebString& uuid, | 44 bool GetBlobItems(const blink::WebString& uuid, |
45 blink::WebVector<blink::WebBlobData::Item*>* items) const; | 45 blink::WebVector<blink::WebBlobData::Item*>* items) const; |
46 | 46 |
47 private: | 47 private: |
48 base::ScopedPtrHashMap<std::string, ScopedVector<blink::WebBlobData::Item>> | 48 base::ScopedPtrHashMap<std::string, |
| 49 scoped_ptr<ScopedVector<blink::WebBlobData::Item>>> |
49 blob_data_items_map_; | 50 blob_data_items_map_; |
50 std::map<std::string, int> blob_ref_count_map_; | 51 std::map<std::string, int> blob_ref_count_map_; |
51 | 52 |
52 DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl); | 53 DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl); |
53 }; | 54 }; |
54 | 55 |
55 } // namespace content | 56 } // namespace content |
56 | 57 |
57 #endif // CONTENT_TEST_MOCK_WEBBLOB_REGISTRY_IMPL_H_ | 58 #endif // CONTENT_TEST_MOCK_WEBBLOB_REGISTRY_IMPL_H_ |
OLD | NEW |