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

Side by Side Diff: chrome/browser/extensions/extension_devtools_events.cc

Issue 3447008: base: Finish moving the SplitString functions from string_util.h to string_split.h (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: chromeos fixes Created 10 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
« no previous file with comments | « chrome/browser/download/save_package.cc ('k') | chrome/browser/extensions/extension_updater.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/extension_devtools_events.h" 5 #include "chrome/browser/extensions/extension_devtools_events.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_split.h"
10 #include "base/string_util.h" 11 #include "base/string_util.h"
11 #include "base/stringprintf.h" 12 #include "base/stringprintf.h"
12 13
13 // These string constants and the formats used in this file must stay 14 // These string constants and the formats used in this file must stay
14 // in sync with chrome/renderer/resources/extension_process_bindings.js 15 // in sync with chrome/renderer/resources/extension_process_bindings.js
15 static const char kDevToolsEventPrefix[] = "devtools."; 16 static const char kDevToolsEventPrefix[] = "devtools.";
16 static const char kOnPageEventName[] = "onPageEvent"; 17 static const char kOnPageEventName[] = "onPageEvent";
17 static const char kOnTabCloseEventName[] = "onTabClose"; 18 static const char kOnTabCloseEventName[] = "onTabClose";
18 19
19 // static 20 // static
(...skipping 24 matching lines...) Expand all
44 } 45 }
45 46
46 // static 47 // static
47 std::string ExtensionDevToolsEvents::OnTabCloseEventNameForTab(int tab_id) { 48 std::string ExtensionDevToolsEvents::OnTabCloseEventNameForTab(int tab_id) {
48 return base::StringPrintf("%s%d.%s", 49 return base::StringPrintf("%s%d.%s",
49 kDevToolsEventPrefix, 50 kDevToolsEventPrefix,
50 tab_id, 51 tab_id,
51 kOnTabCloseEventName); 52 kOnTabCloseEventName);
52 } 53 }
53 54
OLDNEW
« no previous file with comments | « chrome/browser/download/save_package.cc ('k') | chrome/browser/extensions/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698