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

Side by Side Diff: webkit/glue/devtools/debugger_agent_impl.cc

Issue 330029: DevTools: Remove base/ dependencies from glue/devtools (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "config.h" 5 #include "config.h"
6 6
7 #include <wtf/HashSet.h> 7 #include <wtf/HashSet.h>
8 #include <wtf/RefPtr.h> 8 #include <wtf/RefPtr.h>
9 #include <wtf/Vector.h> 9 #include <wtf/Vector.h>
10 10
11 #include "Document.h" 11 #include "Document.h"
12 #include "Page.h" 12 #include "Page.h"
13 #include "V8Binding.h" 13 #include "V8Binding.h"
14 #include "V8DOMWindow.h" 14 #include "V8DOMWindow.h"
15 #include "V8Index.h" 15 #include "V8Index.h"
16 #include "V8Proxy.h" 16 #include "V8Proxy.h"
17 #undef LOG 17 #undef LOG
18 18
19 #include "base/string_piece.h"
20 #include "grit/webkit_resources.h" 19 #include "grit/webkit_resources.h"
21 #include "webkit/glue/devtools/debugger_agent_impl.h" 20 #include "webkit/glue/devtools/debugger_agent_impl.h"
22 #include "webkit/glue/devtools/debugger_agent_manager.h" 21 #include "webkit/glue/devtools/debugger_agent_manager.h"
23 #include "webkit/glue/glue_util.h" 22 #include "webkit/glue/glue_util.h"
24 #include "webkit/glue/webdevtoolsagent_impl.h" 23 #include "webkit/glue/webdevtoolsagent_impl.h"
25 #include "webkit/glue/webkit_glue.h" 24 #include "webkit/glue/webkit_glue.h"
26 #include "webkit/glue/webview_impl.h" 25 #include "webkit/glue/webview_impl.h"
27 26
28 using WebCore::DOMWindow; 27 using WebCore::DOMWindow;
29 using WebCore::Document; 28 using WebCore::Document;
(...skipping 25 matching lines...) Expand all
55 DebuggerAgentManager::DebugBreak(this); 54 DebuggerAgentManager::DebugBreak(this);
56 } 55 }
57 56
58 void DebuggerAgentImpl::GetContextId() { 57 void DebuggerAgentImpl::GetContextId() {
59 delegate_->SetContextId(webdevtools_agent_->host_id()); 58 delegate_->SetContextId(webdevtools_agent_->host_id());
60 } 59 }
61 60
62 void DebuggerAgentImpl::StartProfiling(int flags) { 61 void DebuggerAgentImpl::StartProfiling(int flags) {
63 v8::HandleScope scope; 62 v8::HandleScope scope;
64 WebCore::Frame* frame = GetPage()->mainFrame(); 63 WebCore::Frame* frame = GetPage()->mainFrame();
65 DCHECK(V8Proxy::retrieve(GetPage()->mainFrame())->isContextInitialized()); 64 ASSERT(V8Proxy::retrieve(GetPage()->mainFrame())->isContextInitialized());
66 v8::Context::Scope context_scope(V8Proxy::context(frame)); 65 v8::Context::Scope context_scope(V8Proxy::context(frame));
67 v8::V8::ResumeProfilerEx(flags); 66 v8::V8::ResumeProfilerEx(flags);
68 } 67 }
69 68
70 void DebuggerAgentImpl::StopProfiling(int flags) { 69 void DebuggerAgentImpl::StopProfiling(int flags) {
71 v8::V8::PauseProfilerEx(flags); 70 v8::V8::PauseProfilerEx(flags);
72 } 71 }
73 72
74 void DebuggerAgentImpl::GetActiveProfilerModules() { 73 void DebuggerAgentImpl::GetActiveProfilerModules() {
75 delegate_->DidGetActiveProfilerModules(v8::V8::GetActiveProfilerModules()); 74 delegate_->DidGetActiveProfilerModules(v8::V8::GetActiveProfilerModules());
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 ASSERT(function->IsFunction()); 204 ASSERT(function->IsFunction());
206 v8::Handle<v8::Value> args[] = { 205 v8::Handle<v8::Value> args[] = {
207 v8::Local<v8::Value>() 206 v8::Local<v8::Value>()
208 }; 207 };
209 v8::Handle<v8::Function>::Cast(function)->Call(context->Global(), 0, args); 208 v8::Handle<v8::Function>::Cast(function)->Call(context->Global(), 0, args);
210 } 209 }
211 210
212 WebCore::Page* DebuggerAgentImpl::GetPage() { 211 WebCore::Page* DebuggerAgentImpl::GetPage() {
213 return web_view_impl_->page(); 212 return web_view_impl_->page();
214 } 213 }
OLDNEW
« no previous file with comments | « webkit/glue/devtools/debugger_agent_impl.h ('k') | webkit/glue/devtools/debugger_agent_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698