| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/devtools/devtools_targets_ui.h" | 5 #include "chrome/browser/devtools/devtools_targets_ui.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/devtools/devtools_adb_bridge.h" | 10 #include "chrome/browser/devtools/devtools_adb_bridge.h" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 this)); | 190 this)); |
| 191 } | 191 } |
| 192 | 192 |
| 193 private: | 193 private: |
| 194 friend class base::RefCountedThreadSafe<WorkerObserver>; | 194 friend class base::RefCountedThreadSafe<WorkerObserver>; |
| 195 virtual ~WorkerObserver() {} | 195 virtual ~WorkerObserver() {} |
| 196 | 196 |
| 197 // content::WorkerServiceObserver overrides: | 197 // content::WorkerServiceObserver overrides: |
| 198 virtual void WorkerCreated( | 198 virtual void WorkerCreated( |
| 199 const GURL& url, | 199 const GURL& url, |
| 200 const string16& name, | 200 const base::string16& name, |
| 201 int process_id, | 201 int process_id, |
| 202 int route_id) OVERRIDE { | 202 int route_id) OVERRIDE { |
| 203 EnumerateOnIOThread(); | 203 EnumerateOnIOThread(); |
| 204 } | 204 } |
| 205 | 205 |
| 206 virtual void WorkerDestroyed(int process_id, int route_id) OVERRIDE { | 206 virtual void WorkerDestroyed(int process_id, int route_id) OVERRIDE { |
| 207 EnumerateOnIOThread(); | 207 EnumerateOnIOThread(); |
| 208 } | 208 } |
| 209 | 209 |
| 210 void StartOnIOThread() { | 210 void StartOnIOThread() { |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 : DevToolsTargetsUIHandler(source_id, callback) { | 516 : DevToolsTargetsUIHandler(source_id, callback) { |
| 517 } | 517 } |
| 518 | 518 |
| 519 // static | 519 // static |
| 520 scoped_ptr<DevToolsRemoteTargetsUIHandler> | 520 scoped_ptr<DevToolsRemoteTargetsUIHandler> |
| 521 DevToolsRemoteTargetsUIHandler::CreateForAdb( | 521 DevToolsRemoteTargetsUIHandler::CreateForAdb( |
| 522 DevToolsTargetsUIHandler::Callback callback, Profile* profile) { | 522 DevToolsTargetsUIHandler::Callback callback, Profile* profile) { |
| 523 return scoped_ptr<DevToolsRemoteTargetsUIHandler>( | 523 return scoped_ptr<DevToolsRemoteTargetsUIHandler>( |
| 524 new AdbTargetsUIHandler(callback, profile)); | 524 new AdbTargetsUIHandler(callback, profile)); |
| 525 } | 525 } |
| OLD | NEW |