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

Issue 264077: Convert devtools interfaces over to using WebString.... (Closed)

Created:
11 years, 2 months ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
yurys
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, darin (slow to review), jam, pam+watch_chromium.org
Visibility:
Public.

Description

Convert devtools interfaces over to using WebString. Also converts some internal std::string usage to WebCore::String. Note: copying WebString to WebCore::String is very cheap (just increments a reference count). The ugly WebStringToString and StringToWebString calls inside the devtools implementation are temporary. Once this code moves into the WebKit API implementation, those methods will go away. I thought about changing the devtools IPCs to use string16 instead of std::string because that would avoid the UTF8 conversions. I'm not sure if that is worth it though given that UTF16 would increase the amount of data being sent over IPC. I figure this is something that could be studied later. R=pfeldman BUG=24597 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29286

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -216 lines) Patch
M chrome/renderer/devtools_agent.h View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/renderer/devtools_agent.cc View 3 chunks +20 lines, -9 lines 0 comments Download
M chrome/renderer/devtools_agent_filter.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/renderer/devtools_client.h View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/renderer/devtools_client.cc View 4 chunks +23 lines, -12 lines 0 comments Download
M webkit/glue/devtools/bound_object.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/glue/devtools/debugger_agent.h View 3 chunks +2 lines, -4 lines 0 comments Download
M webkit/glue/devtools/debugger_agent_impl.h View 2 chunks +1 line, -3 lines 0 comments Download
M webkit/glue/devtools/debugger_agent_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/devtools/debugger_agent_manager.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webkit/glue/devtools/debugger_agent_manager.cc View 4 chunks +14 lines, -15 lines 0 comments Download
M webkit/glue/devtools/devtools_rpc.h View 1 5 chunks +27 lines, -42 lines 0 comments Download
M webkit/glue/devtools/devtools_rpc_js.h View 2 chunks +3 lines, -5 lines 0 comments Download
M webkit/glue/devtools/tools_agent.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/webdevtoolsagent.h View 3 chunks +10 lines, -7 lines 0 comments Download
M webkit/glue/webdevtoolsagent_delegate.h View 1 chunk +9 lines, -6 lines 0 comments Download
M webkit/glue/webdevtoolsagent_impl.h View 1 chunk +10 lines, -10 lines 0 comments Download
M webkit/glue/webdevtoolsagent_impl.cc View 6 chunks +35 lines, -20 lines 0 comments Download
M webkit/glue/webdevtoolsclient.h View 2 chunks +10 lines, -7 lines 0 comments Download
M webkit/glue/webdevtoolsclient_delegate.h View 1 chunk +10 lines, -7 lines 0 comments Download
M webkit/glue/webdevtoolsclient_impl.h View 2 chunks +13 lines, -13 lines 0 comments Download
M webkit/glue/webdevtoolsclient_impl.cc View 7 chunks +50 lines, -37 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
darin (slow to review)
11 years, 2 months ago (2009-10-16 07:52:47 UTC) #1
yurys
On 2009/10/16 07:52:47, darin wrote: > LGTM
11 years, 2 months ago (2009-10-16 11:23:02 UTC) #2
yurys
LGTM, thanks for fixing that! http://codereview.chromium.org/264077/diff/1/15 File webkit/glue/webdevtoolsclient_impl.cc (right): http://codereview.chromium.org/264077/diff/1/15#newcode44 Line 44: static v8::Local<v8::String> ToV8String(const ...
11 years, 2 months ago (2009-10-16 11:23:33 UTC) #3
darin (slow to review)
Thanks for the review! On Fri, Oct 16, 2009 at 4:23 AM, <yurys@chromium.org> wrote: > ...
11 years, 2 months ago (2009-10-16 15:36:42 UTC) #4
yurys
11 years, 2 months ago (2009-10-16 15:41:31 UTC) #5
http://codereview.chromium.org/264077/diff/1/15
File webkit/glue/webdevtoolsclient_impl.cc (right):

http://codereview.chromium.org/264077/diff/1/15#newcode44
Line 44: static v8::Local<v8::String> ToV8String(const String& s) {
On 2009/10/16 11:23:33, Yury Semikhatsky wrote:
> consider placing it into an anonymous namespace

Oh, it's static, never mind then.

Powered by Google App Engine
This is Rietveld 408576698