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 "components/proximity_auth/webui/proximity_auth_ui.h" | 5 #include "components/proximity_auth/webui/proximity_auth_ui.h" |
6 | 6 |
7 #include "components/proximity_auth/webui/proximity_auth_webui_handler.h" | 7 #include "components/proximity_auth/webui/proximity_auth_webui_handler.h" |
8 #include "components/proximity_auth/webui/url_constants.h" | 8 #include "components/proximity_auth/webui/url_constants.h" |
9 #include "content/public/browser/browser_context.h" | 9 #include "content/public/browser/browser_context.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 source->AddResourcePath("content-panel.js", | 26 source->AddResourcePath("content-panel.js", |
27 IDR_PROXIMITY_AUTH_CONTENT_PANEL_JS); | 27 IDR_PROXIMITY_AUTH_CONTENT_PANEL_JS); |
28 source->AddResourcePath("log-panel.html", IDR_PROXIMITY_AUTH_LOG_PANEL_HTML); | 28 source->AddResourcePath("log-panel.html", IDR_PROXIMITY_AUTH_LOG_PANEL_HTML); |
29 source->AddResourcePath("log-panel.js", IDR_PROXIMITY_AUTH_LOG_PANEL_JS); | 29 source->AddResourcePath("log-panel.js", IDR_PROXIMITY_AUTH_LOG_PANEL_JS); |
30 source->AddResourcePath("local-state.html", | 30 source->AddResourcePath("local-state.html", |
31 IDR_PROXIMITY_AUTH_LOCAL_STATE_HTML); | 31 IDR_PROXIMITY_AUTH_LOCAL_STATE_HTML); |
32 source->AddResourcePath("local-state.js", IDR_PROXIMITY_AUTH_LOCAL_STATE_JS); | 32 source->AddResourcePath("local-state.js", IDR_PROXIMITY_AUTH_LOCAL_STATE_JS); |
33 source->AddResourcePath("device-list.html", | 33 source->AddResourcePath("device-list.html", |
34 IDR_PROXIMITY_AUTH_DEVICE_LIST_HTML); | 34 IDR_PROXIMITY_AUTH_DEVICE_LIST_HTML); |
35 source->AddResourcePath("device-list.js", IDR_PROXIMITY_AUTH_DEVICE_LIST_JS); | 35 source->AddResourcePath("device-list.js", IDR_PROXIMITY_AUTH_DEVICE_LIST_JS); |
| 36 source->AddResourcePath("log-buffer.html", |
| 37 IDR_PROXIMITY_AUTH_LOG_BUFFER_HTML); |
| 38 source->AddResourcePath("log-buffer.js", IDR_PROXIMITY_AUTH_LOG_BUFFER_JS); |
36 | 39 |
37 content::BrowserContext* browser_context = | 40 content::BrowserContext* browser_context = |
38 web_ui->GetWebContents()->GetBrowserContext(); | 41 web_ui->GetWebContents()->GetBrowserContext(); |
39 content::WebUIDataSource::Add(browser_context, source); | 42 content::WebUIDataSource::Add(browser_context, source); |
40 web_ui->AddMessageHandler(new ProximityAuthWebUIHandler()); | 43 web_ui->AddMessageHandler(new ProximityAuthWebUIHandler()); |
41 } | 44 } |
42 | 45 |
43 ProximityAuthUI::~ProximityAuthUI() { | 46 ProximityAuthUI::~ProximityAuthUI() { |
44 } | 47 } |
45 | 48 |
46 } // namespace proximity_auth | 49 } // namespace proximity_auth |
OLD | NEW |