OLD | NEW |
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 // This file defines utility functions for working with strings. | 5 // This file defines utility functions for working with strings. |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/string_util.h" |
9 #include "base/values.h" | 10 #include "base/values.h" |
10 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/debugger/debugger_contents.h" | 12 #include "chrome/browser/debugger/debugger_contents.h" |
12 #include "chrome/browser/debugger/debugger_shell.h" | 13 #include "chrome/browser/debugger/debugger_shell.h" |
13 #include "chrome/browser/debugger/debugger_wrapper.h" | 14 #include "chrome/browser/debugger/debugger_wrapper.h" |
14 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 15 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
15 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/resource_bundle.h" | 17 #include "chrome/common/resource_bundle.h" |
17 #include "net/base/mime_util.h" | 18 #include "net/base/mime_util.h" |
18 | 19 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 NewRunnableMethod(&chrome_url_data_manager, | 131 NewRunnableMethod(&chrome_url_data_manager, |
131 &ChromeURLDataManager::AddDataSource, | 132 &ChromeURLDataManager::AddDataSource, |
132 html_source)); | 133 html_source)); |
133 } | 134 } |
134 | 135 |
135 // static | 136 // static |
136 bool DebuggerContents::IsDebuggerUrl(const GURL& url) { | 137 bool DebuggerContents::IsDebuggerUrl(const GURL& url) { |
137 return (url.SchemeIs("chrome-ui") && url.host() == "inspector"); | 138 return (url.SchemeIs("chrome-ui") && url.host() == "inspector"); |
138 } | 139 } |
139 | 140 |
OLD | NEW |