| Index: ios/public/provider/web/web_ui_ios_message_handler.cc
|
| diff --git a/content/browser/webui/web_ui_message_handler.cc b/ios/public/provider/web/web_ui_ios_message_handler.cc
|
| similarity index 65%
|
| copy from content/browser/webui/web_ui_message_handler.cc
|
| copy to ios/public/provider/web/web_ui_ios_message_handler.cc
|
| index 44f065d44ed6f90d94387cd2af0e9ffdbb029779..b4b473e012c33cc62075d58e3fa8f0518bfe2446 100644
|
| --- a/content/browser/webui/web_ui_message_handler.cc
|
| +++ b/ios/public/provider/web/web_ui_ios_message_handler.cc
|
| @@ -1,18 +1,18 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "content/public/browser/web_ui_message_handler.h"
|
| +#include "ios/public/provider/web/web_ui_ios_message_handler.h"
|
|
|
| #include "base/logging.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "base/values.h"
|
|
|
| -namespace content {
|
| +namespace web {
|
|
|
| -bool WebUIMessageHandler::ExtractIntegerValue(const base::ListValue* value,
|
| - int* out_int) {
|
| +bool WebUIIOSMessageHandler::ExtractIntegerValue(const base::ListValue* value,
|
| + int* out_int) {
|
| std::string string_value;
|
| if (value->GetString(0, &string_value))
|
| return base::StringToInt(string_value, out_int);
|
| @@ -25,8 +25,8 @@ bool WebUIMessageHandler::ExtractIntegerValue(const base::ListValue* value,
|
| return false;
|
| }
|
|
|
| -bool WebUIMessageHandler::ExtractDoubleValue(const base::ListValue* value,
|
| - double* out_value) {
|
| +bool WebUIIOSMessageHandler::ExtractDoubleValue(const base::ListValue* value,
|
| + double* out_value) {
|
| std::string string_value;
|
| if (value->GetString(0, &string_value))
|
| return base::StringToDouble(string_value, out_value);
|
| @@ -36,7 +36,7 @@ bool WebUIMessageHandler::ExtractDoubleValue(const base::ListValue* value,
|
| return false;
|
| }
|
|
|
| -base::string16 WebUIMessageHandler::ExtractStringValue(
|
| +base::string16 WebUIIOSMessageHandler::ExtractStringValue(
|
| const base::ListValue* value) {
|
| base::string16 string16_value;
|
| if (value->GetString(0, &string16_value))
|
| @@ -45,4 +45,4 @@ base::string16 WebUIMessageHandler::ExtractStringValue(
|
| return base::string16();
|
| }
|
|
|
| -} // namespace content
|
| +} // namespace web
|
|
|