OLD | NEW |
---|---|
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" |
11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/debugger/devtools_window.h" | 14 #include "chrome/browser/debugger/devtools_window.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" | 16 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" |
17 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" | 17 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
19 #include "content/browser/debugger/worker_devtools_manager.h" | 19 #include "content/browser/debugger/worker_devtools_manager.h" |
20 #include "content/browser/tab_contents/tab_contents.h" | 20 #include "content/browser/tab_contents/tab_contents.h" |
21 #include "content/browser/worker_host/worker_process_host.h" | 21 #include "content/browser/worker_host/worker_process_host.h" |
22 #include "content/browser/worker_host/worker_service.h" | 22 #include "content/browser/worker_host/worker_service.h" |
23 #include "content/browser/worker_host/worker_service_observer.h" | 23 #include "content/browser/worker_host/worker_service_observer.h" |
24 #include "content/common/devtools_messages.h" | |
Bernhard Bauer
2011/11/17 10:41:10
Is this related to this CL?
jam
2011/11/17 16:49:51
ah yes, it is. seems harmless to leave in
| |
25 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
26 #include "grit/workers_resources.h" | 25 #include "grit/workers_resources.h" |
27 #include "ui/base/resource/resource_bundle.h" | 26 #include "ui/base/resource/resource_bundle.h" |
28 | 27 |
29 using content::BrowserThread; | 28 using content::BrowserThread; |
30 | 29 |
31 static const char kWorkersDataFile[] = "workers_data.json"; | 30 static const char kWorkersDataFile[] = "workers_data.json"; |
32 | 31 |
33 static const char kOpenDevToolsCommand[] = "openDevTools"; | 32 static const char kOpenDevToolsCommand[] = "openDevTools"; |
34 static const char kTerminateWorkerCommand[] = "terminateWorker"; | 33 static const char kTerminateWorkerCommand[] = "terminateWorker"; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
255 | 254 |
256 // Set up the chrome://workers/ source. | 255 // Set up the chrome://workers/ source. |
257 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); | 256 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); |
258 profile->GetChromeURLDataManager()->AddDataSource(html_source); | 257 profile->GetChromeURLDataManager()->AddDataSource(html_source); |
259 } | 258 } |
260 | 259 |
261 WorkersUI::~WorkersUI() { | 260 WorkersUI::~WorkersUI() { |
262 observer_->WorkersUIDestroyed(); | 261 observer_->WorkersUIDestroyed(); |
263 observer_ = NULL; | 262 observer_ = NULL; |
264 } | 263 } |
OLD | NEW |