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

Side by Side Diff: chrome/browser/debugger/debugger_shell.cc

Issue 20321: Add debugger_shell to the POSIX build. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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
« no previous file with comments | « chrome/browser/debugger/debugger.scons ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/browser/debugger/debugger_shell.h" 5 #include "chrome/browser/debugger/debugger_shell.h"
6 6
7 #include "build/build_config.h"
8
7 #include "base/file_util.h" 9 #include "base/file_util.h"
8 #include "base/path_service.h" 10 #include "base/path_service.h"
9 #include "base/string_util.h" 11 #include "base/string_util.h"
10 #include "base/thread.h" 12 #include "base/thread.h"
11 #include "chrome/browser/browser.h" 13 #include "chrome/browser/browser.h"
12 #include "chrome/browser/browser_list.h" 14 #include "chrome/browser/browser_list.h"
13 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/debugger/debugger_io.h" 16 #include "chrome/browser/debugger/debugger_io.h"
15 #include "chrome/browser/debugger/debugger_node.h" 17 #include "chrome/browser/debugger/debugger_node.h"
16 #include "chrome/browser/debugger/resources/debugger_resources.h" 18 #include "chrome/browser/debugger/resources/debugger_resources.h"
17 #include "chrome/browser/renderer_host/render_process_host.h" 19 #include "chrome/browser/renderer_host/render_process_host.h"
18 #include "chrome/browser/tab_contents/tab_contents.h"
19 #include "chrome/common/chrome_paths.h" 20 #include "chrome/common/chrome_paths.h"
20 #include "chrome/common/resource_bundle.h" 21 #include "chrome/common/resource_bundle.h"
21 22
23 #if defined(OS_WIN)
24 #include "chrome/browser/tab_contents/tab_contents.h"
25 #elif defined(OS_POSIX)
26 #include "chrome/common/temp_scaffolding_stubs.h"
27 #endif
28
22 DebuggerShell::DebuggerShell(DebuggerInputOutput* io) : io_(io), 29 DebuggerShell::DebuggerShell(DebuggerInputOutput* io) : io_(io),
23 debugger_ready_(true) { 30 debugger_ready_(true) {
24 } 31 }
25 32
26 DebuggerShell::~DebuggerShell() { 33 DebuggerShell::~DebuggerShell() {
27 io_->Stop(); 34 io_->Stop();
28 io_ = NULL; 35 io_ = NULL;
29 36
30 v8::HandleScope scope; 37 v8::HandleScope scope;
31 SubshellFunction("exit", 0, NULL); 38 SubshellFunction("exit", 0, NULL);
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 v8::Local<v8::Script> code = 409 v8::Local<v8::Script> code =
403 v8::Script::Compile(v8::String::New(utf16), &origin); 410 v8::Script::Compile(v8::String::New(utf16), &origin);
404 if (!code.IsEmpty()) { 411 if (!code.IsEmpty()) {
405 v8::Local<v8::Value> result = code->Run(); 412 v8::Local<v8::Value> result = code->Run();
406 if (!result.IsEmpty()) { 413 if (!result.IsEmpty()) {
407 return result; 414 return result;
408 } 415 }
409 } 416 }
410 return v8::Undefined(); 417 return v8::Undefined();
411 } 418 }
412
413
414
OLDNEW
« no previous file with comments | « chrome/browser/debugger/debugger.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698