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 "content/public/browser/devtools_target.h" | 11 #include "content/public/browser/devtools_target.h" |
12 #include "content/public/browser/worker_service.h" | 12 #include "content/public/browser/worker_service.h" |
13 | 13 |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 class DevToolsAgentHost; | 17 class DevToolsAgentHost; |
18 class RenderViewHost; | 18 class RenderViewHost; |
19 class WebContents; | 19 class WebContents; |
20 } | 20 } |
21 | 21 |
22 class DevToolsTargetImpl : public content::DevToolsTarget { | 22 class DevToolsTargetImpl : public content::DevToolsTarget { |
23 public: | 23 public: |
| 24 static const char kTargetTypeApp[]; |
| 25 static const char kTargetTypeBackgroundPage[]; |
| 26 static const char kTargetTypePage[]; |
| 27 static const char kTargetTypeWorker[]; |
| 28 static const char kTargetTypeWebView[]; |
| 29 static const char kTargetTypeIFrame[]; |
| 30 static const char kTargetTypeOther[]; |
| 31 static const char kTargetTypeServiceWorker[]; |
| 32 |
24 explicit DevToolsTargetImpl( | 33 explicit DevToolsTargetImpl( |
25 scoped_refptr<content::DevToolsAgentHost> agent_host); | 34 scoped_refptr<content::DevToolsAgentHost> agent_host); |
26 virtual ~DevToolsTargetImpl(); | 35 virtual ~DevToolsTargetImpl(); |
27 | 36 |
28 // content::DevToolsTarget overrides: | 37 // content::DevToolsTarget overrides: |
29 virtual std::string GetId() const OVERRIDE; | 38 virtual std::string GetId() const OVERRIDE; |
30 virtual std::string GetParentId() const OVERRIDE; | 39 virtual std::string GetParentId() const OVERRIDE; |
31 virtual std::string GetType() const OVERRIDE; | 40 virtual std::string GetType() const OVERRIDE; |
32 virtual std::string GetTitle() const OVERRIDE; | 41 virtual std::string GetTitle() const OVERRIDE; |
33 virtual std::string GetDescription() const OVERRIDE; | 42 virtual std::string GetDescription() const OVERRIDE; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 std::string parent_id_; | 93 std::string parent_id_; |
85 std::string type_; | 94 std::string type_; |
86 std::string title_; | 95 std::string title_; |
87 std::string description_; | 96 std::string description_; |
88 GURL url_; | 97 GURL url_; |
89 GURL favicon_url_; | 98 GURL favicon_url_; |
90 base::TimeTicks last_activity_time_; | 99 base::TimeTicks last_activity_time_; |
91 }; | 100 }; |
92 | 101 |
93 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGET_IMPL_H_ | 102 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGET_IMPL_H_ |
OLD | NEW |