Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: content/browser/webui/web_ui.cc

Issue 6874038: Remove the last Chrome dependencies from renderer, and enforce no more includes through DEPS. I ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/webui/web_ui.h" 5 #include "content/browser/webui/web_ui.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/stl_util-inl.h" 9 #include "base/stl_util-inl.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/common/bindings_policy.h"
14 #include "chrome/common/extensions/extension_messages.h" 13 #include "chrome/common/extensions/extension_messages.h"
15 #include "chrome/common/render_messages.h" 14 #include "chrome/common/render_messages.h"
16 #include "content/browser/renderer_host/render_view_host.h" 15 #include "content/browser/renderer_host/render_view_host.h"
17 #include "content/browser/tab_contents/tab_contents.h" 16 #include "content/browser/tab_contents/tab_contents.h"
18 #include "content/browser/tab_contents/tab_contents_view.h" 17 #include "content/browser/tab_contents/tab_contents_view.h"
19 #include "content/browser/webui/generic_handler.h" 18 #include "content/browser/webui/generic_handler.h"
19 #include "content/common/bindings_policy.h"
20 20
21 namespace { 21 namespace {
22 22
23 string16 GetJavascript(const std::string& function_name, 23 string16 GetJavascript(const std::string& function_name,
24 const std::vector<const Value*>& arg_list) { 24 const std::vector<const Value*>& arg_list) {
25 string16 parameters; 25 string16 parameters;
26 std::string json; 26 std::string json;
27 for (size_t i = 0; i < arg_list.size(); ++i) { 27 for (size_t i = 0; i < arg_list.size(); ++i) {
28 if (i > 0) 28 if (i > 0)
29 parameters += char16(','); 29 parameters += char16(',');
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 return false; 211 return false;
212 } 212 }
213 213
214 string16 WebUIMessageHandler::ExtractStringValue(const ListValue* value) { 214 string16 WebUIMessageHandler::ExtractStringValue(const ListValue* value) {
215 string16 string16_value; 215 string16 string16_value;
216 if (value->GetString(0, &string16_value)) 216 if (value->GetString(0, &string16_value))
217 return string16_value; 217 return string16_value;
218 NOTREACHED(); 218 NOTREACHED();
219 return string16(); 219 return string16();
220 } 220 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698