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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | « chrome/browser/ui/webui/web_ui_unittest.cc ('k') | chrome/browser/upgrade_detector_impl.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 #include "chrome/browser/ui/webui/workers_ui.h" 5 #include "chrome/browser/ui/webui/workers_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
(...skipping 10 matching lines...) Expand all
21 #include "content/browser/tab_contents/tab_contents.h" 21 #include "content/browser/tab_contents/tab_contents.h"
22 #include "content/browser/worker_host/worker_process_host.h" 22 #include "content/browser/worker_host/worker_process_host.h"
23 #include "content/browser/worker_host/worker_service.h" 23 #include "content/browser/worker_host/worker_service.h"
24 #include "content/browser/worker_host/worker_service_observer.h" 24 #include "content/browser/worker_host/worker_service_observer.h"
25 #include "content/common/devtools_messages.h" 25 #include "content/common/devtools_messages.h"
26 #include "content/common/worker_messages.h" 26 #include "content/common/worker_messages.h"
27 #include "grit/generated_resources.h" 27 #include "grit/generated_resources.h"
28 #include "grit/workers_resources.h" 28 #include "grit/workers_resources.h"
29 #include "ui/base/resource/resource_bundle.h" 29 #include "ui/base/resource/resource_bundle.h"
30 30
31 using content::BrowserThread;
32
31 static const char kWorkersDataFile[] = "workers_data.json"; 33 static const char kWorkersDataFile[] = "workers_data.json";
32 34
33 static const char kOpenDevToolsCommand[] = "openDevTools"; 35 static const char kOpenDevToolsCommand[] = "openDevTools";
34 static const char kTerminateWorkerCommand[] = "terminateWorker"; 36 static const char kTerminateWorkerCommand[] = "terminateWorker";
35 37
36 static const char kWorkerProcessHostIdField[] = "workerProcessHostId"; 38 static const char kWorkerProcessHostIdField[] = "workerProcessHostId";
37 static const char kWorkerRouteIdField[] = "workerRouteId"; 39 static const char kWorkerRouteIdField[] = "workerRouteId";
38 static const char kUrlField[] = "url"; 40 static const char kUrlField[] = "url";
39 static const char kNameField[] = "name"; 41 static const char kNameField[] = "name";
40 static const char kPidField[] = "pid"; 42 static const char kPidField[] = "pid";
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 262
261 // Set up the chrome://workers/ source. 263 // Set up the chrome://workers/ source.
262 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); 264 Profile* profile = Profile::FromBrowserContext(contents->browser_context());
263 profile->GetChromeURLDataManager()->AddDataSource(html_source); 265 profile->GetChromeURLDataManager()->AddDataSource(html_source);
264 } 266 }
265 267
266 WorkersUI::~WorkersUI() { 268 WorkersUI::~WorkersUI() {
267 observer_->WorkersUIDestroyed(); 269 observer_->WorkersUIDestroyed();
268 observer_ = NULL; 270 observer_ = NULL;
269 } 271 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/web_ui_unittest.cc ('k') | chrome/browser/upgrade_detector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698