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

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

Issue 12189018: <webview>: Implement WebRequest API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Profile* => void* Created 7 years, 7 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // the extension process to correspond to the given filter and 238 // the extension process to correspond to the given filter and
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 target_process_id, 248 int embedder_process_id,
249 int target_route_id, 249 int web_view_instance_id,
250 base::WeakPtr<IPC::Sender> ipc_sender); 250 base::WeakPtr<IPC::Sender> ipc_sender);
251 251
252 // Removes the listener for the given sub-event. 252 // Removes the listener for the given sub-event.
253 void RemoveEventListener( 253 void RemoveEventListener(
254 void* profile, 254 void* profile,
255 const std::string& extension_id, 255 const std::string& extension_id,
256 const std::string& sub_event_name); 256 const std::string& sub_event_name);
257 257
258 // Removes the listeners for a given <webview>.
259 void RemoveWebViewEventListeners(
260 void* profile,
261 const std::string& extension_id,
262 int embedder_process_id,
263 int web_view_instance_id);
264
258 // Called when an incognito profile is created or destroyed. 265 // Called when an incognito profile is created or destroyed.
259 void OnOTRProfileCreated(void* original_profile, 266 void OnOTRProfileCreated(void* original_profile,
260 void* otr_profile); 267 void* otr_profile);
261 void OnOTRProfileDestroyed(void* original_profile, 268 void OnOTRProfileDestroyed(void* original_profile,
262 void* otr_profile); 269 void* otr_profile);
263 270
264 // Registers a |callback| that is executed when the next page load happens. 271 // Registers a |callback| that is executed when the next page load happens.
265 // The callback is then deleted. 272 // The callback is then deleted.
266 void AddCallbackForPageLoad(const base::Closure& callback); 273 void AddCallbackForPageLoad(const base::Closure& callback);
267 274
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE; 463 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE;
457 virtual bool RunImpl() OVERRIDE; 464 virtual bool RunImpl() OVERRIDE;
458 }; 465 };
459 466
460 // Send updates to |host| with information about what webRequest-related 467 // Send updates to |host| with information about what webRequest-related
461 // extensions are installed. 468 // extensions are installed.
462 // TODO(mpcomplete): remove. http://crbug.com/100411 469 // TODO(mpcomplete): remove. http://crbug.com/100411
463 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); 470 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host);
464 471
465 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 472 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/extensions/api/web_request/web_request_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698