| 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 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
| 12 #include "chrome/grit/generated_resources.h" |
| 12 #include "content/public/browser/web_ui.h" | 13 #include "content/public/browser/web_ui.h" |
| 13 #include "content/public/browser/web_ui_data_source.h" | 14 #include "content/public/browser/web_ui_data_source.h" |
| 14 #include "content/public/browser/web_ui_message_handler.h" | 15 #include "content/public/browser/web_ui_message_handler.h" |
| 15 #include "device/nfc/nfc_adapter.h" | 16 #include "device/nfc/nfc_adapter.h" |
| 16 #include "device/nfc/nfc_adapter_factory.h" | 17 #include "device/nfc/nfc_adapter_factory.h" |
| 17 #include "device/nfc/nfc_peer.h" | 18 #include "device/nfc/nfc_peer.h" |
| 18 #include "device/nfc/nfc_tag.h" | 19 #include "device/nfc/nfc_tag.h" |
| 19 #include "grit/browser_resources.h" | 20 #include "grit/browser_resources.h" |
| 20 #include "grit/generated_resources.h" | |
| 21 | 21 |
| 22 using device::NfcAdapter; | 22 using device::NfcAdapter; |
| 23 using device::NfcAdapterFactory; | 23 using device::NfcAdapterFactory; |
| 24 using device::NfcNdefMessage; | 24 using device::NfcNdefMessage; |
| 25 using device::NfcNdefRecord; | 25 using device::NfcNdefRecord; |
| 26 using device::NfcNdefTagTechnology; | 26 using device::NfcNdefTagTechnology; |
| 27 using device::NfcPeer; | 27 using device::NfcPeer; |
| 28 using device::NfcTag; | 28 using device::NfcTag; |
| 29 using device::NfcTagTechnology; | 29 using device::NfcTagTechnology; |
| 30 | 30 |
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 html_source->SetDefaultResource(IDR_NFC_DEBUG_HTML); | 743 html_source->SetDefaultResource(IDR_NFC_DEBUG_HTML); |
| 744 | 744 |
| 745 Profile* profile = Profile::FromWebUI(web_ui); | 745 Profile* profile = Profile::FromWebUI(web_ui); |
| 746 content::WebUIDataSource::Add(profile, html_source); | 746 content::WebUIDataSource::Add(profile, html_source); |
| 747 } | 747 } |
| 748 | 748 |
| 749 NfcDebugUI::~NfcDebugUI() { | 749 NfcDebugUI::~NfcDebugUI() { |
| 750 } | 750 } |
| 751 | 751 |
| 752 } // namespace chromeos | 752 } // namespace chromeos |
| OLD | NEW |