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

Side by Side Diff: trunk/src/chrome/browser/extensions/api/web_request/web_request_api.h

Issue 23965004: Revert 222090 "<webview>: Cleanup WebRequest event listeners whe..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // extra_info_spec. It returns true on success, false on failure. 239 // extra_info_spec. It returns true on success, false on failure.
240 bool AddEventListener( 240 bool AddEventListener(
241 void* profile, 241 void* profile,
242 const std::string& extension_id, 242 const std::string& extension_id,
243 const std::string& extension_name, 243 const std::string& extension_name,
244 const std::string& event_name, 244 const std::string& event_name,
245 const std::string& sub_event_name, 245 const std::string& sub_event_name,
246 const RequestFilter& filter, 246 const RequestFilter& filter,
247 int extra_info_spec, 247 int extra_info_spec,
248 int embedder_process_id, 248 int embedder_process_id,
249 int embedder_routing_id,
249 int web_view_instance_id, 250 int web_view_instance_id,
250 base::WeakPtr<IPC::Sender> ipc_sender); 251 base::WeakPtr<IPC::Sender> ipc_sender);
251 252
252 // Removes the listener for the given sub-event. 253 // Removes the listener for the given sub-event.
253 void RemoveEventListener( 254 void RemoveEventListener(
254 void* profile, 255 void* profile,
255 const std::string& extension_id, 256 const std::string& extension_id,
256 const std::string& sub_event_name); 257 const std::string& sub_event_name);
257 258
258 // Removes the listeners for a given <webview>. 259 // Removes the listeners for a given <webview>.
259 void RemoveWebViewEventListeners( 260 void RemoveWebViewEventListeners(
260 void* profile, 261 void* profile,
261 const std::string& extension_id, 262 const std::string& extension_id,
262 int embedder_process_id, 263 int embedder_process_id,
264 int embedder_routing_id,
263 int web_view_instance_id); 265 int web_view_instance_id);
264 266
265 // Called when an incognito profile is created or destroyed. 267 // Called when an incognito profile is created or destroyed.
266 void OnOTRProfileCreated(void* original_profile, 268 void OnOTRProfileCreated(void* original_profile,
267 void* otr_profile); 269 void* otr_profile);
268 void OnOTRProfileDestroyed(void* original_profile, 270 void OnOTRProfileDestroyed(void* original_profile,
269 void* otr_profile); 271 void* otr_profile);
270 272
271 // Registers a |callback| that is executed when the next page load happens. 273 // Registers a |callback| that is executed when the next page load happens.
272 // The callback is then deleted. 274 // The callback is then deleted.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE; 472 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE;
471 virtual bool RunImpl() OVERRIDE; 473 virtual bool RunImpl() OVERRIDE;
472 }; 474 };
473 475
474 // Send updates to |host| with information about what webRequest-related 476 // Send updates to |host| with information about what webRequest-related
475 // extensions are installed. 477 // extensions are installed.
476 // TODO(mpcomplete): remove. http://crbug.com/100411 478 // TODO(mpcomplete): remove. http://crbug.com/100411
477 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); 479 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host);
478 480
479 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 481 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698