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

Side by Side Diff: chrome/browser/extensions/api/debugger/debugger_api.cc

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Implements the Chrome Extensions Debugger API. 5 // Implements the Chrome Extensions Debugger API.
6 6
7 #include "chrome/browser/extensions/api/debugger/debugger_api.h" 7 #include "chrome/browser/extensions/api/debugger/debugger_api.h"
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void SendMessageToBackend(DebuggerSendCommandFunction* function, 92 void SendMessageToBackend(DebuggerSendCommandFunction* function,
93 const std::string& method, 93 const std::string& method,
94 SendCommand::Params::CommandParams* command_params); 94 SendCommand::Params::CommandParams* command_params);
95 95
96 // Marks connection as to-be-terminated by the user. 96 // Marks connection as to-be-terminated by the user.
97 void MarkAsDismissed(); 97 void MarkAsDismissed();
98 98
99 // DevToolsAgentHostClient interface. 99 // DevToolsAgentHostClient interface.
100 virtual void AgentHostClosed( 100 virtual void AgentHostClosed(
101 DevToolsAgentHost* agent_host, 101 DevToolsAgentHost* agent_host,
102 bool replaced_with_another_client) OVERRIDE; 102 bool replaced_with_another_client) override;
103 virtual void DispatchProtocolMessage( 103 virtual void DispatchProtocolMessage(
104 DevToolsAgentHost* agent_host, 104 DevToolsAgentHost* agent_host,
105 const std::string& message) OVERRIDE; 105 const std::string& message) override;
106 106
107 private: 107 private:
108 void SendDetachedEvent(); 108 void SendDetachedEvent();
109 109
110 // content::NotificationObserver implementation. 110 // content::NotificationObserver implementation.
111 virtual void Observe(int type, 111 virtual void Observe(int type,
112 const content::NotificationSource& source, 112 const content::NotificationSource& source,
113 const content::NotificationDetails& details) OVERRIDE; 113 const content::NotificationDetails& details) override;
114 114
115 // ExtensionRegistryObserver implementation. 115 // ExtensionRegistryObserver implementation.
116 virtual void OnExtensionUnloaded( 116 virtual void OnExtensionUnloaded(
117 content::BrowserContext* browser_context, 117 content::BrowserContext* browser_context,
118 const Extension* extension, 118 const Extension* extension,
119 UnloadedExtensionInfo::Reason reason) OVERRIDE; 119 UnloadedExtensionInfo::Reason reason) override;
120 120
121 Profile* profile_; 121 Profile* profile_;
122 scoped_refptr<DevToolsAgentHost> agent_host_; 122 scoped_refptr<DevToolsAgentHost> agent_host_;
123 std::string extension_id_; 123 std::string extension_id_;
124 Debuggee debuggee_; 124 Debuggee debuggee_;
125 content::NotificationRegistrar registrar_; 125 content::NotificationRegistrar registrar_;
126 int last_request_id_; 126 int last_request_id_;
127 typedef std::map<int, scoped_refptr<DebuggerSendCommandFunction> > 127 typedef std::map<int, scoped_refptr<DebuggerSendCommandFunction> >
128 PendingRequests; 128 PendingRequests;
129 PendingRequests pending_requests_; 129 PendingRequests pending_requests_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 void set_client_host(ExtensionDevToolsClientHost* client_host) { 168 void set_client_host(ExtensionDevToolsClientHost* client_host) {
169 client_host_ = client_host; 169 client_host_ = client_host;
170 } 170 }
171 171
172 private: 172 private:
173 explicit ExtensionDevToolsInfoBarDelegate(const std::string& client_name); 173 explicit ExtensionDevToolsInfoBarDelegate(const std::string& client_name);
174 virtual ~ExtensionDevToolsInfoBarDelegate(); 174 virtual ~ExtensionDevToolsInfoBarDelegate();
175 175
176 // ConfirmInfoBarDelegate: 176 // ConfirmInfoBarDelegate:
177 virtual void InfoBarDismissed() OVERRIDE; 177 virtual void InfoBarDismissed() override;
178 virtual Type GetInfoBarType() const OVERRIDE; 178 virtual Type GetInfoBarType() const override;
179 virtual bool ShouldExpireInternal( 179 virtual bool ShouldExpireInternal(
180 const NavigationDetails& details) const OVERRIDE; 180 const NavigationDetails& details) const override;
181 virtual base::string16 GetMessageText() const OVERRIDE; 181 virtual base::string16 GetMessageText() const override;
182 virtual int GetButtons() const OVERRIDE; 182 virtual int GetButtons() const override;
183 virtual bool Cancel() OVERRIDE; 183 virtual bool Cancel() override;
184 184
185 std::string client_name_; 185 std::string client_name_;
186 ExtensionDevToolsClientHost* client_host_; 186 ExtensionDevToolsClientHost* client_host_;
187 187
188 DISALLOW_COPY_AND_ASSIGN(ExtensionDevToolsInfoBarDelegate); 188 DISALLOW_COPY_AND_ASSIGN(ExtensionDevToolsInfoBarDelegate);
189 }; 189 };
190 190
191 // static 191 // static
192 infobars::InfoBar* ExtensionDevToolsInfoBarDelegate::Create( 192 infobars::InfoBar* ExtensionDevToolsInfoBarDelegate::Create(
193 WebContents* web_contents, 193 WebContents* web_contents,
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 const std::vector<DevToolsTargetImpl*>& target_list) { 740 const std::vector<DevToolsTargetImpl*>& target_list) {
741 scoped_ptr<base::ListValue> result(new base::ListValue()); 741 scoped_ptr<base::ListValue> result(new base::ListValue());
742 for (size_t i = 0; i < target_list.size(); ++i) 742 for (size_t i = 0; i < target_list.size(); ++i)
743 result->Append(SerializeTarget(*target_list[i])); 743 result->Append(SerializeTarget(*target_list[i]));
744 STLDeleteContainerPointers(target_list.begin(), target_list.end()); 744 STLDeleteContainerPointers(target_list.begin(), target_list.end());
745 SetResult(result.release()); 745 SetResult(result.release());
746 SendResponse(true); 746 SendResponse(true);
747 } 747 }
748 748
749 } // namespace extensions 749 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/debugger/debugger_api.h ('k') | chrome/browser/extensions/api/debugger/debugger_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698