OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_MANAGER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_MANAGER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_MANAGER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 friend class SharedWorkerDevToolsManagerTest; | 35 friend class SharedWorkerDevToolsManagerTest; |
36 FRIEND_TEST_ALL_PREFIXES(SharedWorkerDevToolsManagerTest, BasicTest); | 36 FRIEND_TEST_ALL_PREFIXES(SharedWorkerDevToolsManagerTest, BasicTest); |
37 FRIEND_TEST_ALL_PREFIXES(SharedWorkerDevToolsManagerTest, AttachTest); | 37 FRIEND_TEST_ALL_PREFIXES(SharedWorkerDevToolsManagerTest, AttachTest); |
38 | 38 |
39 SharedWorkerDevToolsManager(); | 39 SharedWorkerDevToolsManager(); |
40 ~SharedWorkerDevToolsManager() override; | 40 ~SharedWorkerDevToolsManager() override; |
41 | 41 |
42 AgentHostMap::iterator FindExistingWorkerAgentHost( | 42 AgentHostMap::iterator FindExistingWorkerAgentHost( |
43 const SharedWorkerInstance& instance); | 43 const SharedWorkerInstance& instance); |
44 | 44 |
45 // Resets to its initial state as if newly created. | |
46 void ResetForTesting(); | |
47 | |
48 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsManager); | 45 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsManager); |
49 }; | 46 }; |
50 | 47 |
51 } // namespace content | 48 } // namespace content |
52 | 49 |
53 #endif // CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_MANAGER_H_ | 50 #endif // CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_MANAGER_H_ |
OLD | NEW |