| 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/common/extensions/api/bluetooth/bluetooth_manifest_permission.h
" | 5 #include "chrome/common/extensions/api/bluetooth/bluetooth_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 "chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.h" | 11 #include "chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.h" |
| 12 #include "chrome/common/extensions/api/manifest_types.h" | 12 #include "chrome/common/extensions/api/manifest_types.h" |
| 13 #include "chrome/grit/generated_resources.h" |
| 13 #include "device/bluetooth/bluetooth_uuid.h" | 14 #include "device/bluetooth/bluetooth_uuid.h" |
| 14 #include "extensions/common/error_utils.h" | 15 #include "extensions/common/error_utils.h" |
| 15 #include "extensions/common/extension_messages.h" | 16 #include "extensions/common/extension_messages.h" |
| 16 #include "extensions/common/manifest_constants.h" | 17 #include "extensions/common/manifest_constants.h" |
| 17 #include "grit/generated_resources.h" | |
| 18 #include "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
| 19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
| 20 | 20 |
| 21 namespace extensions { | 21 namespace extensions { |
| 22 | 22 |
| 23 namespace bluetooth_errors { | 23 namespace bluetooth_errors { |
| 24 const char kErrorInvalidUuid[] = "Invalid UUID '*'"; | 24 const char kErrorInvalidUuid[] = "Invalid UUID '*'"; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace errors = bluetooth_errors; | 27 namespace errors = bluetooth_errors; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 result->uuids_ = base::STLSetIntersection<BluetoothUuidSet>( | 193 result->uuids_ = base::STLSetIntersection<BluetoothUuidSet>( |
| 194 uuids_, other->uuids_); | 194 uuids_, other->uuids_); |
| 195 return result.release(); | 195 return result.release(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 void BluetoothManifestPermission::AddPermission(const std::string& uuid) { | 198 void BluetoothManifestPermission::AddPermission(const std::string& uuid) { |
| 199 uuids_.insert(uuid); | 199 uuids_.insert(uuid); |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace extensions | 202 } // namespace extensions |
| OLD | NEW |