| OLD | NEW |
| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/cancelable_callback.h" | 6 #include "base/cancelable_callback.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "content/public/browser/web_contents.h" | 35 #include "content/public/browser/web_contents.h" |
| 36 #include "content/public/browser/worker_service.h" | 36 #include "content/public/browser/worker_service.h" |
| 37 #include "content/public/browser/worker_service_observer.h" | 37 #include "content/public/browser/worker_service_observer.h" |
| 38 #include "net/test/test_server.h" | 38 #include "net/test/test_server.h" |
| 39 | 39 |
| 40 using content::BrowserThread; | 40 using content::BrowserThread; |
| 41 using content::DevToolsManager; | 41 using content::DevToolsManager; |
| 42 using content::DevToolsAgentHost; | 42 using content::DevToolsAgentHost; |
| 43 using content::DevToolsAgentHostRegistry; | 43 using content::DevToolsAgentHostRegistry; |
| 44 using content::NavigationController; | 44 using content::NavigationController; |
| 45 using content::RenderViewHost; |
| 45 using content::WebContents; | 46 using content::WebContents; |
| 46 using content::WorkerService; | 47 using content::WorkerService; |
| 47 using content::WorkerServiceObserver; | 48 using content::WorkerServiceObserver; |
| 48 | 49 |
| 49 namespace { | 50 namespace { |
| 50 | 51 |
| 51 // Used to block until a dev tools client window's browser is closed. | 52 // Used to block until a dev tools client window's browser is closed. |
| 52 class BrowserClosedObserver : public content::NotificationObserver { | 53 class BrowserClosedObserver : public content::NotificationObserver { |
| 53 public: | 54 public: |
| 54 explicit BrowserClosedObserver(Browser* browser) { | 55 explicit BrowserClosedObserver(Browser* browser) { |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 | 578 |
| 578 // Reload page to restart the worker. | 579 // Reload page to restart the worker. |
| 579 ui_test_utils::NavigateToURL(browser(), url); | 580 ui_test_utils::NavigateToURL(browser(), url); |
| 580 | 581 |
| 581 // Wait until worker script is paused on the debugger statement. | 582 // Wait until worker script is paused on the debugger statement. |
| 582 RunTestFunction(window_, "testPauseInSharedWorkerInitialization"); | 583 RunTestFunction(window_, "testPauseInSharedWorkerInitialization"); |
| 583 CloseDevToolsWindow(); | 584 CloseDevToolsWindow(); |
| 584 } | 585 } |
| 585 | 586 |
| 586 } // namespace | 587 } // namespace |
| OLD | NEW |