OLD | NEW |
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 #include "mojo/services/html_viewer/mock_web_blob_registry_impl.h" | 5 #include "components/html_viewer/mock_web_blob_registry_impl.h" |
6 | 6 |
7 #include "third_party/WebKit/public/platform/WebBlobData.h" | 7 #include "third_party/WebKit/public/platform/WebBlobData.h" |
8 #include "third_party/WebKit/public/platform/WebString.h" | 8 #include "third_party/WebKit/public/platform/WebString.h" |
9 #include "third_party/WebKit/public/platform/WebURL.h" | 9 #include "third_party/WebKit/public/platform/WebURL.h" |
10 #include "third_party/WebKit/public/platform/WebVector.h" | 10 #include "third_party/WebKit/public/platform/WebVector.h" |
11 | 11 |
12 using blink::WebBlobData; | 12 using blink::WebBlobData; |
13 using blink::WebString; | 13 using blink::WebString; |
14 using blink::WebURL; | 14 using blink::WebURL; |
15 using blink::WebVector; | 15 using blink::WebVector; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 WebVector<WebBlobData::Item*>* items) const { | 112 WebVector<WebBlobData::Item*>* items) const { |
113 ScopedVector<WebBlobData::Item>* item_vector = | 113 ScopedVector<WebBlobData::Item>* item_vector = |
114 blob_data_items_map_.get(uuid.utf8()); | 114 blob_data_items_map_.get(uuid.utf8()); |
115 if (!item_vector) | 115 if (!item_vector) |
116 return false; | 116 return false; |
117 *items = item_vector->get(); | 117 *items = item_vector->get(); |
118 return true; | 118 return true; |
119 } | 119 } |
120 | 120 |
121 } // namespace html_viewer | 121 } // namespace html_viewer |
OLD | NEW |