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

Side by Side Diff: chrome/browser/ui/webui/devtools_ui.cc

Issue 14328007: Compilation broken with debug_devtools after r194605 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | no next file » | 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) 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/ui/webui/devtools_ui.h" 5 #include "chrome/browser/ui/webui/devtools_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/ref_counted_memory.h" 9 #include "base/memory/ref_counted_memory.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 }; 169 };
170 170
171 #if defined(DEBUG_DEVTOOLS) 171 #if defined(DEBUG_DEVTOOLS)
172 class LocalhostDataSource : public content::URLDataSource { 172 class LocalhostDataSource : public content::URLDataSource {
173 public: 173 public:
174 explicit LocalhostDataSource(net::URLRequestContextGetter* 174 explicit LocalhostDataSource(net::URLRequestContextGetter*
175 request_context) : request_context_(request_context) { 175 request_context) : request_context_(request_context) {
176 } 176 }
177 177
178 // content::URLDataSource implementation. 178 // content::URLDataSource implementation.
179 virtual std::string GetSource() OVERRIDE { 179 virtual std::string GetSource() const OVERRIDE {
180 return "localhost"; 180 return "localhost";
181 } 181 }
182 182
183 virtual void StartDataRequest( 183 virtual void StartDataRequest(
184 const std::string& path, 184 const std::string& path,
185 bool is_incognito, 185 bool is_incognito,
186 const content::URLDataSource::GotDataCallback& callback) OVERRIDE { 186 const content::URLDataSource::GotDataCallback& callback) OVERRIDE {
187 187
188 GURL url = GURL("http://localhost:9222/" + path); 188 GURL url = GURL("http://localhost:9222/" + path);
189 new FetchRequest(request_context_, url, callback); 189 new FetchRequest(request_context_, url, callback);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 new BundledDataSource()); 232 new BundledDataSource());
233 content::URLDataSource::Add( 233 content::URLDataSource::Add(
234 profile, 234 profile,
235 new RemoteDataSource(profile->GetRequestContext())); 235 new RemoteDataSource(profile->GetRequestContext()));
236 #if defined(DEBUG_DEVTOOLS) 236 #if defined(DEBUG_DEVTOOLS)
237 content::URLDataSource::Add( 237 content::URLDataSource::Add(
238 profile, 238 profile,
239 new LocalhostDataSource(profile->GetRequestContext())); 239 new LocalhostDataSource(profile->GetRequestContext()));
240 #endif // defined(DEBUG_DEVTOOLS) 240 #endif // defined(DEBUG_DEVTOOLS)
241 } 241 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698