OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/network_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/ui/webui/chromeos/network_config_message_handler.h" | 12 #include "chrome/browser/ui/webui/chromeos/network_config_message_handler.h" |
13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
| 14 #include "chrome/grit/generated_resources.h" |
14 #include "chromeos/network/network_event_log.h" | 15 #include "chromeos/network/network_event_log.h" |
15 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
16 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
17 #include "content/public/browser/web_ui_data_source.h" | 18 #include "content/public/browser/web_ui_data_source.h" |
18 #include "content/public/browser/web_ui_message_handler.h" | 19 #include "content/public/browser/web_ui_message_handler.h" |
19 #include "grit/browser_resources.h" | 20 #include "grit/browser_resources.h" |
20 #include "grit/generated_resources.h" | |
21 | 21 |
22 namespace chromeos { | 22 namespace chromeos { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const int kMaxLogEvents = 1000; | 26 const int kMaxLogEvents = 1000; |
27 | 27 |
28 class NetworkUIMessageHandler : public content::WebUIMessageHandler { | 28 class NetworkUIMessageHandler : public content::WebUIMessageHandler { |
29 public: | 29 public: |
30 NetworkUIMessageHandler() {} | 30 NetworkUIMessageHandler() {} |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 html->SetDefaultResource(IDR_NETWORK_UI_HTML); | 82 html->SetDefaultResource(IDR_NETWORK_UI_HTML); |
83 | 83 |
84 content::WebUIDataSource::Add( | 84 content::WebUIDataSource::Add( |
85 web_ui->GetWebContents()->GetBrowserContext(), html); | 85 web_ui->GetWebContents()->GetBrowserContext(), html); |
86 } | 86 } |
87 | 87 |
88 NetworkUI::~NetworkUI() { | 88 NetworkUI::~NetworkUI() { |
89 } | 89 } |
90 | 90 |
91 } // namespace chromeos | 91 } // namespace chromeos |
OLD | NEW |