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

Side by Side Diff: chrome/browser/debugger/debugger_remote_service.h

Issue 7826038: Get rid of some static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « no previous file | chrome/browser/debugger/debugger_remote_service.cc » ('j') | 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) 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 // This file declares the DebuggerRemoteServiceCommand struct and the 5 // This file declares the DebuggerRemoteServiceCommand struct and the
6 // DebuggerRemoteService class which handles commands directed to the 6 // DebuggerRemoteService class which handles commands directed to the
7 // "V8Debugger" tool. 7 // "V8Debugger" tool.
8 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_REMOTE_SERVICE_H_ 8 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_REMOTE_SERVICE_H_
9 #define CHROME_BROWSER_DEBUGGER_DEBUGGER_REMOTE_SERVICE_H_ 9 #define CHROME_BROWSER_DEBUGGER_DEBUGGER_REMOTE_SERVICE_H_
10 #pragma once 10 #pragma once
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "chrome/browser/debugger/devtools_remote.h" 15 #include "chrome/browser/debugger/devtools_remote.h"
16 16
17 class DevToolsProtocolHandler; 17 class DevToolsProtocolHandler;
18 class DevToolsRemoteMessage; 18 class DevToolsRemoteMessage;
19 class TabContents; 19 class TabContents;
20 20
21 namespace base { 21 namespace base {
22 class DictionaryValue; 22 class DictionaryValue;
23 class Value; 23 class Value;
24 } 24 }
25 25
26 // Contains constants for DebuggerRemoteService tool protocol commands 26 // Contains constants for DebuggerRemoteService tool protocol commands
27 // (V8-related only). 27 // (V8-related only).
28 struct DebuggerRemoteServiceCommand { 28 struct DebuggerRemoteServiceCommand {
29 static const std::string kAttach; 29 static const char* const kAttach;
30 static const std::string kDetach; 30 static const char* const kDetach;
31 static const std::string kDebuggerCommand; 31 static const char* const kDebuggerCommand;
32 static const std::string kEvaluateJavascript; 32 static const char* const kEvaluateJavascript;
33 static const std::string kFrameNavigate; // navigation event 33 static const char* const kFrameNavigate; // navigation event
34 static const std::string kTabClosed; // tab closing event 34 static const char* const kTabClosed; // tab closing event
35 }; 35 };
36 36
37 // Handles V8 debugger-related messages from the remote debugger (like 37 // Handles V8 debugger-related messages from the remote debugger (like
38 // attach to V8 debugger, detach from V8 debugger, send command to V8 debugger) 38 // attach to V8 debugger, detach from V8 debugger, send command to V8 debugger)
39 // and proxies JSON messages from V8 debugger to the remote debugger. 39 // and proxies JSON messages from V8 debugger to the remote debugger.
40 class DebuggerRemoteService : public DevToolsRemoteListener { 40 class DebuggerRemoteService : public DevToolsRemoteListener {
41 public: 41 public:
42 // |delegate| (never NULL) is the protocol handler instance 42 // |delegate| (never NULL) is the protocol handler instance
43 // which dispatches messages to this service. The responses from the 43 // which dispatches messages to this service. The responses from the
44 // V8 VM debugger are routed back to |delegate|. 44 // V8 VM debugger are routed back to |delegate|.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool DispatchEvaluateJavascript(int tab_uid, 118 bool DispatchEvaluateJavascript(int tab_uid,
119 base::DictionaryValue* content, 119 base::DictionaryValue* content,
120 base::DictionaryValue* response); 120 base::DictionaryValue* response);
121 121
122 // The delegate is used to get an InspectableTabProxy instance. 122 // The delegate is used to get an InspectableTabProxy instance.
123 DevToolsProtocolHandler* delegate_; 123 DevToolsProtocolHandler* delegate_;
124 DISALLOW_COPY_AND_ASSIGN(DebuggerRemoteService); 124 DISALLOW_COPY_AND_ASSIGN(DebuggerRemoteService);
125 }; 125 };
126 126
127 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_REMOTE_SERVICE_H_ 127 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_REMOTE_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/debugger/debugger_remote_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698