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 "extensions/common/api/sockets/sockets_manifest_permission.h" | 5 #include "extensions/common/api/sockets/sockets_manifest_permission.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "extensions/common/api/extensions_manifest_types.h" | 11 #include "extensions/common/api/extensions_manifest_types.h" |
12 #include "extensions/common/api/sockets/sockets_manifest_data.h" | 12 #include "extensions/common/api/sockets/sockets_manifest_data.h" |
13 #include "extensions/common/error_utils.h" | 13 #include "extensions/common/error_utils.h" |
14 #include "extensions/common/extension_messages.h" | |
15 #include "extensions/common/manifest_constants.h" | 14 #include "extensions/common/manifest_constants.h" |
16 #include "grit/extensions_strings.h" | 15 #include "grit/extensions_strings.h" |
17 #include "ipc/ipc_message.h" | 16 #include "ipc/ipc_message.h" |
18 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
19 | 18 |
20 namespace extensions { | 19 namespace extensions { |
21 | 20 |
22 namespace sockets_errors { | 21 namespace sockets_errors { |
23 const char kErrorInvalidHostPattern[] = "Invalid host:port pattern '*'"; | 22 const char kErrorInvalidHostPattern[] = "Invalid host:port pattern '*'"; |
24 } | 23 } |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 if (it->pattern().type == SocketPermissionRequest::NETWORK_STATE) { | 331 if (it->pattern().type == SocketPermissionRequest::NETWORK_STATE) { |
333 messages.push_back( | 332 messages.push_back( |
334 PermissionMessage(PermissionMessage::kNetworkState, | 333 PermissionMessage(PermissionMessage::kNetworkState, |
335 l10n_util::GetStringUTF16( | 334 l10n_util::GetStringUTF16( |
336 IDS_EXTENSION_PROMPT_WARNING_NETWORK_STATE))); | 335 IDS_EXTENSION_PROMPT_WARNING_NETWORK_STATE))); |
337 } | 336 } |
338 } | 337 } |
339 } | 338 } |
340 | 339 |
341 } // namespace extensions | 340 } // namespace extensions |
OLD | NEW |