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

Side by Side Diff: content/renderer/web_ui_bindings.cc

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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/renderer/web_ui_bindings.h" 5 #include "content/renderer/web_ui_bindings.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/stl_util-inl.h" 8 #include "base/stl_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
14 14
15 namespace { 15 namespace {
16 16
17 // Creates a Value which is a copy of the CppVariant |value|. All objects are 17 // Creates a Value which is a copy of the CppVariant |value|. All objects are
18 // treated as Lists for now since CppVariant does not distinguish arrays in any 18 // treated as Lists for now since CppVariant does not distinguish arrays in any
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 *(static_cast<ListValue*>(content.get())))); 96 *(static_cast<ListValue*>(content.get()))));
97 } 97 }
98 98
99 void DOMBoundBrowserObject::SetProperty(const std::string& name, 99 void DOMBoundBrowserObject::SetProperty(const std::string& name,
100 const std::string& value) { 100 const std::string& value) {
101 CppVariant* cpp_value = new CppVariant; 101 CppVariant* cpp_value = new CppVariant;
102 cpp_value->Set(value); 102 cpp_value->Set(value);
103 BindProperty(name, cpp_value); 103 BindProperty(name, cpp_value);
104 properties_.push_back(cpp_value); 104 properties_.push_back(cpp_value);
105 } 105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698