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

Side by Side Diff: chrome/browser/extensions/api/debugger/debugger_api_constants.cc

Issue 12304021: Allow chrome.debugger API to attach to extension background pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a command line switch enabling attach to extension Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extensions/api/debugger/debugger_api_constants.h" 5 #include "chrome/browser/extensions/api/debugger/debugger_api_constants.h"
6 6
7 namespace debugger_api_constants { 7 namespace debugger_api_constants {
8 8
9 const char kOnEvent[] = "debugger.onEvent"; 9 const char kOnEvent[] = "debugger.onEvent";
10 const char kOnDetach[] = "debugger.onDetach"; 10 const char kOnDetach[] = "debugger.onDetach";
11 11
12 const char kAlreadyAttachedError[] = 12 const char kAlreadyAttachedError[] =
13 "Another debugger is already attached to the tab with id: *."; 13 "Another debugger is already attached to the * with id: *.";
14 const char kAttachToWebUIError[] = 14 const char kAttachToWebUIError[] =
15 "Can not attach to the page with the \"*://\" scheme."; 15 "Can not attach to the page with the \"*://\" scheme.";
16 const char kNoTabError[] = "No tab with given id *."; 16 const char kNoTargetError[] = "No * with given id *.";
17 const char kInvalidTargetError[] =
18 "Either tab id or extension id must be specified.";
17 const char kNotAttachedError[] = 19 const char kNotAttachedError[] =
18 "Debugger is not attached to the tab with id: *."; 20 "Debugger is not attached to the * with id: *.";
19 const char kProtocolVersionNotSupportedError[] = 21 const char kProtocolVersionNotSupportedError[] =
20 "Requested protocol version is not supported: *."; 22 "Requested protocol version is not supported: *.";
23 const char kSilentDebuggingRequired[] =
24 "Cannot attach to an extension, --* command line option required.";
25
26 const char kTabTargetType[] = "tab";
27 const char kExtensionTargetType[] = "extension";
21 28
22 } // namespace debugger_api_constants 29 } // namespace debugger_api_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698