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

Side by Side Diff: components/html_viewer/mock_web_blob_registry_impl.h

Issue 1099383002: Change ScopedPtrHashMap's 2nd template parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_HTML_VIEWER_MOCK_WEB_BLOB_REGISTRY_IMPL_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_MOCK_WEB_BLOB_REGISTRY_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_MOCK_WEB_BLOB_REGISTRY_IMPL_H_ 6 #define COMPONENTS_HTML_VIEWER_MOCK_WEB_BLOB_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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void flushStream(const blink::WebURL& url); 43 virtual void flushStream(const blink::WebURL& url);
44 virtual void finalizeStream(const blink::WebURL& url); 44 virtual void finalizeStream(const blink::WebURL& url);
45 virtual void abortStream(const blink::WebURL& url); 45 virtual void abortStream(const blink::WebURL& url);
46 virtual void unregisterStreamURL(const blink::WebURL& url); 46 virtual void unregisterStreamURL(const blink::WebURL& url);
47 47
48 bool GetUUIDForURL(const blink::WebURL& url, blink::WebString* uuid) const; 48 bool GetUUIDForURL(const blink::WebURL& url, blink::WebString* uuid) const;
49 bool GetBlobItems(const blink::WebString& uuid, 49 bool GetBlobItems(const blink::WebString& uuid,
50 blink::WebVector<blink::WebBlobData::Item*>* items) const; 50 blink::WebVector<blink::WebBlobData::Item*>* items) const;
51 51
52 private: 52 private:
53 base::ScopedPtrHashMap<std::string, ScopedVector<blink::WebBlobData::Item>> 53 base::ScopedPtrHashMap<std::string,
54 scoped_ptr<ScopedVector<blink::WebBlobData::Item>>>
54 blob_data_items_map_; 55 blob_data_items_map_;
55 std::map<std::string, int> blob_ref_count_map_; 56 std::map<std::string, int> blob_ref_count_map_;
56 57
57 std::map<std::string, blink::WebString> public_url_to_uuid_; 58 std::map<std::string, blink::WebString> public_url_to_uuid_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl); 60 DISALLOW_COPY_AND_ASSIGN(MockWebBlobRegistryImpl);
60 }; 61 };
61 62
62 } // namespace html_viewer 63 } // namespace html_viewer
63 64
64 #endif // COMPONENTS_HTML_VIEWER_MOCK_WEB_BLOB_REGISTRY_IMPL_H_ 65 #endif // COMPONENTS_HTML_VIEWER_MOCK_WEB_BLOB_REGISTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698