Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(944)

Side by Side Diff: chrome/browser/devtools/devtools_ui_bindings.h

Issue 513673004: Manual devtools fixups for scoped_refptr operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/device/usb/android_usb_device.cc ('k') | chrome/browser/devtools/devtools_ui_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698