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 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGET_IMPL_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGET_IMPL_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGET_IMPL_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGET_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/memory/scoped_ptr.h" |
11 #include "components/devtools_discovery/basic_target_descriptor.h" | 12 #include "components/devtools_discovery/basic_target_descriptor.h" |
12 | 13 |
13 class Profile; | 14 class Profile; |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 class DevToolsAgentHost; | 17 class DevToolsAgentHost; |
17 class WebContents; | 18 class WebContents; |
18 } | 19 } |
19 | 20 |
20 class DevToolsTargetImpl : public devtools_discovery::BasicTargetDescriptor { | 21 class DevToolsTargetImpl : public devtools_discovery::BasicTargetDescriptor { |
(...skipping 30 matching lines...) Expand all Loading... |
51 | 52 |
52 // Creates a new target associated with tab. | 53 // Creates a new target associated with tab. |
53 static scoped_ptr<DevToolsTargetImpl> CreateForTab( | 54 static scoped_ptr<DevToolsTargetImpl> CreateForTab( |
54 content::WebContents* web_contents); | 55 content::WebContents* web_contents); |
55 | 56 |
56 // Caller takes ownership of returned objects. | 57 // Caller takes ownership of returned objects. |
57 static std::vector<DevToolsTargetImpl*> EnumerateAll(); | 58 static std::vector<DevToolsTargetImpl*> EnumerateAll(); |
58 }; | 59 }; |
59 | 60 |
60 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGET_IMPL_H_ | 61 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGET_IMPL_H_ |
OLD | NEW |