| 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 content::WebContents* web_contents() { return web_contents_; } | 66 content::WebContents* web_contents() { return web_contents_; } |
| 67 Profile* profile() { return profile_; } | 67 Profile* profile() { return profile_; } |
| 68 content::DevToolsAgentHost* agent_host() { return agent_host_.get(); } | 68 content::DevToolsAgentHost* agent_host() { return agent_host_.get(); } |
| 69 | 69 |
| 70 // Takes ownership over the |delegate|. | 70 // Takes ownership over the |delegate|. |
| 71 void SetDelegate(Delegate* delegate); | 71 void SetDelegate(Delegate* delegate); |
| 72 void CallClientFunction(const std::string& function_name, | 72 void CallClientFunction(const std::string& function_name, |
| 73 const base::Value* arg1, | 73 const base::Value* arg1, |
| 74 const base::Value* arg2, | 74 const base::Value* arg2, |
| 75 const base::Value* arg3); | 75 const base::Value* arg3); |
| 76 void AttachTo(content::DevToolsAgentHost* agent_host); | 76 void AttachTo(const scoped_refptr<content::DevToolsAgentHost>& agent_host); |
| 77 void Reattach(); | 77 void Reattach(); |
| 78 void Detach(); | 78 void Detach(); |
| 79 bool IsAttachedTo(content::DevToolsAgentHost* agent_host); | 79 bool IsAttachedTo(content::DevToolsAgentHost* agent_host); |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 // content::NotificationObserver overrides. | 82 // content::NotificationObserver overrides. |
| 83 virtual void Observe(int type, | 83 virtual void Observe(int type, |
| 84 const content::NotificationSource& source, | 84 const content::NotificationSource& source, |
| 85 const content::NotificationDetails& details) OVERRIDE; | 85 const content::NotificationDetails& details) OVERRIDE; |
| 86 | 86 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 bool devices_updates_enabled_; | 191 bool devices_updates_enabled_; |
| 192 scoped_ptr<DevToolsTargetsUIHandler> remote_targets_handler_; | 192 scoped_ptr<DevToolsTargetsUIHandler> remote_targets_handler_; |
| 193 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; | 193 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; |
| 194 GURL url_; | 194 GURL url_; |
| 195 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 195 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
| 196 | 196 |
| 197 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 197 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 200 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| OLD | NEW |