| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_PHYSICAL_WEB_DATA_SOURCE_FAKE_PHYSICAL_WEB_DATA_SOURCE_H_ | 5 #ifndef COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_FAKE_PHYSICAL_WEB_DATA_SOURCE_H_ |
| 6 #define COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_FAKE_PHYSICAL_WEB_DATA_SOURCE_H_ | 6 #define COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_FAKE_PHYSICAL_WEB_DATA_SOURCE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "components/physical_web/data_source/physical_web_data_source.h" | 12 #include "components/physical_web/data_source/physical_web_data_source.h" |
| 13 | 13 |
| 14 class GURL; | 14 class GURL; |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class DictionaryValue; | 17 class DictionaryValue; |
| 18 class ListValue; | 18 class ListValue; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace physical_web { | 21 namespace physical_web { |
| 22 | 22 |
| 23 std::unique_ptr<base::DictionaryValue> CreatePhysicalWebPage( | 23 std::unique_ptr<base::DictionaryValue> CreatePhysicalWebPage( |
| 24 const std::string& resolved_url, | 24 const std::string& resolved_url, |
| 25 double distance_estimate, | 25 double distance_estimate, |
| 26 const std::string& group_id, |
| 26 int scan_timestamp, | 27 int scan_timestamp, |
| 27 const std::string& title, | 28 const std::string& title, |
| 28 const std::string& description, | 29 const std::string& description, |
| 29 const std::string& scanned_url); | 30 const std::string& scanned_url); |
| 30 | 31 |
| 31 std::unique_ptr<base::DictionaryValue> | 32 std::unique_ptr<base::DictionaryValue> |
| 32 CreateDummyPhysicalWebPage(int id, double distance, int timestamp); | 33 CreateDummyPhysicalWebPage(int id, double distance, int timestamp); |
| 33 | 34 |
| 34 std::unique_ptr<base::ListValue> CreateDummyPhysicalWebPages( | 35 std::unique_ptr<base::ListValue> CreateDummyPhysicalWebPages( |
| 35 const std::vector<int>& ids); | 36 const std::vector<int>& ids); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 61 std::unique_ptr<base::ListValue> metadata_; | 62 std::unique_ptr<base::ListValue> metadata_; |
| 62 std::unique_ptr<MetadataList> metadata_list_; | 63 std::unique_ptr<MetadataList> metadata_list_; |
| 63 base::ObserverList<PhysicalWebListener> observer_list_; | 64 base::ObserverList<PhysicalWebListener> observer_list_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(FakePhysicalWebDataSource); | 66 DISALLOW_COPY_AND_ASSIGN(FakePhysicalWebDataSource); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace physical_web | 69 } // namespace physical_web |
| 69 | 70 |
| 70 #endif // COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_FAKE_PHYSICAL_WEB_DATA_SOURCE_H_ | 71 #endif // COMPONENTS_PHYSICAL_WEB_DATA_SOURCE_FAKE_PHYSICAL_WEB_DATA_SOURCE_H_ |
| OLD | NEW |