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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 const char kStringsJsFile[] = "strings.js"; | 28 const char kStringsJsFile[] = "strings.js"; |
29 const char kRequestNetworkInfoCallback[] = "requestNetworkInfo"; | 29 const char kRequestNetworkInfoCallback[] = "requestNetworkInfo"; |
30 const char kNetworkEventLogTag[] = "networkEventLog"; | 30 const char kNetworkEventLogTag[] = "networkEventLog"; |
31 const char kNetworkStateTag[] = "networkState"; | 31 const char kNetworkStateTag[] = "networkState"; |
32 const char kOnNetworkInfoReceivedFunction[] = "NetworkUI.onNetworkInfoReceived"; | 32 const char kOnNetworkInfoReceivedFunction[] = "NetworkUI.onNetworkInfoReceived"; |
33 const char kLevelDebugTag[] = "Debug"; | |
34 | 33 |
35 class NetworkMessageHandler : public content::WebUIMessageHandler { | 34 class NetworkMessageHandler : public content::WebUIMessageHandler { |
36 public: | 35 public: |
37 NetworkMessageHandler(); | 36 NetworkMessageHandler(); |
38 virtual ~NetworkMessageHandler(); | 37 virtual ~NetworkMessageHandler(); |
39 | 38 |
40 // WebUIMessageHandler implementation. | 39 // WebUIMessageHandler implementation. |
41 virtual void RegisterMessages() OVERRIDE; | 40 virtual void RegisterMessages() OVERRIDE; |
42 | 41 |
43 private: | 42 private: |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 html->SetDefaultResource(IDR_NETWORK_HTML); | 130 html->SetDefaultResource(IDR_NETWORK_HTML); |
132 | 131 |
133 Profile* profile = Profile::FromWebUI(web_ui); | 132 Profile* profile = Profile::FromWebUI(web_ui); |
134 content::WebUIDataSource::Add(profile, html); | 133 content::WebUIDataSource::Add(profile, html); |
135 } | 134 } |
136 | 135 |
137 NetworkUI::~NetworkUI() { | 136 NetworkUI::~NetworkUI() { |
138 } | 137 } |
139 | 138 |
140 } // namespace chromeos | 139 } // namespace chromeos |
OLD | NEW |